Differences in Classpath being generated between 9.01 and 9.04

Hi:

I have a 9.01 working project and I installed 9.04. With the same project settings files as the 9.01 version, I am trying to run an application. The application works fine in 9.01. But just seems to hang in 9.04. The issue I think is related to classpath. When I compare the command that is run when I execute the application, the classpath is different. From what I understood in my project setting, I have Libraries which I specify in the module dependencies and I specify them in a specific order. In 9.01 the classpath that is constructed when I run the application seems to follow that dependency order just fine. In 9.04, that is not only not true but there are packages included that I do not see anywhere in dependencies or the modules. Closely related yes, but not specified.

What can I do to return to the classpath generation that I saw in 9.01 in the 9.04 version??

Thanks.

4 comments
Comment actions Permalink

I would be curious if you switch back to 9.0.1 does your application still run ?
What this would help to determine is weather those additional class paths are added by IJ 9.0.4 at run time (Application still runs) or statically in the (.ipr/.iws file).

If you find that IJ 9.0.1 cannot read the project files after IJ 9.0.4 has modified them it could be because of a change that was made around 9.0.2 to the ProjectKey format (in the .ipr or .iws) file. In earlier versions it was an absolute path to the project root.

0
Comment actions Permalink

Hi:

I have 9.0.1 and 9.04 installed in separate directories and I run with the same JDK. The project files are not modified as a result of me executing the application and I can switch back and forth with no issues. In 9.0.1 I am able to run the application after it has re-indexed the files. The curious thing is that in 9.0.1 because it honors the dependencies in the modules, I can reproduce the failed execution by changing the order of the jar files so it definitely related to jar file order. The question is why 9.0.4 does not honor that order or how can I make it so.

The project files seem to have relative pathing from what I see.

Thanks.

0
Comment actions Permalink

Is your project imported from Maven or it is created in IDEA?

Hi:

>

I have 9.0.1 and 9.04 installed in separate directories and I run with the same JDK. The project files are not modified as a result of me executing the application and I can switch back and forth with no issues. In 9.0.1 I am able to run the application after it has re-indexed the files. The curious thing is that in 9.0.1 because it honors the dependencies in the modules, I can reproduce the failed execution by changing the order of the jar files so it definitely related to jar file order. The question is why 9.0.4 does not honor that order or how can I make it so.

>

The project files seem to have relative pathing from what I see.

>

Thanks.

>

---
Original message URL: http://devnet.jetbrains.net/message/5277897#5277897



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

The project has been in use for more than 5 years in the various versions of idea. We do not use maven, we use ant for builds. I have found someone within our company who is on a newly set up system who upgraded immediately to 9.0.3 and has been able to run applications. i will be examining the differences between the set up for the majority of developers here and that one person.

Thanks.

0

Please sign in to leave a comment.