pcampisi14 Posted January 5, 2007 Share Posted January 5, 2007 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.javaand 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 More sharing options...
asap18 Posted January 5, 2007 Share Posted January 5, 2007 im no java person but i think you are missing some import files. Obviously whatever class you are using has not been defined. C++ ftw. Link to comment https://www.insanelymac.com/forum/topic/37773-xcode-java-issue/#findComment-269068 Share on other sites More sharing options...
rollcage Posted January 5, 2007 Share Posted January 5, 2007 I had trouble with xCode too, I eventually gave up and switched over to TextMate. It's a simple text editing program with plug-ins for a lot of programming languages. If you want to check it out, their site is: http://www.macromates.com/ Link to comment https://www.insanelymac.com/forum/topic/37773-xcode-java-issue/#findComment-269078 Share on other sites More sharing options...
alc0h0lic Posted January 6, 2007 Share Posted January 6, 2007 Set your CLASSPATH environment variable, and it should work fine Link to comment https://www.insanelymac.com/forum/topic/37773-xcode-java-issue/#findComment-269118 Share on other sites More sharing options...
Recommended Posts