TechSpot

I changed my "classpath" variable by accident!

By mimimoomoo1
Feb 17, 2010
  1. 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

    LookinAround TechSpot Chancellor Posts: 8,374   +167

    Try uninstalling/reinstalling your java
     
  3. mimimoomoo1

    mimimoomoo1 TS Rookie Topic Starter

    restart afterwards?
     
  4. LookinAround

    LookinAround TechSpot Chancellor Posts: 8,374   +167

    i dunno.. but a restart never hurts
     
  5. mimimoomoo1

    mimimoomoo1 TS Rookie Topic Starter

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

    mimimoomoo1 TS Rookie Topic Starter

    I cba paying 30$ to get a (simple?) problem fixed..
     
  7. LookinAround

    LookinAround TechSpot Chancellor Posts: 8,374   +167

    LOL

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

    mimimoomoo1 TS Rookie Topic Starter

    Meh, i mean, which out of these will reset my classpath if i re-install, jdk or reg java?
     
  9. LookinAround

    LookinAround TechSpot Chancellor Posts: 8,374   +167

    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

    mimimoomoo1 TS Rookie Topic Starter

    Mk, but I use JDK for a Runescape Private server (RSPS). I need it to run the client & to compile...
     
  11. LookinAround

    LookinAround TechSpot Chancellor Posts: 8,374   +167

    Then you can look here to find the JDKits
     
     
  12. mimimoomoo1

    mimimoomoo1 TS Rookie Topic Starter

    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

    mimimoomoo1 TS Rookie Topic Starter

    I changed the system variable for classpath.. -.- can anyone provide me with the vista 32bit variable with the lastest java installed?
    Plox
     
  14. LookinAround

    LookinAround TechSpot Chancellor Posts: 8,374   +167

    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

    mimimoomoo1 TS Rookie Topic Starter

  16. jobeard

    jobeard TS Ambassador Posts: 13,450   +324

    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.
     
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.