Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: JNLP Problems: FileOpenService uninitialized Date: Fri, 27 Jan 2012 16:35:44 -0500 Organization: A noiseless patient Spider Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 27 Jan 2012 21:26:05 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="BSKXKq4dV+7jFlM4JDctyw"; logging-data="27531"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lPC06D5kwsi+/W0oCsnrrsFkxkN1cLt4=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 In-Reply-To: Cancel-Lock: sha1:QW8Vnu2qLU2inES9BSAVdCZyUF4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11621 On 01/27/2012 02:48 PM, Novice wrote: > I'm getting an UnavailableServiceException with the message"uninitialized" > when I try to invoke the JNLP FileOpenService. > > At the suggestion of the Java Tutorial section on File Choosers, I'm trying > to play with the JNLP file choosers for an application that will run in > Java Web Start. I'm using Eclipse 3.7 and have the jnlp.jar as an external > jar accessible to the project. The code compiles fine but the exception > occurs when I execute this code: > > try { > fos = (FileOpenService)ServiceManager.lookup > ("javax.jnlp.FileOpenService"); > } catch (UnavailableServiceException exc) { > System.err.println("FileOpenService failed. Message: " + > exc.getMessage()); > exc.printStackTrace(); > } > > As far as I can tell from the JNLP guides I've found, there's nothing wrong > with the code itself. I've googled and found other people who have asked > about the same problem but there are no solutions posted for any of them. > > I've never worked with JNLP so I'm guessing that I haven't got something > set up correctly but I'm darned if I can figure out what I've done wrong. > > Does anyone with JNLP/JWS experience have any suggestions on what I can do > to resolve this problem? > >