Java programming

Joined
Jun 10, 2005
Messages
181
Reaction score
5
Points
18
Your Mac's Specs
Imac G5 17 inch w/ 1 gig of ram, 6 gb ipod mini, and 12" Powerbook G4
Ok, I am in java at school and I need a compiler we are doing stand alone apps in java and I cant figure out how to use xcode to do it. I have opened the file in xcode and it doesnt give me the option to compile it. Any ideas?
 
OP
C
Joined
Jun 10, 2005
Messages
181
Reaction score
5
Points
18
Your Mac's Specs
Imac G5 17 inch w/ 1 gig of ram, 6 gb ipod mini, and 12" Powerbook G4
So i guess its a big mystery?
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
you probably need to get a specific compiler that your cs department is using. It would probably be much more convenient to just ssh to the department computers and use theri built in compilers
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
I sounds to me like you just dragged a file to the XCode application. When I tried that, I couldn't compile either.

I would think you need to first create a Java project. Start XCode (I have 2.3), choose File -> New Project -> Java Tool and enter a name. It created a hello world source file. Then via the Project menu you can Add your existing source to the project. You might be able to drag it in also. You need to have the main window selected for that selection to be selectable.

You may want to join Apple's Java developer mailing list and ask the question there. Go to http://developer.apple.com/ and you'll see a link for Mailing Lists under Developer Support. Click on that and then on Lists hosted on this site on the next page. You want to join the java-dev list.

I can't be much more help, because I don't use Java.
 
Joined
Mar 30, 2004
Messages
4,744
Reaction score
381
Points
83
Location
USA
Your Mac's Specs
12" Apple PowerBook G4 (1.5GHz)
1. Use javac from the Terminal. This is the one compiler that every OS has, so you should be familiar with it

2. When you outgrow that, download Eclipse. Practically everyone doing Java development uses it.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top