Hi guys i'm actually developing a university project using jzy3d, it's an applet. I built it running always into eclipse without having errors, but when i export the applet as a jar and run it with appletviewer here is the exception that is thrown:
Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError
at com.jogamp.common.util.PropertyAccess.addTrustedPrefix(PropertyAccess
.java:52)
at jogamp.opengl.Debug.<clinit>(Debug.java:52)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:78)
at org.jzy3d.chart.Settings.<init>(Settings.java:19)
at org.jzy3d.chart.Settings.getInstance(Settings.java:48)
at org.jzy3d.chart.Chart.<init>(Chart.java:64)
at org.jzy3d.chart.AWTChart.<init>(AWTChart.java:26)
at org.jzy3d.chart.factories.AWTChartComponentFactory.newChart(AWTChartC
omponentFactory.java:54)
at org.jzy3d.chart.factories.ChartComponentFactory.newChart(ChartCompone
ntFactory.java:54)
at org.jzy3d.chart.factories.AWTChartComponentFactory.chart(AWTChartComp
onentFactory.java:47)
at visualization_3d.Panel_3D.initialize(Panel_3D.java:124)
at QT$TabbedPane$Instructions_Panel$Visualize_ActionListener.actionPerfo
rmed(QT.java:416)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:20
22)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2346)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6525)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3322)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:724)
at java.awt.EventQueue$4.run(EventQueue.java:722)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.security.AccessControlException: access denied ("java.lang.Runti
mePermission" "getProtectionDomain")
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:457)
at java.security.AccessController.checkPermission(AccessController.java:
884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.Class.getProtectionDomain(Class.java:2291)
at com.jogamp.common.util.SecurityUtil$2.run(SecurityUtil.java:52)
at com.jogamp.common.util.SecurityUtil$2.run(SecurityUtil.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.util.SecurityUtil.getCerts(SecurityUtil.java:50)
at com.jogamp.common.util.SecurityUtil.<clinit>(SecurityUtil.java:46)
... 47 more
I tried to change the jogl version, the jzy3d version and computer but the exception remains. I repeat that the application runs fine in eclipse.
Now the real question is : Eclipse uses appletviewer to run the applet project, so why in eclipse does it run fine but outside there's that exception? Thanks in advance!