|
-
Aug 16th, 2006, 04:04 PM
#1
Thread Starter
Lively Member
[Resolved] Compiling java applications!
Hey, i have (java se 5 update 8 with netbeans 5) installed in my machine, when i try to compile java applications from the command-line by the command (javac), a message appears ('javac' is not recognized as an internal or external command, operable program or batch file.) where's the error exactly?
Last edited by Aymun; Aug 17th, 2006 at 06:36 PM.
-
Aug 16th, 2006, 04:49 PM
#2
Re: Compiling java applications!
Your PATH variable is not set up correctly. Search this forum for PATH.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 17th, 2006, 07:18 AM
#3
PowerPoster
Re: Compiling java applications!
 Originally Posted by Aymun
Hey, i have (java se 5 update 8 with netbeans 5) installed in my machine, when i try to compile java applications from the command-line by the command (javac), a message appears ('javac' is not recognized as an internal or external command, operable program or batch file.) where's the error exactly?
Do it in this way,
First save your file any location that you wish to work on. Say it is on this path:
D:/java/test.java
Your file name is " test.java "
Then jump to the java folder on command-line
D:/java/>
Then set the classpath as follows,
D:/java/>path=c:/jdk1.5/bin/
In this case " C:/jdk1.5/bin/ " is the java instalation path. You should set it according to your setup, that is your version and installation folder etc.
Then compile it using " javac " command
-
Aug 17th, 2006, 06:31 PM
#4
Thread Starter
Lively Member
Re: Compiling java applications!
Thank's
Last edited by Aymun; Aug 17th, 2006 at 06:34 PM.
-
Aug 17th, 2006, 11:26 PM
#5
PowerPoster
Re: Compiling java applications!
 Originally Posted by Aymun
Thank's 
You are wellcome,
Wish you all the best.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|