Specifying classpath in 823

I have a problem in setting up my application in 823. I thought
classpath'ing was easy until i saw 823 :)

Well first of all I will present you to my file structure:

Source files:
c:\ts\code\nms\src\dk...
Class files:
c:\ts\code\nms\classes\dk...

In IDEA Project Properties --> Main Module:
Output path:
C:\ts\code\nms\classes
Contents:
C:\ts\kode\nms\src
Libraries:
Just all the jar's needed + jdk-path. Not the output path.

Now the problem:
I get the following message when I try to run the main class:
Exception in thread "main" Process terminated with exit code 1
but when I delete the main class I get this message instead:
java.lang.ClassNotFoundException: dk.son.nms.client.NmsDesktop

So for me it looks like IDEA nows where to find the classes.
My Working Directory in Run/Debug Configurations is:
C:\ts\kode\nms
as it was before I installed 823.

Another thing that is strange, is that when I delete the main class
(or any other class), and then choose "Make project" IDEA does not
compile the missing class. I'm almost sure that the old IDEA did. Now
I have to choose "Rebuild project" in order to force a compilation of
that file.

Thank you for listening,

Thomas Saxtoft

1 comment
Comment actions Permalink

Have you marked your sources as "sources"?
"Contents" in new project UI is similar to "Project Paths". In order to compile sources you need to mark certain directories within
a Content as containing source files.
Concerning the excepton you get, what is the visibility of the class you are running?

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Thomas Saxtoft" <ts@sondagsavisen.dk> wrote in message news:lnktev4n722oqsb7kkfq921a595fjmcue3@4ax.com...

I have a problem in setting up my application in 823. I thought
classpath'ing was easy until i saw 823 :)

>

Well first of all I will present you to my file structure:

>

Source files:
c:\ts\code\nms\src\dk...
Class files:
c:\ts\code\nms\classes\dk...

>

In IDEA Project Properties --> Main Module:
Output path:
C:\ts\code\nms\classes
Contents:
C:\ts\kode\nms\src
Libraries:
Just all the jar's needed + jdk-path. Not the output path.

>

Now the problem:
I get the following message when I try to run the main class:
Exception in thread "main" Process terminated with exit code 1
but when I delete the main class I get this message instead:
java.lang.ClassNotFoundException: dk.son.nms.client.NmsDesktop

>

So for me it looks like IDEA nows where to find the classes.
My Working Directory in Run/Debug Configurations is:
C:\ts\kode\nms
as it was before I installed 823.

>

Another thing that is strange, is that when I delete the main class
(or any other class), and then choose "Make project" IDEA does not
compile the missing class. I'm almost sure that the old IDEA did. Now
I have to choose "Rebuild project" in order to force a compilation of
that file.

>

Thank you for listening,

>

Thomas Saxtoft

>


0

Please sign in to leave a comment.