[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?
Re: Compiling java applications!
Your PATH variable is not set up correctly. Search this forum for PATH.
Re: Compiling java applications!
Quote:
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
Re: Compiling java applications!
Re: Compiling java applications!
Quote:
Originally Posted by Aymun
Thank's :D
You are wellcome,
Wish you all the best.