Results 1 to 6 of 6
Thread: Command Line Error
- 03-02-2010, 05:11 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 8
- Rep Power
- 0
Command Line Error
I've followed some of the basic tutorials provided by some helpful people on youtube. However I am getting an error everytime I run a java program.
The program is called System.java, so when I try to run it using the command line with:
javac System.java
I get the following message.
'javac' is not recognixed as in internal or external command, operable program or batch file.
Any ideas on what I shoudl do or what I'm doing wrong?
- 03-02-2010, 05:18 PM #2
Senior Member
- Join Date
- Dec 2009
- Location
- Belgrade, Serbia
- Posts
- 364
- Rep Power
- 4
First change name of "System.java" to anything else you like
but do not use Java language reserved words like System for that purpose.
Second using javac problems was issue here on forum few days ago
do check this thread where you will find answer:
Javac error
regards
- 03-02-2010, 05:31 PM #3
Member
- Join Date
- Mar 2010
- Posts
- 8
- Rep Power
- 0
- 10-25-2010, 07:55 PM #4
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
'JAVAC' is not recognized as an internal or external command, operable program or batch file.
- 10-25-2010, 08:04 PM #5
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
How to set class-path for jdk6 in environment variables
- 10-25-2010, 08:54 PM #6
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
@venkateshn313: It is better to start your own thread for your own question.
Did you read the link given above?
If you are still having problems, post the actual command you are using and copy and post the output that results.
The "is not recognized as an internal or external command, operable program or batch file" windows message has nothing to do with the value of classpath environment variables. (See Fon's reply, #5 in the thread already linked to)
Similar Threads
-
Compiling/Running Project in Command Line: "Could not find main class" Error
By Yasemin Gokce in forum New To JavaReplies: 1Last Post: 06-30-2009, 02:32 PM -
Command Line Argument
By right2001 in forum New To JavaReplies: 6Last Post: 02-17-2009, 02:08 PM -
Error Occurred Executing Command Line Solution
By RahulKhire in forum EclipseReplies: 1Last Post: 09-10-2008, 01:38 PM -
command line args
By MarkWilson in forum NetBeansReplies: 3Last Post: 08-04-2008, 03:22 AM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks