User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Using XCode to create a Java Application Page [1]  
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
34024 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

 Message Boards » Tech Talk » Using XCode to create a Java Application Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.