also @ TechSpot: Intel says Haswell will improve battery life by 50 percent

I changed my "classpath" variable by accident!

Discussion in 'Windows OS' started by mimimoomoo1, Feb 17, 2010.

  1. mimimoomoo1 Newcomer, in training

    I changed my CLASSPATH variable and now whenever I go to run a cmd file it automatically closes, like a RSPS. Also I cannot run any Java files :(. please help, i need to revert my CLASSPATH variable back to what it orginally was, I had changed it to my jdk, before it was like jre1.6.0 something :\. I'm using windows vista. I need the exact variable like what to type in it. thanks in advance :)
  2. LookinAround TechSpot Chancellor Posts: 7,679   +39

    Try uninstalling/reinstalling your java
  3. mimimoomoo1 Newcomer, in training

    restart afterwards?
  4. LookinAround TechSpot Chancellor Posts: 7,679   +39

    i dunno.. but a restart never hurts
  5. mimimoomoo1 Newcomer, in training

    mk ill try that, but are there any experts on this forum that could help me?
  6. mimimoomoo1 Newcomer, in training

    I cba paying 30$ to get a (simple?) problem fixed..
     
  7. LookinAround TechSpot Chancellor Posts: 7,679   +39

    LOL

    Isn't trying to reinstall java both simple and free? (and likely to reset all your java stuff!)
  8. mimimoomoo1 Newcomer, in training

    Meh, i mean, which out of these will reset my classpath if i re-install, jdk or reg java?
  9. LookinAround TechSpot Chancellor Posts: 7,679   +39

    Unless you are a java developer, you only need Java Run time Environment (JRE) (vs. the Java Development Kit - JDK)

    So just go to Add/Remove Programs. Uninstall all the Java entries. Then go here to download Java run time
  10. mimimoomoo1 Newcomer, in training

    Mk, but I use JDK for a Runescape Private server (RSPS). I need it to run the client & to compile...
  11. LookinAround TechSpot Chancellor Posts: 7,679   +39

    Then you can look here to find the JDKits
  12. mimimoomoo1 Newcomer, in training

    eh
    this is what the forum who told me to change it said,

    "Now that your there, In the CLASSPATH As show in the pic above, XP users put in C:\Program Files\Java\jdk1.6.0_17\bin;%CLASSPATH%;

    Vista Users Put in C:\Program Files(x64)\Java\jdk1.6.0_17\bin;%CLASSPATH%;"
  13. mimimoomoo1 Newcomer, in training

    I changed the system variable for classpath.. -.- can anyone provide me with the vista 32bit variable with the lastest java installed?
    Plox
  14. LookinAround TechSpot Chancellor Posts: 7,679   +39

    Well, an uninstall / reinstall would reset the CLASSPATH. Tho it sounds like what you're trying to do and asking about is not just resetting it but getting things to work with runescape (which i don't know or ever used). So you might be best be posting a new thread mentioning both CLASSPATH and Runescape in the title and ask for more specific help.

    G;luck
  15. mimimoomoo1 Newcomer, in training

  16. jobeard TS Ambassador Posts: 12,239   +123

    wrong;

    the JAVAHOME IS C:\Program Files\Java\
    the RTE is at jdk1.6.0_17 [edit] oops; it's called the JRE :) [/edit]
    the classes are at lib\ext\
    in the package QTJava.zip

    but the %CLASSPATH% is C:\Program Files\Java\jdk1.6.0_17\lib\ext\QTJava.zip

    CLASSPATH is a variable that belongs to JAVA, not Windows/anyversion. In fact, it is
    an absolute path on every OS.