• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

my applet not working

 
Greenhorn
Posts: 3
Google Web Toolkit Netbeans IDE Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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
Posts: 3
Google Web Toolkit Netbeans IDE Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't have WebStart enabled, then it's not surprising that JNLP services are not available, yes?
 
Tarik Tufan
Greenhorn
Posts: 3
Google Web Toolkit Netbeans IDE Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
reply
    Bookmark Topic Watch Topic
  • New Topic