Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11620
| From | Novice <novice@example..com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | JNLP Problems: FileOpenService uninitialized |
| Date | 2012-01-27 19:48 +0000 |
| Organization | Your Company |
| Message-ID | <Xns9FE796A4211B6jpnasty@94.75.214.39> (permalink) |
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?
--
Novice
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
JNLP Problems: FileOpenService uninitialized Novice <novice@example..com> - 2012-01-27 19:48 +0000
Re: JNLP Problems: FileOpenService uninitialized Jeff Higgins <jeff@invalid.invalid> - 2012-01-27 16:35 -0500
Re: JNLP Problems: FileOpenService uninitialized Jeff Higgins <jeff@invalid.invalid> - 2012-01-27 17:22 -0500
Re: JNLP Problems: FileOpenService uninitialized Novice <novice@example..com> - 2012-01-28 15:03 +0000
Re: JNLP Problems: FileOpenService uninitialized Jeff Higgins <jeff@invalid.invalid> - 2012-01-28 11:56 -0500
Re: JNLP Problems: FileOpenService uninitialized Novice <novice@example..com> - 2012-02-01 18:19 +0000
Re: JNLP Problems: FileOpenService uninitialized Jeff Higgins <jeff@invalid.invalid> - 2012-02-01 17:17 -0500
Re: JNLP Problems: FileOpenService uninitialized Jeff Higgins <jeff@invalid.invalid> - 2012-02-01 20:03 -0500
Re: JNLP Problems: FileOpenService uninitialized Jeff Higgins <jeff@invalid.invalid> - 2012-02-03 15:31 -0500
csiph-web