###前提・実現したいこと
ここに質問したいことを詳細に書いてください
プログラミング素人です。
JavaでJOGLを使って開発を行いたいのですが、エラー文がよくわからなく実行することができません。
これは何が問題で実行できないのでしょうか?
###発生している問題・エラーメッセージ
エラーメッセージ [exec] Exception in thread "main" java.lang.UnsatisfiedLinkError: jogamp.common.os.MachineDataInfoRuntime.getPointerSizeInBytesImpl()I [exec] at jogamp.common.os.MachineDataInfoRuntime.getPointerSizeInBytesImpl(Native Method) [exec] at jogamp.common.os.MachineDataInfoRuntime.getRuntimeImpl(MachineDataInfoRuntime.java:129) [exec] at jogamp.common.os.MachineDataInfoRuntime.initialize(MachineDataInfoRuntime.java:50) [exec] at com.jogamp.common.os.Platform.<clinit>(Platform.java:339) [exec] at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147) [exec] at tryjogl.Example.<init>(Unknown Source) [exec] at tryjogl.Example.main(Unknown Source)
###該当のソースコード
package tryjogl;
import com.jogamp.opengl.;
import com.jogamp.opengl.awt.;
import javax.swing.JFrame;
public class Example extends Object {
public Example(){
System.out.println("Example");
GLProfile profile = GLProfile.get(GLProfile.GL2); GLCapabilities capabilities = new GLCapabilities(profile); capabilities.setDoubleBuffered(true); GLCanvas aCanvas = new GLCanvas(capabilities); JFrame aFrame = new JFrame("Wire Teapot"); aFrame.add(aCanvas); aFrame.addNotify(); int titleBarHeight = aFrame.getInsets().top; aFrame.setSize(400, 400 + titleBarHeight); aFrame.setLocationRelativeTo(null); aFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); aFrame.setFocusable(false); aFrame.setVisible(true); return; } public static void main(String[] arguments){ System.out.println("main"); new Example(); return; }
}
###補足情報(言語/FW/ツール等のバージョンなど)
JOGL 2.3.2
MacOS 10.11.4
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/05/19 14:48
2016/05/19 15:34