pureetofu All American 2748 Posts user info edit post |
My experience writing Java Code has all been through the Java 1, 2, and 3 classes at NCSU, where initially I used only Notepad and grew into Eclipse. However I can't get the simplest of simple programs to run.
public class HelloWorld { public static void main(String args[]) { System.out.println("Hello Life Outside the Mac!"); }
}
Opens a JavaApplication window and shows nothing. WTF? I know I'm missing something very simple here.6/25/2008 12:02:43 PM |
Shaggy All American 17820 Posts user info edit post |
I dont know anything about xcode but you might want to see if it has a console output window somewhere. 6/25/2008 12:06:02 PM |
moron All American 34142 Posts user info edit post |
What type of java project are you using?
Choose New Project, and choose "Java Tool"
Click the "Run" menu, choose "console" (or press command-shift-r).
THen click the build and run button, and voila, you have your IDE.
[Edited on June 25, 2008 at 1:03 PM. Reason : ] 6/25/2008 1:03:11 PM |
pureetofu All American 2748 Posts user info edit post |
I chose "Java Application" instead of "Java Tool" is that the difference? 6/25/2008 1:12:06 PM |
pureetofu All American 2748 Posts user info edit post |
When attempting a Java Tool it displays
Hello World instead of
Hello Life Outside the Mac!
I compiled and ran the java file using javac and java respectively, no problems. WTF?6/25/2008 1:14:46 PM |
pureetofu All American 2748 Posts user info edit post |
I didn't create the files under the SRC folder of the project... son of a.... knew it was something simple. 6/25/2008 1:29:44 PM |