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

I keep getting this error when i try to compile a program from the folder its in. i type in javac and then the program name.java, and i get.. "javac is not recognized as an interior or exterior command, operable program, or batch file." I have already changed my path and classpath variables. i just bought the programming with java book and would like to get started, but i have yet to even be able to compile a program, and this error isnt listed anywhere. please help!

2007-05-23 12:24:29 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

What operating system are you using? I'm guessing you are using Unix or Linux....

If so, set the PATH, export the PATH, then execute javac. Or, use the direct and complete path to the javac when you execute it.

I'm guessing you may have changed the PATH but you didn't export it.

You can also cd to the location where javac is, then type ./javac (that is, dot, slash javac)

2007-05-23 12:34:00 · answer #1 · answered by tkquestion 7 · 0 0

Go to the 'bin' directory under your java installation directory and check if 'javac' exists under that directory. Type SET in dos prompt to check if your PATH variable contains the path to the 'bin' directory. Also, are you using any tool like NetBeans to write/compile/run java programs? Or are you using DOS prompt?

2007-05-23 19:58:25 · answer #2 · answered by d_shyamala 1 · 0 0

oops, i had to log in under another name. i am the original person who typed this question, im new at this. im using windows xp.

2007-05-23 19:49:40 · answer #3 · answered by phoenix 1 · 0 0

fedest.com, questions and answers