Results 1 to 5 of 5
  1. #1
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default Weird java compiler problem.

    when i open CMD and type in "javac" it gives me the error message.

    a while ago when i first started learning java on my other laptop i had to set a new environment variable, so i did it again on this laptop.
    however, on the previous laptop when i typed "javac" in CMD it gave me options etc., but on this laptop i get the error message.

    i did this, i went to program files, java, jdk1.7.0_21, bin, copy the path (C:\Program Files\Java\jdk1.7.0_21\bin).

    then i went to my computer, properties, advanced system settings, environment variables, new, variable name: path, variable value: C:\Program Files\Java\jdk1.7.0_21\bin

    then i clicked OK.

    this worked on my preivous laptop, but not on this one. Can anybody help? (i have windows 8).

    Thanks in advance

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,963
    Rep Power
    8

    Default Re: Weird java compiler problem.

    What exactly is the error message?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default Re: Weird java compiler problem.

    Something like: "this was not recognised as an internal or external command"

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,616
    Rep Power
    5

    Default Re: Weird java compiler problem.

    You probably need to check your path environment variable to ensure it includes the JDK bin directory. I would also assume typing java with no arguments would display the same error. Type 'path' and see if your JDK bin directory is present.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,963
    Rep Power
    8

Similar Threads

  1. I have this weird problem..
    By saber210 in forum New To Java
    Replies: 11
    Last Post: 08-14-2011, 04:29 AM
  2. Weird problem with 36 and 39?
    By jh7468 in forum New To Java
    Replies: 3
    Last Post: 02-06-2011, 08:01 PM
  3. weird problem
    By GPB in forum New To Java
    Replies: 2
    Last Post: 02-28-2010, 12:04 PM
  4. Weird msdos problem
    By dudejonne in forum New To Java
    Replies: 6
    Last Post: 11-02-2009, 08:39 PM
  5. Replies: 9
    Last Post: 09-30-2008, 07:30 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
  •