Problem solve Get help with specific problems with your technologies, process and projects.


I can run the console examples shipped with JCO with no problem; however, I need a GUI. I have Java 2 1.3.1 installed...

and I am using Sun's Forte for Java to develop the GUI. I can compile and run the AWT application I have created; however, I get the following error when attempting to connect as in Example1.java that shipped with JCO. JCO.nativeInit(): Could not initialize dynamic link jRFC: message: access denied (java.util.PropertyPermission java.class.path read) Exception occurred during event dispatching: java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkExit(SecurityManager.java:765) at java.lang.Runtime.exit(Runtime.java:91) at java.lang.System.exit(System.java:701) at com.sap.mw.jco.rfc.MiddlewareRFC.(MiddlewareRFC.java:85) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at com.sap.mw.jco.JCO.(JCO.java:291) at JCOTEST.clicked(JCOTEST.java:94) at JCOTEST.access$000(JCOTEST.java:11) at JCOTEST$1.actionPerformed(JCOTEST.java:74) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto n.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3 78) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener .java:216) at java.awt.Component.processMouseEvent(Component.java:3715) at java.awt.Component.processEvent(Component.java:3544) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2593) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:131) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :98) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) Again, the console version of Example1 that shipped with JCO works however, when I wrap it in a GUI it will not connect. Any hints, tips, tricks, or suggestions?

I have never had any problems using GUIs with JCo. Most of our examples in CA926 have GUIs, and I have used Forte Community Edition a lot. Do you use any special security settings? As you can see in the error message, some authorization seems to be missing.

This was last published in October 2001

Dig Deeper on SAP ABAP



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.