Results 1 to 5 of 5
  1. #1
    ALEXJM is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default Testing The Environment

    I'm working from a book to teach me programming in Java. I downloaded JDK 6 (Update 24) and then tried to test the set up. I typed 'java -version' and the results looked ok. But when I did 'javac -version' I got an error message, stating that 'javac' isn't recognised. Any ideas??

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,785
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by ALEXJM View Post
    I'm working from a book to teach me programming in Java. I downloaded JDK 6 (Update 24) and then tried to test the set up. I typed 'java -version' and the results looked ok. But when I did 'javac -version' I got an error message, stating that 'javac' isn't recognised. Any ideas??
    You Java compiler (javac.exe) is stored somewhere; add that directory to your path environment variable; this is not a Java thingy, it's an operating system issue.

    kind regard,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    I downloaded JDK 6 (Update 24) and then tried to test the set up.
    You did install the JDK, didn't you?

    And if you did install it, did you change any target folders from the default?

    db

  4. #4
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    usually to work properly java need the environment variable JAVA_HOME to be set (on window system no backslash at the end) and an entry in the environment variable path with %JAVA_HOME&\bin to find the executables like javac. tell, if you are working on a linux because running java on linux the configuration is different.

  5. #5
    ALEXJM is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default *Solved*

    Thanks for all your replies, this has now been sorted.

Similar Threads

  1. Testing if it is an Int and if not ask again
    By Alexander_003 in forum New To Java
    Replies: 2
    Last Post: 11-27-2010, 01:09 AM
  2. Testing arguments
    By and0rsk in forum New To Java
    Replies: 6
    Last Post: 10-10-2010, 12:17 PM
  3. Testing on ME Emulator
    By phams in forum New To Java
    Replies: 3
    Last Post: 06-16-2010, 05:02 AM
  4. Testing JUnit PDE with Ant
    By keynan in forum Eclipse
    Replies: 0
    Last Post: 02-15-2008, 12:35 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
  •