N
Novice
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?
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?