Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java: UnavailableServiceException (java applet ServiceManager uninitialized)
java: UnavailableServiceException [message #656583] Sun, 27 February 2011 01:07
No real name is currently offline No real nameFriend
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
Previous Topic:So many Eclipse types/versions - which one to use ?
Next Topic:Variables debug view extension
Goto Forum:
  


Current Time: Fri Apr 26 03:25:12 GMT 2024

Powered by FUDForum. Page generated in 0.08119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top