0
我實際上已經搜索過,但在任何網站上都沒有找到解決方案。我正在嘗試在MacOS中使用Java3D編寫一個Java程序,並試圖在Eclipse中使用Java3D。我想運行一個簡單的HelloUniverse代碼,但我得到以下異常:無法在Mac OS中使用Eclipse3與Eclipse3一起使用
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no J3D in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at javax.media.j3d.MasterControl$22.run(MasterControl.java:891) at java.security.AccessController.doPrivileged(Native Method) at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:888) at javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:233) at HelloUniverse.createUniverse(HelloUniverse.java:100) at HelloUniverse.(HelloUniverse.java:126) at HelloUniverse$1.run(HelloUniverse.java:161) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701) at java.awt.EventQueue.access$000(EventQueue.java:102) at java.awt.EventQueue$3.run(EventQueue.java:662) at java.awt.EventQueue$3.run(EventQueue.java:660) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:671) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
我已經添加j3dcore.jar vecmath.jar和j3dutils.jar和一堆其他庫到我的構建路徑,但它似乎沒有工作。
任何人都可以幫助我在eclipse中使用Java3D在Mac?
感謝