Forum Stats

  • 3,875,870 Users
  • 2,266,977 Discussions
  • 7,912,361 Comments

Discussions

NoClassDefFoundError Canvas3D - but the jar files are in the classpath!

843799
843799 Member Posts: 49,999
I have a jar'd application that uses Java3D. It is App.jar, and the three Java3D jars are in its classpath (as defined in the manifest file). Here's the pertinent bits:

File layout:
/App.jar
/lib/
    j3dcore.jar
    j3dutils.jar
    vecmath.jar
    ...
Manifest:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 11.3-b02 (Sun Microsystems Inc.)
Main-Class: polereport.PoleReportApp
SplashScreen-Image: UAMLogo.jpg
Class-Path: lib/AppFramework.jar lib/RXTXcomm.jar lib/comm.jar lib/doc
 check.jar lib/exthelper.dll lib/iText-2.1.7.jar lib/j3dcore-d3d.dll l
 ib/j3dcore-ogl-cg.dll lib/j3dcore-ogl-chk.dll lib/j3dcore-ogl.dll lib
 /j3dcore.jar lib/j3dutils.jar lib/jcalendar-1.3.3.jar lib/junit-4.7.j
 ar lib/jxl.jar lib/log4j-1.2.8.jar lib/miglayout-3.7.1-swing.jar lib/
 swing-worker-1.2.jar lib/vecmath.jar lib/xercesImpl.jar
Now, when I run this jar on my workstation it works correctly, but when I copy it to another machine it throws a NoClassDefFoundError: javax/media/j3d/Canvas3D.

Does anyone have any idea of what I'm doing wrong?

Thank you for any help you may be able to give me!
This discussion has been closed.