Results 1 to 7 of 7
  1. #1
    itmasterw is offline Member
    Join Date
    Jan 2008
    Posts
    4
    Rep Power
    0

    Question Help with setting up Java

    Hi, I used to have 2 I think, and I remember there where environment vars I had to set and all. I cannot remember what I had to do. But I just installed Java6 and I tried to run my usual "javac the app name .jav and it came back that javac is not a known program. I suspect that I do not have it set fully. Can someone pleas tell me how to do this.
    Thank you

  2. #2
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    This response is coming from a response i gave to another user:

    "Ok, find out where your compiler is located. It's most likely going to be in C:\Program Files\Java\jdk1.6.0_02\bin (or whatever version of jdk you have). So, get the location of the bin folder in your JDK, and copy it.

    Now, go to Start, Control Panel, Performance and Maintenance, System, Advanced tab, Environment variables, then go to the section labeled "System", and highlight the part called "Path" and and click Edit. Now, at the end of the text, put a semicolon (; ... if there isn't one already) and then paste the file path of your bin directory that you copied before. Make sure there's no space in between the semicolon and the filepath. Now click OK, and everything should work.

    Let me know if you have any problems"

  3. #3
    itmasterw is offline Member
    Join Date
    Jan 2008
    Posts
    4
    Rep Power
    0

    Smile Thanks

    I will try that, it sounds like what I had to do before.
    Thanks :)

  4. #4
    itmasterw is offline Member
    Join Date
    Jan 2008
    Posts
    4
    Rep Power
    0

    Default

    No after puting the path in the enviornment variables I am still getting the same error message above.
    My path is C:\Program Files\Java\jdk1.6.0_04\bin\
    and in the path I put
    ;C:\Program Files\Java\jdk1.6.0_04\bin\
    is this right?
    Please let me know if you have any ideas.
    Thank you
    Last edited by itmasterw; 01-17-2008 at 07:02 PM. Reason: I put in the wrong path

  5. #5
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    I had the same problem too when i was setting it up. AH! i think what i did was. I actually double clicked the javac program. And a black DOS window came up and then disappeared. And then, i tried to change the path again. And it worked. Let me know how this works out for you.

  6. #6
    itmasterw is offline Member
    Join Date
    Jan 2008
    Posts
    4
    Rep Power
    0

    Smile Thank you

    Thanks that worked, I never would have thought of that.
    Thank you for your help :)
    Last edited by itmasterw; 01-18-2008 at 06:03 PM. Reason: spelling

  7. #7
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    Quote Originally Posted by itmasterw View Post
    Thanks that worked, I never would have thought of that.
    Thank you for your help :)
    No problem man. Who would've thought right? I was just screwing around trying to figure it out and it worked hahah. Glad i could help man =]

Similar Threads

  1. Setting the DSN
    By tim in forum JDBC
    Replies: 1
    Last Post: 02-14-2008, 10:55 PM
  2. JTextArea setting
    By newtojava7 in forum New To Java
    Replies: 1
    Last Post: 01-29-2008, 03:57 AM
  3. Help with setting up please
    By BlitzA in forum New To Java
    Replies: 6
    Last Post: 12-29-2007, 01:54 PM
  4. Setting cookies in JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-10-2007, 06:33 PM
  5. Setting Java Path
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-22-2007, 10:48 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
  •