Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 06-25-2007, 10:24 AM   #1 (permalink)
Rouen's Avatar
 
True Techie

Join Date: Mar 2005

Posts: 235

Rouen is on a distinguished road

Send a message via AIM to Rouen
Default Java Compiler

I've tried using the Java SDK that comes directly from sun, but I can't find enough documentation to help me use it aside from fairly vague help files that come with it. Example: It tells you to use a text editor to write your code, then to use the javac program within a certain folder to compile it. Strangely enough, it doesn't tell you where to store the file so that it can be compiled, I tried the same folder as javac and it says cannot find the file. STRANGE.

Where can I find a friendly java compiler, preferably with a GUI so I don't have to learn all the command line crap while trying to learn the language too?

Edit: On a Windows XP Pro system.
Rouen is offline  
Old 06-25-2007, 12:37 PM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Java Compiler

Quote:
Strangely enough, it doesn't tell you where to store the file so that it can be compiled
That's because you can store the file anywhere.

Quote:
preferably with a GUI so I don't have to learn all the command line crap while trying to learn the language too?
It is definitely in your best interest to become familiar with the command line.

First, you should open a command prompt and type "javac" (without the quotes). If you get a message saying that "'javac' isn't recognized...", then you'll need to adjust your Windows environment variables. Otherwise, to compile your code, you need to tell the java compiler where your file is. When you open the command prompt, you'll notice that a directory is specified (ie, C:\Documents and Settings\username\...). That is the default path that the compiler will look in to find your file. So, you have two options.
1. Specify the full path to your file (javac C:\Documents and Settings\username\...\filename.java) or
2. use the cd command to move to the appropriate directory.
jaeusm is offline  
Old 06-25-2007, 03:35 PM   #3 (permalink)
Rouen's Avatar
 
True Techie

Join Date: Mar 2005

Posts: 235

Rouen is on a distinguished road

Send a message via AIM to Rouen
Default Re: Java Compiler

Learning how to use the command line, that brings me to my previous point, where is the documentation that explains how to use the SDK?
Rouen is offline  
Old 06-25-2007, 04:48 PM   #4 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default Re: Java Compiler

Try Eclipse. If you have the Java environment set up as jaeusm said, Eclipse is the Java IDE to use and will keep you out of the console for awhile. It comes with many tutorials and there are dozens more on the Eclipse website as well as others.
__________________
Vormund is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
good, free/low cost C++ compiler? weewun Programming Discussions 6 06-25-2007 12:40 PM
hacking online java program. Z e i g Browser & General Internet Questions 8 06-23-2007 01:50 AM
Someone take a look at my Java code PnkFloyd27 Programming Discussions 4 06-21-2007 08:11 PM
Java Game Yek Programming Discussions 5 06-16-2007 04:29 AM
Help with objects in Java PnkFloyd27 Programming Discussions 20 06-15-2007 08:50 PM