Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ClassFormatError with ICQJava/Linux

0 views
Skip to first unread message

Tommi Lappalainen

unread,
Jan 18, 2002, 8:46:38 PM1/18/02
to
Hello!

I can't start the Java ICQ, it always fails like this:

Exception in thread "main" java.lang.ClassFormatError: Mirabilis/ICQ/NetAware/CNetAwareApp (Local variable name has bad constant pool index)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
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:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

The ICQ start script tries to "include" a classes.zip file:
java -classpath $JAVA_HOME/lib/classes.zip ...
but I don't have any zip's or classes file with the j2sdk (Blackdown-1.3.1-02a-FCS)?
ICQJava recommends using jdk 1.1.4 or higher...if it's compiled using 1.1.4
maybe it won't work at all with 1.3???

* Tommi *

Juergen Kreileder

unread,
Jan 19, 2002, 1:59:34 AM1/19/02
to
Tommi Lappalainen <tola...@kosh.hut.fi> writes:

Normally it should. However in this case Mirabilis used an obfuscator
which generated broken code. The broken code happened to run in some
1.1.x VMs but not with newer VMs. So either use on older VM
(e.g. 1.1.8) or try to run it with the bytecode verifier disabled
(java -noverify ...).


BTW, ICQJava is quite old, you might want to try a newer (and better)
ICQ client. E.g. LICQ.


Juergen

--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
Run Java 2 SE v1.3.1 on your iPAQ:
http://www.handhelds.org/pipermail/ipaq/2001-June/007221.html

0 new messages