CHESS PLUG-IN ERROR

THE FOLLOWING CONTAINS THE SET OF ERROR MSG DURING RUNTIME... AND FOLLOWED BY WHICH IS THE LINE WHICH THE ERROR POINTS

2007.05.31 12:58:24 PluginsLoader: initialization...

Exception in thread "main" java.lang.RuntimeException: java.lang.Exception: Error loading class net.sourceforge.capa.plugins.PluginInstance from a.jar

at net.sourceforge.capa.plugins.PluginsLoader.<init>(PluginsLoader.java:74)

at net.sourceforge.capa.plugins.PluginsLoader.getInstance(PluginsLoader.java:53)

at net.sourceforge.capa.Main.main(Main.java:61)

Caused by: java.lang.Exception: Error loading class net.sourceforge.capa.plugins.PluginInstance from a.jar

at net.sourceforge.capa.plugins.PluginsLoader.loadJar(PluginsLoader.java:124)

at net.sourceforge.capa.plugins.PluginsLoader.loadJar(PluginsLoader.java:90)

at net.sourceforge.capa.plugins.PluginsLoader.<init>(PluginsLoader.java:70)

... 2 more

Caused by: java.lang.LinkageError: loader (instance of net/sourceforge/capa/plugins/PluginsLoader): attempted duplicate class definition for name: "net/sourceforge/capa/plugins/PluginInstance"

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at net.sourceforge.capa.plugins.PluginsLoader.loadJar(PluginsLoader.java:116)

... 4 more

line no 61 is PluginsLoader.getInstance();//To initialize the plugin classloader

line no 53 is instance = new PluginsLoader();

line no 74 isthrow new RuntimeException(th);

as i am new to programming not able to get what exactly is the error. please help

[1711 byte] By [aravindraamana] at [2007-11-27 5:59:52]
# 1
Now I'm deaf.
quittea at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 2
i didn't get u .. wat?
aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 3
> Caused by: java.lang.LinkageError: loader (instance of net/sourceforge/capa/plugins/PluginsLoader):> attempted duplicate class definition for name: "net/sourceforge/capa/plugins/PluginInstance"Looks like you got this class loaded twice.
quittea at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 4
ya actually i got lot of probs with this plug-in's .. it says it will load only JAR files... i converted the entire tings into JAR file and pasted and still it has the same probs
aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 5
Did you include the class "net.sourceforge.capa.plugins.PluginInstance" in your jar?
quittea at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 6
hopefully YES. well i will check it out again soon and will come back to u again...thankx buddy
aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 7
dont u think the error is with plugin loader and not plugin instance.?
aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 8

> hopefully YES. well i will check it out again soon and will come back to u again...

I think this is the source of the problem; this class probably has been loaded by the main application already, and while the plugin loader browses your JAR, it finds the class (among others) and tries to define it for the second time. Remove it from your JAR.

quittea at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 9
hmmmm ok will try it and will come back to u thankx
aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 10

EVERYTHING IS BEING LOADED AS .JAR FROM PLUG-IN loader.. and wen i changed to .class it gives the following error

2007.05.31 15:44:02 PluginsLoader: initialization...

Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

at net.sourceforge.capa.plugins.PluginsLoader.<init>(PluginsLoader.java:74)

at net.sourceforge.capa.plugins.PluginsLoader.getInstance(PluginsLoader.java:53)

at net.sourceforge.capa.Main.main(Main.java:61)

Caused by: java.util.zip.ZipException: error in opening zip file

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(Unknown Source)

at java.util.jar.JarFile.<init>(Unknown Source)

at java.util.jar.JarFile.<init>(Unknown Source)

at net.sourceforge.capa.plugins.PluginsLoader.loadJar(PluginsLoader.java:94)

at net.sourceforge.capa.plugins.PluginsLoader.loadJar(PluginsLoader.java:90)

at net.sourceforge.capa.plugins.PluginsLoader.<init>(PluginsLoader.java:70)

... 2 more

aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 11
What's the problem with using a JAR?
quittea at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 12

i am using eclipse and created jar , but stil i get the previous error msg... so i changed to .class and now get different error

originally the code is written in such a way it accepts .jar

THE PROBLEM IS I AM NOT KNOWING WHICH FILES TO BE CONVERTED TO JAR AND WHERE EXACTLY THAT JAR FILE HAS TO BE PLACED?(WHICH PATH)

aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 13
any 1 there to help?
aravindraamana at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 14
Could you please stop shouting?Pack all your personal class files to a JAR (don't put any net.sourceforge.... classes in there) and place the JAR in the "plugins" subfolder.
quittea at 2007-7-12 16:37:01 > top of Java-index,Java Essentials,Java Programming...
# 15
i am sorry.. but i got to finish this proj soon. tat's y .. please dont mind .....well i am afraid whether i can remove those net.sourceforge .... but let me try out a diff way...thankx buddy
aravindraamana at 2007-7-21 21:39:57 > top of Java-index,Java Essentials,Java Programming...