Jump to content
4 posts in this topic

Recommended Posts

Alright, so I wanted to code some console based java applications. So I made my test.java file in xcode and then wanted to run it, so i compiled from the command line...

administrators-computer:~ paolocampisi$ javac /Users/paolocampisi/Java/test.java
and it worked fine, then I went to run the code...
administrators-computer:~ paolocampisi$ java /Users/paolocampisi/Java/test.java

and then I got this error msg.

Exception in thread "main" java.lang.NoClassDefFoundError: /Users/paolocampisi/Java/test/java

 

I have never coded java in OS X, but I'm asuming its more or less the same, can anyone help me out here?

I looked for the debug / build option in xcode but it's not there, although I installed all the java requirements with xcode...

 

 

 

thanks a ton.

Link to comment
https://www.insanelymac.com/forum/topic/37773-xcode-java-issue/
Share on other sites

×
×
  • Create New...