Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Error: could not find main class | Can't open or launch bot

  1. #1
    Join Date
    Jan 2010
    Posts
    5,971
    Mentioned
    1214 Post(s)

    Error: could not find main class | Can't open or launch bot

    1) This error may indicate you are using Java to execute the wrong file, a file that isn't a valid 'jar' file.

    The bot download is a compressed file and you need to decompress it before you can run it. Make sure you've extracted the download and are executing the correct file HERE For example, you should be running 'RiD.jar' NOT 'RiD.rar'.

    2) This error can also indicate a problem with your Java setup.

    A) To fix your Java setup, first go to Start Menu > Control Panel > Add or Remove programs and remove all versions of Java(TM).
    Then go to http://www.java.com/en/download/manual.jsp and download and install the latest version of Java. You will be guided through the installation process, and once the latest Java is setup, you should be able to run the bot by double-clicking.

    B) If that doesn't fix it, try right-clicking the file, select open with, and choose C:\Program Files\Java\jre8\bin\javaw.exe ( "Program Files (x86)" for 64bit users with 32bit Java)

    C) If that didn't work...
    Go to Start > Control Panel > Java to open the Java Options menu.
    Click the 'Java' tab, and under 'Java Run-time Environment Settings' click 'view'.

    A window will popup, listing all your Java Run-time versions. (You should only have one, the latest version (currently 1.8) - if you have more than one, then delete the others from Control Panel > Add & Remove Programs).

    Underneath the 'Path' option, make sure the path to javaw.exe is set correctly. (Unless for some reason your Java folder isn't under Progam Files, the default) The correct path is 'C:\Program Files\Java\jre8\bin\javaw.exe'.


    D) If you're still getting the error at this point, try the following solution:
    First open "notepad" - Start Menu > Run then type "notepad" and push enter to open notepad.

    1) enter the following into notepad:
    Code:
    java -jar RiD.jar
    This is CASE SENSITIVE, so make sure you enter the name of the file correctly eg "RiD.jar" is correct, "rid.jar" is incorrect.

    2) In Notepad got File > Save As
    3) click on Save As Type and select All Files *don't forget this step
    4) go to the folder where RiD.jar is
    5) Name the file run.bat and click Save
    run must be saved in the same folder as RiD.jar

    Now double-click run to start the bot!


    3) For further problems >>
    If the bot doesn't open at this point, you will get a detailed error message.

    1) If you get a "Could not find main class" error message, to fix this right-click run.bat and select Edit then change it to following:
    Code:
    set CLASSPATH=
    java -jar RiD.jar
    Then click Save and double-click run to run the bot!


    2)For any other error message, please contact us with the error message, and we will resolve it for you shortly after. Thanks
    Last edited by RiD; 01-20-2017 at 12:18 AM.

  2. #2
    Join Date
    Jun 2010
    Posts
    11
    Mentioned
    0 Post(s)
    Nice RiD, I considered studying java language as a hobbie back when i was doing my Diploma in IT, didn't follow through with it unfortunately. Maybe I'll sub it in now with my Bachelor in IT..

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Hello, I tried all the things, but still got that problem.
    I also opened it with javaw.exë:S

  4. #4
    Join Date
    Jul 2010
    Posts
    1
    Mentioned
    0 Post(s)
    i also have this problem... using java.exe i got the same error as he did but when switching to javaw.exe i got this...

  5. #5
    Join Date
    Jul 2010
    Posts
    2
    Mentioned
    0 Post(s)
    i have team veiwer if u could help me

  6. #6
    Join Date
    Oct 2010
    Posts
    602
    Mentioned
    0 Post(s)
    thanks rid

  7. #7
    Join Date
    Nov 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Omg! Tysm!

  8. #8
    Join Date
    Jan 2012
    Posts
    1
    Mentioned
    0 Post(s)
    when i double click run a black box opens then closes. help please.

  9. #9
    Join Date
    Jul 2010
    Posts
    1
    Mentioned
    0 Post(s)
    ^ exact same thing for me

    ----------

    I used this guide for the problem I was having:
    http://www.robotzindisguise.com/foru...ind-main-class.

    I did all steps from 1) to 2)d).

    Once I tried running the jar.bat file, it quickly flashed a command box (black box or whatever).

    I did a printscreen to try and see what it was saying and when I copied it into paint it said "Java is not recognized as an internal or external command, operable program or batch file."

    What do I do?

    (this is my support ticket but i thought id post it here as well)
    Last edited by borg360; 01-02-2012 at 08:53 PM.

  10. #10
    Sicko Zone's Avatar
    Sicko Zone is offline
    Veteran Member  
     $5 Credit    Premium: 2000->3000 hours used  Free Bots: 100->200 hours used  99 Fletch 99 Wc 99 Thieving 99 Crafting 99 Con 99 Cook 99 Agility 99 Smith 99 Mager 
    Join Date
    Jan 2012
    Location
    LOCKED IN A DARK ROOM WITH NO WINDOWS
    Posts
    131
    Mentioned
    0 Post(s)
    This guide at the top by RiD works everytime for me, when i need to set the client up and unzip it, i gotta change the name of the file.. Runs like a dream

    ----------

    Works spot on when i do this. tysm

Tags for this Thread

Posting Permissions

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