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

I was using netbeans...but now i want to run my program without netbeans that is want to run the program at command prompt..
Since i used netbeans i can do with out any additional downloads....
Now what is my prob is
when i run java -version command from the prompt i am getting..but when i use javac program name i am getting the error of javac is not recognized as an internal or external command,operable [rpgram or batch file....
My program is in the folder c:\programfile\commanfiles\java
Can anybody pls help me

2006-10-22 19:18:06 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

set the path environment variable using
set path = %path%;;

or add it to enviironment variables

good luck

2006-10-26 18:29:09 · answer #1 · answered by Anand 3 · 2 0

if ur using mattisse lay out then there will be another file with .Form Extension in which everthing is in xml format
and this u cant run at dos prompt as it uses group layout package
but if it is a plain java file the u have to check ur path
i.e goto mycomputer properties
-----Advanced tab
-----and click environment variable and
set ur java path and class path

2006-10-22 19:26:02 · answer #2 · answered by ch_nagarajind 3 · 1 0

i dont know about netbeans...
but wen it says javac is not recognized the only problem is ur classpath. Set the classpath. then it ll work.
assume ur java is in c:\jdk1.5.0

set path=c:\winnt;c:\winnt\system32;c:\jdk1.5.0\bin;
set classpath=c:\jdk1.5.0\lib\tools.jar;

this will solve ur problem.

Note:- if u r working with xp then c:\windows ok?

2006-10-23 06:37:44 · answer #3 · answered by Sudha P 2 · 0 0

fedest.com, questions and answers