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


How to compile Java code

Reply
  #1 (permalink)  
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-03-09, 01:37 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-01-09, 12:29 AM
johnjmk johnjmk is offline
New Member
 
Join Date: Oct 2009
Posts: 4
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-28-10, 02:02 AM
ksush ksush is offline
New Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
as it says that javac is not recognized as an internal or external command,which means that java s/w is not install on ur machine
first install that s/w and set the path where u install java
set path like type the following words on ur commant prompt
"set path=C:\Program Files\Java\jdk1.6.0_14\bin\"
the above is the path where java s/w is install on machine
and after dat u run ur program
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 01-28-10, 06:47 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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
Trackbacks are On
Pingbacks are On
Refbacks are On

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 07:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.