Exception in thread "main" java.lang.NoClassDefFoundError: jp/sourceforge/acerol
a3d/a3/A3Canvas
Caused by: java.lang.ClassNotFoundException: jp.sourceforge.acerola3d.a3.A3Canva
s
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: Test2. Program will exit.
public class HelloA3 {
public static void main(String args[]) throws Exception {
A3Window window = new A3Window(300,300);
Action3D a3 = new Action3D("x-res:///axis.a3");
window.add(a3);
File picFile = new File( "pic.png" );
window.saveImage(picFile);
}
}
最近HelloA3.javaの
Action3D a3 = new Action3D("x-res:///***.a3");
で読み込むときに次の文が出ます。
-------------------------------------------------------------------------------
acerola3d.action3d.sound=JOAL_DIRECT
invokeLater
JAVA 3D: OpenGL 1.2 detected; will run with reduced functionality
java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(Unknown Source)
at jp.sourceforge.acerola3d.RZipURLConnection.connect(RZipURLConnection.
java:66)
at jp.sourceforge.acerola3d.RZipURLConnection.getInputStream(RZipURLConn
ection.java:81)
at java.net.URL.openStream(Unknown Source)
at jp.sourceforge.acerola3d.a3.Action3DData.loadCatalog_NEW(Action3DData
.java:636)
at jp.sourceforge.acerola3d.a3.Action3DData.loadCatalog(Action3DData.jav
a:617)
at jp.sourceforge.acerola3d.a3.Action3DData$1.run(Action3DData.java:571)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(Unknown Sourc
e)
at jp.sourceforge.acerola3d.a3.Action3DData.init(Action3DData.java:568)
at jp.sourceforge.acerola3d.a3.Action3DData.<init>(Action3DData.java:563
)
at jp.sourceforge.acerola3d.a3.Action3D.realConstructor(Action3D.java:11
1)
at jp.sourceforge.acerola3d.a3.Action3D.<init>(Action3D.java:85)
at HelloA3.main(HelloA3.java:10)
-------------------------------------------------------------------------------
その後読み込みが終わり普通に動くのですが原因がわかりません。
axis.a3は何も出ないで普通に動きました。
新しく作ったA3オブジェクトファイルで出るようです。