If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I just got a mac about a month ago and I want to get java all set up with it using xcode. I installed xcode fine...never chagned anything. I went to the terminal to compile my little java program and that went fine but when I go to run it I get this annoying error "Exception in thread "main" java.lang.NoClassDefFoundError: A5Q1/java"
The java file was A5Q1.java and to run it I typed "java A5Q1.java" and its located on my desktop. It also shouldn't have even have mattered whether or not xcode was installed for me to run or compile this right?
If you can help solve that problem it would be great, so I don't have to use my PC to run my java programs once school starts again in the fall
Also are there any other good coding programs out there for the mac that have a compile now button built in or something like that so I can just avoid the terminal?
The command to run java programs is java <classname> without the brackets. You don't need the file extension.
There are a lot of Java IDEs for Mac OS X, I'd recommend searching this forum for past threads, I know it's been a common discussion topic. I've been using Eclipse lately.