Current location: Hot Scripts Forums » Programming Languages » Everything Java » How to compile Java code

How to compile Java code

Reply
  #1  
Old 09-03-09, 11:55 AM
TRlight TRlight is offline
New Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How to compile Java code

Hello ppl, bare with me I'm new to Java, I am taking Java programming class in college. I have written code for a program, from what I understand with windows xp I am supposed to go the the command prompt then type in javac name of my file.java and the command prompt is supposed to compile it. everytime I try it says that javac is not recognized as an internal or external command. please help me out if I'm doing something wrong.
Thx Tom
Reply With Quote
  #2  
Old 09-03-09, 01:37 PM
TwoD TwoD is offline
Community Liaison
 
Join Date: Sep 2003
Location: 404
Posts: 1,811
Thanks: 0
Thanked 0 Times in 0 Posts
Java is not JavaScript, and you also need to go to the folder where you have installed the Java compiler, then run that command.

Moving this to the Java section.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
  #3  
Old 10-01-09, 12:29 AM
johnjmk johnjmk is offline
New Member
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
There are free Java compilers out there to download such as JCreator and NetBeans that you may find easier. They can compile your program with the click of a mouse. They also automatically indent your code and color code based on whether it's a comment, a method, etc. to make it easier to read. You can easily find them if you google it. Hope this helps you out.
-John
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a digital certificate using java security or bouncy castle coolcoder Everything Java 2 08-03-09 04:28 PM
Sockets: Java client, python server problem UnrealEd Everything Java 0 12-17-06 04:49 PM
Re: Porting from java to c++! addit C/C++ 3 09-14-04 05:11 PM
Porting java to C++! addit Everything Java 0 09-06-04 02:03 PM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 01:10 PM


All times are GMT -5. The time now is 02:13 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 (Unregistered)