Page 3 of 3 FirstFirst 123
Results 41 to 55 of 55
  1. #41
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    The only way I see to work on this now is for you to allow us to download the jar file and examine it.

  2. #42
    illjavathat is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    Norm: feel free to inspect the specific jar file i was talking about at http://dl.dropbox.com/u/120327/RSBot.jar
    but be aware that this works for millions of others and that this error is a java error not one specifically associated with the specific jar file.

    thanks again.

  3. #43
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    a java error not one specifically associated with the specific jar file.
    What are the unique properties of the error?
    If this jar file works on other PCs then it could work on mine.
    How can anyone reproduce the problem on their PC?
    How many PCs does the problem occur on?

  4. #44
    illjavathat is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    Norm: The unique properties of this error would be that I see this "could not find main class" error on many computers but it is usually fixed by running the jarfile from the command prompt, however this time the error is not fixed by that it has the same outcome as clicking on the file.
    The main class problem occurs on a lot of peoples computer but relatively a small amount ( i would say 100 out of 10,000 just as a guess) As far as you reproducing the error on your computer i can think of no way for that to happen, because this seems (to me) to be an error with java install, not the jarfile itself.
    Because of this perhaps you could tell me another way to remove all traces of java from the computer? So far i tried using msciuu2.exe to uninstall it, and manually deleted all java files and registry keys i could find.

    Thanks for the help.

  5. #45
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    Yes, it sounds like it could be an install problem.
    Do you know how to use the Registry editor?
    Have you tried deleting all the JavaSoft entries?
    Some registry extracts:
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
    [HKEY_CURRENT_USER\Software\JavaSoft]

    And delete the java exe files from the Windows folder and any JRE other installation files.

  6. #46
    illjavathat is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    Quote Originally Posted by illjavathat View Post
    Norm: .... So far i tried using msciuu2.exe to uninstall it, and manually deleted all java files and registry keys i could find.

    Thanks for the help.
    Any other ideas for uninstall?

  7. #47
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    Nope. Nothing else.

  8. #48
    illjavathat is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    Norm: I just found another person with the error and they said this


    Quote Originally Posted by ebaum84 View Post
    So I ran the bot, and I got error #2 (The main class error) I used SVN, so I downloaded your file [by this he means a batch file which simply said
    Java Code:
     @echo off
    java -jar rsbot.jar
    ] into the data folder that was created after compiling the bot. I ran the file mainclass file, and nothing happened...after that ran the RSbot file and got the same error. When I ran the mainclass file, the cmd prompt said this.




    Full thread dump Java HotSpot(TM) Client VM (1.5.0_10-b03 mixed mode):

    "Low Memory Detector" daemon prio=6 tid=0x00a8e6c0 nid=0x200 runnable [0x0000000
    0..0x00000000]

    "CompilerThread0" daemon prio=10 tid=0x00a8d2c0 nid=0xf80 waiting on condition [
    0x00000000..0x0ac0fa48]

    "Signal Dispatcher" daemon prio=10 tid=0x00a8c738 nid=0xd08 waiting on condition
    [0x00000000..0x00000000]

    "Finalizer" daemon prio=8 tid=0x00a836f0 nid=0xd70 in Object.wait() [0x0ab8f000.
    .0x0ab8fa68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x02ad06e0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    - locked <0x02ad06e0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknow n Source)

    "Reference Handler" daemon prio=10 tid=0x00a82280 nid=0xa38 in Object.wait() [0x
    0ab4f000..0x0ab4fae8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x02ad05f0> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Unknown Source)
    at java.lang.ref.Reference$ReferenceHandler.run(Unkno wn Source)
    - locked <0x02ad05f0> (a java.lang.ref.Reference$Lock)

    "main" prio=6 tid=0x00035dd0 nid=0xf28 runnable [0x0007f000..0x0007fc40]
    at java.lang.ClassLoader$NativeLibrary.find(Native Method)
    at java.lang.ClassLoader.findNative(Unknown Source)
    - locked <0x02ad03d8> (a java.util.Vector)
    at java.util.jar.JarFile.getMetaInfEntryNames(Native Method)
    at java.util.jar.JarFile.initializeVerifier(Unknown Source)
    at java.util.jar.JarFile.getInputStream(Unknown Source)
    - locked <0x02af7df0> (a java.util.jar.JarFile)
    at sun.misc.URLClassPath$JarLoader$1.getInputStream(U nknown Source)
    at sun.misc.Resource.cachedInputStream(Unknown Source)
    - locked <0x02afd2c8> (a sun.misc.URLClassPath$JarLoader$1)
    at sun.misc.Resource.getByteBuffer(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    - locked <0x02aeb790> (a sun.misc.Launcher$AppClassLoader)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    - locked <0x02aeb790> (a sun.misc.Launcher$AppClassLoader)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    - locked <0x02aeb790> (a sun.misc.Launcher$AppClassLoader)

    "VM Thread" prio=10 tid=0x00a7e040 nid=0xf74 runnable

    "VM Periodic Task Thread" prio=10 tid=0x00aa92e0 nid=0xf9c waiting on condition


    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
    umber in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknow n Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Im not sure if this will help at all, but again i appreciate any ideas you have.

  9. #49
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    That sounds like an old JRE with a new JDK generated class file.
    Test the versions of the JRE where there is a problem.
    Update the JRE to the level of the JDK used to generate the class files
    Or recreate the all the class files using the oldest JDK that will work.

  10. #50
    Havefunpeeps is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default

    I think i might have found the problem...after searching through google i learned that people with my problem had old java jre's jdk's. so...i did an %appdata% and went under sun -->java and found these:

    Could this have ANYTHING to do with the problem?
    And should i be messing with anything under %appdata%?

  11. #51
    illjavathat is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    (hey saw the email reply)
    i could have sworn i deleted that...
    i dunno how it came back,

    YES, delete it all, this could very likely be causing the problem, APPDATA is just where installed programs store config settings and such.

    botthat

  12. #52
    Havefunpeeps is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default

    I deleted them from the %appdata% and it still didn't work, so i redownloaded JRE and JDK...again. And it still doesnt work. lol. Now under Appdata/sun/java, there is only AU, Deployment, JDK1.6.0_22, jre1.6.0_22, jinstall, and JRERuneOnce.

  13. #53
    illjavathat is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    also make sure any folders named SUN in %appdata% and %temp% are deleted, and try a clean install with http://dl.dropbox.com/u/120327/msicuu2.exe (windows installer clean up)

  14. #54
    Havefunpeeps is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default

    Okay ill try that within the next hour or so. History homework sucks.

  15. #55
    Havefunpeeps is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default

    MSICUU didnt get rid of files in appdata, temp, or C:. deleting manually now
    EDIT: Ugh. Redownloaded and it says it still is downloaded on computer. i dont know how to delete registry errors.
    EDIT: No clue how but i fixed above
    EDIT: RSBot still doesnt work. Oh well.
    EDIT (lol this is getting rediculous): Will me buying a Windows 7 Disk and reformatting from XP to 7 fix the problem? I need 7 anyways lol
    Last edited by Havefunpeeps; 10-22-2010 at 10:10 PM.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Could Not Find Main Class (again)
    By illjavathat in forum New To Java
    Replies: 25
    Last Post: 11-23-2010, 09:49 AM
  2. could not find main class?
    By deathnote202 in forum New To Java
    Replies: 6
    Last Post: 05-10-2010, 08:57 PM
  3. Could not find main class
    By Andyj in forum New To Java
    Replies: 2
    Last Post: 10-06-2009, 12:47 AM
  4. Could not find main class - JDK 1.6
    By Syranno in forum New To Java
    Replies: 1
    Last Post: 07-25-2008, 04:07 PM
  5. JVM Could not find main class
    By banduskank in forum Advanced Java
    Replies: 2
    Last Post: 06-24-2008, 08:05 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
  •