How to fix - Exception in thread "main"...

36 views
Skip to first unread message

Donna Lau

unread,
Aug 20, 2012, 5:46:06 PM8/20/12
to igv-...@googlegroups.com
Hi,
I'm trying to get IGV running to work on my assignment but I keep getting this error
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)

This is my java version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

And i'm using Mac Os x version 10.5.8.

I'm extremely inexperienced with this, any thoughts on how i could fix this?

Thanks

Craig Berry

unread,
Aug 21, 2012, 4:53:53 AM8/21/12
to igv-...@googlegroups.com
The problem looks like your version of Java is too old. You'll need at least version 6 (or confusingly 1.6). I'm not too sure how IGV behaves with Java 7 (the latest version) so maybe just upgrade to 6 for now.


HTH

Craig


--
 
 
 

Reply all
Reply to author
Forward
0 new messages