[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[IDV #CRR-682536]: (No Subject)
- Subject: [IDV #CRR-682536]: (No Subject)
- Date: Mon, 14 May 2007 17:27:12 -0600
Ken,
> Including the .class files for the interfaces never worked, it always
> generates the same error with the standalone IDV program. When the .class
> files are included and we run IDV through Eclipse, we get the error message:
> jlle:java.lang.LinkageError: loader (instance of
> ucar/unidata/idv/PluginManager$MyClassLoader): attempted duplicate class
> definition for name: "MUControls/MUWorldFollower"
> MUWorldFollower is currently only implemented in one class, MUProbePair. We
> get the same message for MUProbeController, an interface implemented in
> MUDataProbe and MUVerticalProfile.
>
>
I think when you run the IDV in eclipse eclipse already has the class loaded.
The IDV plugin manager just blindly loads the class from the plugin. I'll look
into
that.
As for your ClassNotFoundException try making your jar with the classes in the
MUControls
subdirectory. When the class loader gets called looking for a class it looks
for the fully qualified package name. Your jar should look like this (ignoring
the .java files):
harpo.unidata.ucar.edu: jar -tvf mu.jar
0 Mon May 14 16:47:32 MDT 2007 META-INF/
71 Mon May 14 16:47:32 MDT 2007 META-INF/MANIFEST.MF
0 Mon May 14 16:47:30 MDT 2007 MUControls/
7404 Mon May 14 16:44:00 MDT 2007 MUControls/MUController.class
3116 Mon May 14 16:44:00 MDT 2007 MUControls/MUDataProbe.class
2110 Mon May 14 16:44:00 MDT 2007 MUControls/MUKeyboardInput.class
634 Mon May 14 16:44:00 MDT 2007 MUControls/MUProbeController.class
1784 Mon May 14 16:44:00 MDT 2007 MUControls/MUProbePair.class
3102 Mon May 14 16:44:00 MDT 2007 MUControls/MUVerticalProfile.class
425 Mon May 14 16:44:00 MDT 2007 MUControls/MUWorldFollower.class
11045 Mon May 14 13:44:18 MDT 2007 MUControls/MUController.java
4531 Mon May 14 11:32:38 MDT 2007 MUControls/MUDataProbe.java
3045 Mon May 14 13:46:30 MDT 2007 MUControls/MUKeyboardInput.java
706 Mon May 14 10:07:22 MDT 2007 MUControls/MUProbeController.java
2142 Mon May 14 13:10:32 MDT 2007 MUControls/MUProbePair.java
3201 Mon May 14 11:32:24 MDT 2007 MUControls/MUVerticalProfile.java
495 Mon May 14 10:07:44 MDT 2007 MUControls/MUWorldFollower.java
345 Mon May 14 13:29:26 MDT 2007 MUControls/MUControllercontrols.xml
Not like this:
harpo.unidata.ucar.edu: jar -tvf MU_PlugIn.jar
9025 Mon May 14 13:48:30 MDT 2007 MUController.class
345 Mon May 14 13:48:30 MDT 2007 MUControllercontrols.xml
3964 Mon May 14 13:48:30 MDT 2007 MUDataProbe.class
2365 Mon May 14 13:48:30 MDT 2007 MUKeyboardInput.class
2490 Mon May 14 13:48:30 MDT 2007 MUProbePair.class
3967 Mon May 14 13:48:30 MDT 2007 MUVerticalProfile.class
-Jeff
Ticket Details
===================
Ticket ID: CRR-682536
Department: Support IDV
Priority: Normal
Status: Open