Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-20-2006, 05:03 PM   #1 (permalink)
ncjimn's Avatar
 
Super Techie

Join Date: Oct 2005

Posts: 470

ncjimn is on a distinguished road

Default Running java on windows.

I'm a newbie as you can see.

I am currently taking a Java course, I can find my way around on the school's computers. However I haven't been able to compile/run the programs on my laptop (Win XP). I did go to sun.java.com and installed a JDK and some other stuff. My guess is I installed it wrong or not completely/correctly.

So:

Can anyone please tell me exactly what I need to install so I can compile/run .java files on my computer?

So far we have done simple programs, all output to the terminal window. We also modify some simple GUIs.

At school we use Linux/Solaris computers. I just want to work on my programs at home and be able to test them.

Thank you.



ncjimn is offline  
Old 03-20-2006, 07:06 PM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

If you have properly installed the JDK, you should be able to compile and run Java programs. Open the command prompt and navigate to your source files. Type 'javac filename.java' to compile your program. Be sure to leave off the quotes. Enter 'java filename' to run the class file. If you have any errors, you may need to manually set your PATH variable.
jaeusm 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