java: UnavailableServiceException [message #656583] |
Sun, 27 February 2011 01:07 |
No real name Messages: 1 Registered: April 2010 |
Junior Member |
|
|
I'm running Eclipse Helios with JDK1.6.0_21 with Windows Ultimate and am trying to test an applet example coded in Dietel's "Java: How to Program" textbook. When I try to access javax.jnlp.FileOpenService I get the following error:
-------------------------------
javax.jnlp.UnavailableServiceException: uninitialized
at javax.jnlp.ServiceManager.lookup(ServiceManager.java:44)
at applets.LoadImageAndScale.init(LoadImageAndScale.java:63)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
The pertinent lines of code are:
-----------------------------------------
61 // get a reference to the FileOpenService
62 FileOpenService fileOpenService =
63 (FileOpenService) ServiceManager.lookup(
64 "javax.jnlp.FileOpenService" );
I've searched the jnlp documentation and the web but have had no luck in finding a solution. It appears that either the ServiceManager or FileOpenService has not been initialized.
jnlp.jar and jawas.jar are in the build configuration-- the former in the Referenced Libraries and the latter in the jre System Library (Java SE 1.6)
Any help will be greatly appreciated.
/rotte001
|
|
|
Powered by
FUDForum. Page generated in 0.08119 seconds