File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes my applet not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "my applet not working" Watch "my applet not working" New topic
Author

my applet not working

Tarik Tufan
Greenhorn

Joined: Apr 14, 2011
Posts: 3

when i start my applet without web start enabled. i got this error:

FileOpenService fos = null;
FileContents fc = null;
fos = (FileOpenService) ServiceManager.lookup("javax.jnlp.FileOpenService");
fc = fos.openFileDialog(null, null); <-- Error 1--> javax.jnlp.UnavailableServiceException: uninitialized

when i start it with web start enabled. error comes immediately:

Updating property file: C:\Program Files\Java\gLib\applet_JNLP_API\build\built-jar.properties
C:\Program Files\Java\gLib\applet_JNLP_API\nbproject\build-impl.xml:555: Unknown attribute [gensrcdir]
BUILD FAILED (total time: 0 seconds)

what is wrong?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

"BUILD FAILED" isn't a message I would expect from trying to download an applet into a browser. Neither would I expect any of those messages, especially the ones mentioning paths on the local machine. So it appears what you were doing there was something in your IDE, and you have a problem with that instead.
Tarik Tufan
Greenhorn

Joined: Apr 14, 2011
Posts: 3

OK what about first part of my question ?
FileOpenService fos = null;
FileContents fc = null;
fos = (FileOpenService) ServiceManager.lookup("javax.jnlp.FileOpenService");
fc = fos.openFileDialog(null, null); <-- Error 1--> javax.jnlp.UnavailableServiceException: uninitialized
why do i get such error? again problem with IDE?
P.s. : i added javaws.jar, jnlp.jar(with and without 2 other libs in same dir) one by one and together and tried...
All ended up with such error...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42272
    
  64
If you don't have WebStart enabled, then it's not surprising that JNLP services are not available, yes?


Ping & DNS - my free Android networking tools app
Tarik Tufan
Greenhorn

Joined: Apr 14, 2011
Posts: 3

ok i understand. Thanks for your replies. (Paul Clapham and Ulf Dittmer)
For the second part, i send it to the ide forum when i got the answer, i will post it here..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: my applet not working