English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

sun.java.com gives the metod to compile using jdk1.5_11 which says to type javac classname.java in command prompt but on compiling i get the message that javac is not an internal or external command or batch file.

2007-03-06 16:58:36 · 4 answers · asked by dolly s 1 in Computers & Internet Programming & Design

4 answers

make sure you are in the same directory where the javac resides...
usually it is under c:\program files\j2sdk1.5..\bin
or probably directly under c:\j2sdk1.5..\bin
if still not working, i ll be glad to help you by email: aelhabboub @ hotmail. com (just remove the spaces from the address)
i worked a long time with compiling under command prompt..

2007-03-06 17:07:21 · answer #1 · answered by abd 5 · 0 0

Are you running the program in the bin directory? If that gives the error too then you perhaps have not registered the java class PATH.

Right click on my computer and go to properties.
Click on Advanced Tab.
Click Environment Variables.
In system variables-- select CLASSPATH and Edit it. Put a semicolon at the end and put the Java bin path.
Do this with Path variable too.

Hope this helps.

2007-03-07 01:06:59 · answer #2 · answered by Aman J Singh 3 · 0 1

it looks like you don't have java installed, you need to first have java installed to run javac. try installing an rpm of java (google it for your system) or try using "locate javac" and instead of typing javac use the full path (such as /usr/bin/javac)

2007-03-07 01:05:05 · answer #3 · answered by pepsipunk 2 · 0 1

From My Computer properties -> Environment Veriables set the path vairable to ur java path.

or u can search in google for how to set path variable for java

2007-03-07 01:06:09 · answer #4 · answered by ehossain 2 · 0 1

fedest.com, questions and answers