Results 1 to 8 of 8
  1. #1
    paisa90 is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default Screwed up system variables

    Hello all. I was having the "cant find main class" error so I read around that it could be the system variables. I changed them several times and reinstalled Java SDK many times to try to solve this but nothing happened, so I went on and erased all the system variables related to Java because I thought they'd be restored when I reinstalled the SDK.

    Well they didnt and now I cant even use a website with Java because I get some "Java not detected" message.

    I dont remember which system variables I erased, can you give me a hand? Thank you a lot :(

  2. #2
    paisa90 is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    EDIT:

    I remember I deleted the CLASSPATH, JAVAHOME and JAVA system variables. I can create them again but I dont know what to put under "location". Help me out please :(

  3. #3
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Lightbulb

    Quote Originally Posted by paisa90 View Post
    EDIT:

    I remember I deleted the CLASSPATH, JAVAHOME and JAVA system variables. I can create them again but I dont know what to put under "location". Help me out please :(
    Uninstall JRE and reinstall it to refresh your OS settings ;)
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  4. #4
    paisa90 is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    I did it several times and it didnt help :S

    What should I put in each of those variables? I remember their destiny folders where .../java/bin in C:/ or something like that but I need the specifics.

  5. #5
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Watch the source

    instructions
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default

    And, I don't know where you got the info that "can't find main class" is down to system variables, but they were very wrong.

  7. #7
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Quote Originally Posted by paisa90 View Post
    Hello all. I was having the "cant find main class" error so I read around that it could be the system variables.
    Emm... can't find main class means you don't have main method in your start class )
    Maybe the problem is you using an IDE? Is it Eclipse or what?
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  8. #8
    dage_001 is offline Member
    Join Date
    Apr 2010
    Posts
    8
    Rep Power
    0

    Default

    Hello. I too am curious since I only had to modify the "Path" entry maybe once when I had to install a plug-in for my IDE. I am also new, but are you trying to change the "class path variables" in your IDE or the "Environment Variables" in your computer?

    Have you also searched the "Similar threads" section below? They are older threads but they might point you in the direction you need.

Similar Threads

  1. Replies: 3
    Last Post: 02-07-2010, 08:34 PM
  2. Member Variables
    By rrp in forum New To Java
    Replies: 2
    Last Post: 11-29-2009, 11:25 AM
  3. What are Instance variables and static variables?
    By sandeshforu in forum New To Java
    Replies: 3
    Last Post: 09-09-2009, 05:48 PM
  4. JAVA -Setting system variables for Vista
    By vertesi in forum New To Java
    Replies: 3
    Last Post: 03-20-2009, 08:10 AM
  5. Variables
    By mew in forum New To Java
    Replies: 3
    Last Post: 12-11-2007, 12:44 PM

Posting Permissions

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