Results 1 to 6 of 6
  1. #1
    king2be98 is offline Member
    Join Date
    Mar 2010
    Posts
    8
    Rep Power
    0

    Default 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?

  2. #2
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    364
    Rep Power
    5

    Default

    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

  3. #3
    king2be98 is offline Member
    Join Date
    Mar 2010
    Posts
    8
    Rep Power
    0

    Default

    Quote Originally Posted by FON View Post

    regards
    I must say first off, I'm very very impressed with the speed of response. Secondly, thank you for the help I'll have a look at the thread. Finally, most of the guys in my class look for sites for Java help, I'll be letting them now about this place.

  4. #4
    venkateshn313 is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    'JAVAC' is not recognized as an internal or external command, operable program or batch file.

  5. #5
    venkateshn313 is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    How to set class-path for jdk6 in environment variables

  6. #6
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    @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

  1. Replies: 1
    Last Post: 06-30-2009, 02:32 PM
  2. Command Line Argument
    By right2001 in forum New To Java
    Replies: 6
    Last Post: 02-17-2009, 02:08 PM
  3. Error Occurred Executing Command Line Solution
    By RahulKhire in forum Eclipse
    Replies: 1
    Last Post: 09-10-2008, 01:38 PM
  4. command line args
    By MarkWilson in forum NetBeans
    Replies: 3
    Last Post: 08-04-2008, 03:22 AM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •