File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Free Compiler to use at home Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Free Compiler to use at home" Watch "Free Compiler to use at home" New topic
Author

Free Compiler to use at home

chadsandquist
Greenhorn

Joined: Feb 12, 2004
Posts: 1
Hi,
I've only been doing Java for a few weeks now. I use WSAD at work however I want to study for the Java Prog Cert Exam. I want to use a compiler at home. What's the best free compiler to use at home. Is it J2EE 1.4 SDK? How do you use the compiler, via the command line and creating .java files. Do I need to change my classpath?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
yes, the J2SDK contains the commandline compiler. Classpath is set using the -classpath option to javac and java (the runtime), which appends the classpath set in your system settings.
There's also a free equivalent of WSAD, go to http://www.eclipse.org (note this still needs the J2SDK).


42
roy joseph
Greenhorn

Joined: Dec 26, 2003
Posts: 25
you dont need to install the j2sdk inorder to run eclipse. you just need the jre.
eclipse comes with its own sdk.


be annoying .. Aku Soku Zan
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Mr Tambourine Man,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What's the best free compiler to use at home. Is it J2EE 1.4 SDK?
No. Java 2 Enterprise Edition (J2EE), is an extension to Java 2 Standard Edition (J2SE). J2EE is intended to help with the development of server-side Java programs.
The J2SE SDK is what you're after to compile and run most Java applications and Applets.
How do you use the compiler, via the command line and creating .java files.
Take a look at the Java 2 SDK Tools and Utilities documentation as well as the "Your First Cup of Java" and "Getting Started" trails of Sun's Java Tutorial.
Do I need to change my classpath?
Well, that sort of depends on what it's current value is. But, it's not likely that you'll need to change, or even specify it for simple application development using only Sun's J2SE libraries. If you start to use J2EE or third party libraries, then it'll need to be changed, which many IDEs will do automatically during their use.
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
J2SDK + Textpad does for me. I set it up so it opens all the java files in a directory at once. I compile from within textpad. I use a simple log file I open also from the same textpad. Textpad allows me global search for java names. I use the index in sun's documentation to look up api's.


The nice thing about Standards is that there are so many to choose from!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Free Compiler to use at home