Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » java.lang.NoClassDefFoundError while opening custom view
java.lang.NoClassDefFoundError while opening custom view [message #95281] Wed, 16 July 2003 17:22 Go to next message
Eclipse UserFriend
Originally posted by: david.t.hurst.verizon.net

I am creating a plug-in to use eclipse with Java3D. As a part of
this, I'm creating an Eclipse Tree View to display information from
the J3D Scenegraph (a hierarchical set of objects that describe a 3D
scene.) The required Java 3D library jars (j3dcore.jar (which
contains javax.media.j3d) and vecmath.jar) are installed in
jre\lib\ext . All required packages are visible under the JRE System
Library jar in the Package Explorer. The project builds fine and the
plug-in loads. However, when I go to open the Tree View that requires
objects from these packages, I get an error and the following is
written to the session log:

!ENTRY org.eclipse.ui.workbench 4 2 Jul 16, 2003 17:10:30.60
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.NoClassDefFoundError: javax/media/j3d/GeometryArray

followed by a bunch of stack information. GeometryArray is a class in
the javax.media.j3d package, but it is not significant. I have gotten
the same error with other classes and tried to correct it by
commenting out those specific classes, but presumably every class in
the package will give the same error.

To troubleshoot this, I've tried the following:

- To ensure it's not just a problem with the run-time workbench
classpath, I exported the project to a jar with the plug-in.xml file
and loaded it as part of the main workbench. Same error, same log
file entry.

- To ensure that the libraries were available to the JRE at runtime, I
launched a J3D standalone application from Eclipse and the application
launches and performs as expected, with access to the required J3D
libraries. This launch uses the same VM (JRE 1.4.1_03) as specified
in the Run-time workbench launch that is failing.

I believe the problem is that at runtime, the workbench VM is not
finding the required libraries, but I am at a loss as to where I am
failing to set them. Given the build workbench sees them fine and a
standalone application using the same VM sees them fine, what am I
missing?

Any help would be greatly appreciated.

David
Re: java.lang.NoClassDefFoundError while opening custom view [message #95541 is a reply to message #95281] Thu, 17 July 2003 02:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Did you add the library to the classpath of the Eclipse Run-time
Workbench launch configuration?

Dani

David Hurst wrote:

>I am creating a plug-in to use eclipse with Java3D. As a part of
>this, I'm creating an Eclipse Tree View to display information from
>the J3D Scenegraph (a hierarchical set of objects that describe a 3D
>scene.) The required Java 3D library jars (j3dcore.jar (which
>contains javax.media.j3d) and vecmath.jar) are installed in
>jre\lib\ext . All required packages are visible under the JRE System
>Library jar in the Package Explorer. The project builds fine and the
>plug-in loads. However, when I go to open the Tree View that requires
>objects from these packages, I get an error and the following is
>written to the session log:
>
>!ENTRY org.eclipse.ui.workbench 4 2 Jul 16, 2003 17:10:30.60
>!MESSAGE Problems occurred when invoking code from plug-in:
>"org.eclipse.ui.workbench".
>!STACK 0
>java.lang.NoClassDefFoundError: javax/media/j3d/GeometryArray
>
>followed by a bunch of stack information. GeometryArray is a class in
>the javax.media.j3d package, but it is not significant. I have gotten
>the same error with other classes and tried to correct it by
>commenting out those specific classes, but presumably every class in
>the package will give the same error.
>
>To troubleshoot this, I've tried the following:
>
>- To ensure it's not just a problem with the run-time workbench
>classpath, I exported the project to a jar with the plug-in.xml file
>and loaded it as part of the main workbench. Same error, same log
>file entry.
>
>- To ensure that the libraries were available to the JRE at runtime, I
>launched a J3D standalone application from Eclipse and the application
>launches and performs as expected, with access to the required J3D
>libraries. This launch uses the same VM (JRE 1.4.1_03) as specified
>in the Run-time workbench launch that is failing.
>
>I believe the problem is that at runtime, the workbench VM is not
>finding the required libraries, but I am at a loss as to where I am
>failing to set them. Given the build workbench sees them fine and a
>standalone application using the same VM sees them fine, what am I
>missing?
>
>Any help would be greatly appreciated.
>
>David
>
>
Re: java.lang.NoClassDefFoundError while opening custom view [message #95877 is a reply to message #95541] Thu, 17 July 2003 16:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.t.hurst.verizon.net

Dani,

Thanks for the response. Two answers to your question:

1. The required library is under the JRE directory (in lib\ext). It
shows up as 'part' of the JRE packages in the Package explorer. If I
try to add it as an external jar, I get a duplicate package error.

2. The same NoClassDefFound error happens in both the run-time
workbench and the main workbench, so I don't think it's an issue
limited to the run-time configuration.

Is there some reason I'd need to add the lib\ext directory to the run
classpath? If so, why does it work Ok at compile time and why does
the standalone app that uses the library work? I'm confused. Maybe
the next step is to try taking the J3D libraries out of the JRE
directory and adding them explicitly from elsewhere?

I appreciate the help.

David Hurst
david.t.hurst@verizon.net


On Thu, 17 Jul 2003 08:39:11 +0200, Daniel Megert
<daniel.megert@gmx.net> wrote:

>Did you add the library to the classpath of the Eclipse Run-time
>Workbench launch configuration?
>
>Dani
>
>David Hurst wrote:
>
>>I am creating a plug-in to use eclipse with Java3D. As a part of
>>this, I'm creating an Eclipse Tree View to display information from
>>the J3D Scenegraph (a hierarchical set of objects that describe a 3D
>>scene.) The required Java 3D library jars (j3dcore.jar (which
>>contains javax.media.j3d) and vecmath.jar) are installed in
>>jre\lib\ext . All required packages are visible under the JRE System
>>Library jar in the Package Explorer. The project builds fine and the
>>plug-in loads. However, when I go to open the Tree View that requires
>>objects from these packages, I get an error and the following is
>>written to the session log:
>>
>>!ENTRY org.eclipse.ui.workbench 4 2 Jul 16, 2003 17:10:30.60
>>!MESSAGE Problems occurred when invoking code from plug-in:
>>"org.eclipse.ui.workbench".
>>!STACK 0
>>java.lang.NoClassDefFoundError: javax/media/j3d/GeometryArray
>>
>>followed by a bunch of stack information. GeometryArray is a class in
>>the javax.media.j3d package, but it is not significant. I have gotten
>>the same error with other classes and tried to correct it by
>>commenting out those specific classes, but presumably every class in
>>the package will give the same error.
>>
>>To troubleshoot this, I've tried the following:
>>
>>- To ensure it's not just a problem with the run-time workbench
>>classpath, I exported the project to a jar with the plug-in.xml file
>>and loaded it as part of the main workbench. Same error, same log
>>file entry.
>>
>>- To ensure that the libraries were available to the JRE at runtime, I
>>launched a J3D standalone application from Eclipse and the application
>>launches and performs as expected, with access to the required J3D
>>libraries. This launch uses the same VM (JRE 1.4.1_03) as specified
>>in the Run-time workbench launch that is failing.
>>
>>I believe the problem is that at runtime, the workbench VM is not
>>finding the required libraries, but I am at a loss as to where I am
>>failing to set them. Given the build workbench sees them fine and a
>>standalone application using the same VM sees them fine, what am I
>>missing?
>>
>>Any help would be greatly appreciated.
>>
>>David
>>
>>
Re: java.lang.NoClassDefFoundError while opening custom view [message #95908 is a reply to message #95877] Thu, 17 July 2003 17:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

David Hurst wrote:

>Dani,
>
>Thanks for the response. Two answers to your question:
>
>1. The required library is under the JRE directory (in lib\ext). It
>shows up as 'part' of the JRE packages in the Package explorer. If I
>try to add it as an external jar, I get a duplicate package error.
>
There's no need to do this your build path for the compiler is OK.

>2. The same NoClassDefFound error happens in both the run-time
>workbench and the main workbench, so I don't think it's an issue
>limited to the run-time configuration.
>
>Is there some reason I'd need to add the lib\ext directory to the run
>classpath? If so, why does it work Ok at compile time and why does
>the standalone app that uses the library work?
>
The path used by he compiler is called Java build path and is configured
in the project's property page. This is setup correctly. Another story
is the classpath upon launching. This is set in your launch
configuration. Edit your Run-time workbench configuration - there is a
field where you can set the classpath.

HTH
Dani

> I'm confused. Maybe
>the next step is to try taking the J3D libraries out of the JRE
>directory and adding them explicitly from elsewhere?
>
>I appreciate the help.
>
>David Hurst
>david.t.hurst@verizon.net
>
>
>On Thu, 17 Jul 2003 08:39:11 +0200, Daniel Megert
><daniel.megert@gmx.net> wrote:
>
>
>
>>Did you add the library to the classpath of the Eclipse Run-time
>>Workbench launch configuration?
>>
>>Dani
>>
>>David Hurst wrote:
>>
>>
>>
>>>I am creating a plug-in to use eclipse with Java3D. As a part of
>>>this, I'm creating an Eclipse Tree View to display information from
>>>the J3D Scenegraph (a hierarchical set of objects that describe a 3D
>>>scene.) The required Java 3D library jars (j3dcore.jar (which
>>>contains javax.media.j3d) and vecmath.jar) are installed in
>>>jre\lib\ext . All required packages are visible under the JRE System
>>>Library jar in the Package Explorer. The project builds fine and the
>>>plug-in loads. However, when I go to open the Tree View that requires
>>>objects from these packages, I get an error and the following is
>>>written to the session log:
>>>
>>>!ENTRY org.eclipse.ui.workbench 4 2 Jul 16, 2003 17:10:30.60
>>>!MESSAGE Problems occurred when invoking code from plug-in:
>>>"org.eclipse.ui.workbench".
>>>!STACK 0
>>>java.lang.NoClassDefFoundError: javax/media/j3d/GeometryArray
>>>
>>>followed by a bunch of stack information. GeometryArray is a class in
>>>the javax.media.j3d package, but it is not significant. I have gotten
>>>the same error with other classes and tried to correct it by
>>>commenting out those specific classes, but presumably every class in
>>>the package will give the same error.
>>>
>>>To troubleshoot this, I've tried the following:
>>>
>>>- To ensure it's not just a problem with the run-time workbench
>>>classpath, I exported the project to a jar with the plug-in.xml file
>>>and loaded it as part of the main workbench. Same error, same log
>>>file entry.
>>>
>>>- To ensure that the libraries were available to the JRE at runtime, I
>>>launched a J3D standalone application from Eclipse and the application
>>>launches and performs as expected, with access to the required J3D
>>>libraries. This launch uses the same VM (JRE 1.4.1_03) as specified
>>>in the Run-time workbench launch that is failing.
>>>
>>>I believe the problem is that at runtime, the workbench VM is not
>>>finding the required libraries, but I am at a loss as to where I am
>>>failing to set them. Given the build workbench sees them fine and a
>>>standalone application using the same VM sees them fine, what am I
>>>missing?
>>>
>>>Any help would be greatly appreciated.
>>>
>>>David
>>>
>>>
>>>
>>>
>
>
>
Re: java.lang.NoClassDefFoundError while opening custom view [message #96102 is a reply to message #95908] Thu, 17 July 2003 22:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.t.hurst.verizon.net

Dani,

Thanks again for your patience with this java newbie, but I guess I'm
just not seeing exactly what you're talking about.

You didn't specify a screen or a field to use, but I'm assuming you're
talking about the Run > Run menu and choosing a Run-time workbench
configuration. On this screen, there's no field that's readily
apparent as a classpath field, so I did some reading up on VM
arguments and I'm guessing what you're saying is I should use the
-classpath VM argument to point to my J3D files. I tried:

-classpath /lib/ext
-classpath /ext
-classpath "c:/program files/java/j2re1.4.1_03/lib/ext"

I also tried about a dozen other combinations including with the jar
name. All produced the same error.

First question - am I even using the screen and field you had in mind?
Second question - if so, what is the format of the classpath command I
need to see the javax.media.j3d package in the j3dcore.jar archive in
the lib/ext folder?

Thanks for all the patience.

David


On Thu, 17 Jul 2003 23:34:01 +0200, Daniel Megert
<daniel.megert@gmx.net> wrote:

>David Hurst wrote:
>
>>Dani,
>>
>>Thanks for the response. Two answers to your question:
>>
>>1. The required library is under the JRE directory (in lib\ext). It
>>shows up as 'part' of the JRE packages in the Package explorer. If I
>>try to add it as an external jar, I get a duplicate package error.
>>
>There's no need to do this your build path for the compiler is OK.
>
>>2. The same NoClassDefFound error happens in both the run-time
>>workbench and the main workbench, so I don't think it's an issue
>>limited to the run-time configuration.
>>
>>Is there some reason I'd need to add the lib\ext directory to the run
>>classpath? If so, why does it work Ok at compile time and why does
>>the standalone app that uses the library work?
>>
>The path used by he compiler is called Java build path and is configured
>in the project's property page. This is setup correctly. Another story
>is the classpath upon launching. This is set in your launch
>configuration. Edit your Run-time workbench configuration - there is a
>field where you can set the classpath.
>
>HTH
>Dani
>
>> I'm confused. Maybe
>>the next step is to try taking the J3D libraries out of the JRE
>>directory and adding them explicitly from elsewhere?
>>
>>I appreciate the help.
>>
>>David Hurst
>>david.t.hurst@verizon.net
>>
>>
>>On Thu, 17 Jul 2003 08:39:11 +0200, Daniel Megert
>><daniel.megert@gmx.net> wrote:
>>
>>
>>
>>>Did you add the library to the classpath of the Eclipse Run-time
>>>Workbench launch configuration?
>>>
>>>Dani
>>>
>>>David Hurst wrote:
>>>
>>>
>>>
>>>>I am creating a plug-in to use eclipse with Java3D. As a part of
>>>>this, I'm creating an Eclipse Tree View to display information from
>>>>the J3D Scenegraph (a hierarchical set of objects that describe a 3D
>>>>scene.) The required Java 3D library jars (j3dcore.jar (which
>>>>contains javax.media.j3d) and vecmath.jar) are installed in
>>>>jre\lib\ext . All required packages are visible under the JRE System
>>>>Library jar in the Package Explorer. The project builds fine and the
>>>>plug-in loads. However, when I go to open the Tree View that requires
>>>>objects from these packages, I get an error and the following is
>>>>written to the session log:
>>>>
>>>>!ENTRY org.eclipse.ui.workbench 4 2 Jul 16, 2003 17:10:30.60
>>>>!MESSAGE Problems occurred when invoking code from plug-in:
>>>>"org.eclipse.ui.workbench".
>>>>!STACK 0
>>>>java.lang.NoClassDefFoundError: javax/media/j3d/GeometryArray
>>>>
>>>>followed by a bunch of stack information. GeometryArray is a class in
>>>>the javax.media.j3d package, but it is not significant. I have gotten
>>>>the same error with other classes and tried to correct it by
>>>>commenting out those specific classes, but presumably every class in
>>>>the package will give the same error.
>>>>
>>>>To troubleshoot this, I've tried the following:
>>>>
>>>>- To ensure it's not just a problem with the run-time workbench
>>>>classpath, I exported the project to a jar with the plug-in.xml file
>>>>and loaded it as part of the main workbench. Same error, same log
>>>>file entry.
>>>>
>>>>- To ensure that the libraries were available to the JRE at runtime, I
>>>>launched a J3D standalone application from Eclipse and the application
>>>>launches and performs as expected, with access to the required J3D
>>>>libraries. This launch uses the same VM (JRE 1.4.1_03) as specified
>>>>in the Run-time workbench launch that is failing.
>>>>
>>>>I believe the problem is that at runtime, the workbench VM is not
>>>>finding the required libraries, but I am at a loss as to where I am
>>>>failing to set them. Given the build workbench sees them fine and a
>>>>standalone application using the same VM sees them fine, what am I
>>>>missing?
>>>>
>>>>Any help would be greatly appreciated.
>>>>
>>>>David
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
Re: java.lang.NoClassDefFoundError while opening custom view [message #97211 is a reply to message #96102] Sat, 19 July 2003 17:16 Go to previous message
Eclipse UserFriend
Originally posted by: david.t.hurst.verizon.net

I have found a way to make this work, though I'm still not sure why
the VM couldn't find it's extensions. I'm referencing the required
libraries in the plug-in.xml using the <library> tag under the
<runtime> element. I'll look now to see how much freedom I have to
move these libraries around.

Thanks for the help

David Hurst

On Thu, 17 Jul 2003 22:36:04 -0400, David Hurst
<david.t.hurst@verizon.net> wrote:

>Dani,
>
>Thanks again for your patience with this java newbie, but I guess I'm
>just not seeing exactly what you're talking about.
>
>You didn't specify a screen or a field to use, but I'm assuming you're
>talking about the Run > Run menu and choosing a Run-time workbench
>configuration. On this screen, there's no field that's readily
>apparent as a classpath field, so I did some reading up on VM
>arguments and I'm guessing what you're saying is I should use the
>-classpath VM argument to point to my J3D files. I tried:
>
> -classpath /lib/ext
> -classpath /ext
> -classpath "c:/program files/java/j2re1.4.1_03/lib/ext"
>
>I also tried about a dozen other combinations including with the jar
>name. All produced the same error.
>
>First question - am I even using the screen and field you had in mind?
>Second question - if so, what is the format of the classpath command I
>need to see the javax.media.j3d package in the j3dcore.jar archive in
>the lib/ext folder?
>
>Thanks for all the patience.
>
>David
>
>
>On Thu, 17 Jul 2003 23:34:01 +0200, Daniel Megert
><daniel.megert@gmx.net> wrote:
>
>>David Hurst wrote:
>>
>>>Dani,
>>>
>>>Thanks for the response. Two answers to your question:
>>>
>>>1. The required library is under the JRE directory (in lib\ext). It
>>>shows up as 'part' of the JRE packages in the Package explorer. If I
>>>try to add it as an external jar, I get a duplicate package error.
>>>
>>There's no need to do this your build path for the compiler is OK.
>>
>>>2. The same NoClassDefFound error happens in both the run-time
>>>workbench and the main workbench, so I don't think it's an issue
>>>limited to the run-time configuration.
>>>
>>>Is there some reason I'd need to add the lib\ext directory to the run
>>>classpath? If so, why does it work Ok at compile time and why does
>>>the standalone app that uses the library work?
>>>
>>The path used by he compiler is called Java build path and is configured
>>in the project's property page. This is setup correctly. Another story
>>is the classpath upon launching. This is set in your launch
>>configuration. Edit your Run-time workbench configuration - there is a
>>field where you can set the classpath.
>>
>>HTH
>>Dani
>>
>>> I'm confused. Maybe
>>>the next step is to try taking the J3D libraries out of the JRE
>>>directory and adding them explicitly from elsewhere?
>>>
>>>I appreciate the help.
>>>
>>>David Hurst
>>>david.t.hurst@verizon.net
>>>
>>>
>>>On Thu, 17 Jul 2003 08:39:11 +0200, Daniel Megert
>>><daniel.megert@gmx.net> wrote:
>>>
>>>
>>>
>>>>Did you add the library to the classpath of the Eclipse Run-time
>>>>Workbench launch configuration?
>>>>
>>>>Dani
>>>>
>>>>David Hurst wrote:
>>>>
>>>>
>>>>
>>>>>I am creating a plug-in to use eclipse with Java3D. As a part of
>>>>>this, I'm creating an Eclipse Tree View to display information from
>>>>>the J3D Scenegraph (a hierarchical set of objects that describe a 3D
>>>>>scene.) The required Java 3D library jars (j3dcore.jar (which
>>>>>contains javax.media.j3d) and vecmath.jar) are installed in
>>>>>jre\lib\ext . All required packages are visible under the JRE System
>>>>>Library jar in the Package Explorer. The project builds fine and the
>>>>>plug-in loads. However, when I go to open the Tree View that requires
>>>>>objects from these packages, I get an error and the following is
>>>>>written to the session log:
>>>>>
>>>>>!ENTRY org.eclipse.ui.workbench 4 2 Jul 16, 2003 17:10:30.60
>>>>>!MESSAGE Problems occurred when invoking code from plug-in:
>>>>>"org.eclipse.ui.workbench".
>>>>>!STACK 0
>>>>>java.lang.NoClassDefFoundError: javax/media/j3d/GeometryArray
>>>>>
>>>>>followed by a bunch of stack information. GeometryArray is a class in
>>>>>the javax.media.j3d package, but it is not significant. I have gotten
>>>>>the same error with other classes and tried to correct it by
>>>>>commenting out those specific classes, but presumably every class in
>>>>>the package will give the same error.
>>>>>
>>>>>To troubleshoot this, I've tried the following:
>>>>>
>>>>>- To ensure it's not just a problem with the run-time workbench
>>>>>classpath, I exported the project to a jar with the plug-in.xml file
>>>>>and loaded it as part of the main workbench. Same error, same log
>>>>>file entry.
>>>>>
>>>>>- To ensure that the libraries were available to the JRE at runtime, I
>>>>>launched a J3D standalone application from Eclipse and the application
>>>>>launches and performs as expected, with access to the required J3D
>>>>>libraries. This launch uses the same VM (JRE 1.4.1_03) as specified
>>>>>in the Run-time workbench launch that is failing.
>>>>>
>>>>>I believe the problem is that at runtime, the workbench VM is not
>>>>>finding the required libraries, but I am at a loss as to where I am
>>>>>failing to set them. Given the build workbench sees them fine and a
>>>>>standalone application using the same VM sees them fine, what am I
>>>>>missing?
>>>>>
>>>>>Any help would be greatly appreciated.
>>>>>
>>>>>David
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
Previous Topic:Classpath problem with extension directory
Next Topic:How can I change the keybinding config programatically?
Goto Forum:
  


Current Time: Sun May 11 18:08:49 EDT 2025

Powered by FUDForum. Page generated in 0.03405 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top