Computer Science Canada

compiler

Author:  person [ Fri Sep 09, 2005 5:53 pm ]
Post subject:  compiler

ive installed a compiler called "DrJava" and when i open the compiler it asks me to direct it to a document called "tools.jar" and i cant find that anywhere, so any sugestions on where it might be or another solution to this problem? cuz without that file, i cant compile anything

Author:  wtd [ Fri Sep 09, 2005 6:07 pm ]
Post subject: 

Grab the standard Java 5.0 SDK from Sun's website.

Author:  person [ Fri Sep 09, 2005 6:17 pm ]
Post subject: 

thats wat i did

Author:  wtd [ Fri Sep 09, 2005 7:12 pm ]
Post subject: 

Then just compile via the command-line. It doesn't get any simpler than that.

Author:  person [ Fri Sep 09, 2005 7:29 pm ]
Post subject: 

sry but im realy new to this kind of stuff so can u elaborate?

Author:  [Gandalf] [ Fri Sep 09, 2005 7:30 pm ]
Post subject: 

If you download JSDK then you don't need any other compiler - it comes with the SDK. Unless this DrJava is an IDE? You should follow wtd's advice, and then later you can automate the process by having a macro set up to do it for you. At the moment though, just make your source file with a text editor, and 'javac sourcefile.java' it in the command line. All you really need is something like TextPad, Crimson Editor, or SciTE and the JSDK from the Java site.

*edited for slight 'elaboration'*


: