Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mac Player

macrumors regular
Original poster
Jan 19, 2006
225
0
Im currently using Textmate to write my java code. The only problem is that i dont know how to compile the files i create.

TIA
 

Kunimodi

macrumors member
Sep 8, 2006
65
0
Ashland, OR, USA
Mac Player said:
Im currently using Textmate to write my java code. The only problem is that i dont know how to compile the files i create.

TIA
Hi, TIA. You'll need the developer tools installed. Start Terminal.app and go to the directory containing the java code. Then type 'javac YourFile.java'. You can run java programs on the command line by typing 'java YourFile' where YourFile.class exists and has a public static main() method. Or, you can run a jar as with 'java -jar YourJar.jar' -- in that case you can also simply click on the jar file in Finder.

To make fuller use of Textmate, you could automate the builds using Commands. You might consider using apache ant to define the build and simply build using a build.xml file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.