• 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

Java Applet

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a java applet which needs a dll to perform some task. This program loads dll and works fine. But when I run this program on client machine while accessing from server it don't load dll. It tries to find dll in client machine. While dll is located in server. So there can be following solutions

1. embedd dll into jar and load it from jar file

how I can achieve this?

my current program is here



Your help is appreciated.

Thanks
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not think that is feasible; you cannot expect a dll to be available on the client's machine, and that means you have a platform‑dependent app which only works on Windows® machines.

Also, why are you using an applet? Applets are obsolete and most browsers can no longer execute them.
 
mandahr James
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what should I do then? how I can read digital tokens on web ?
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is indeed possible to ship native libraries with applets. You can even ship several versions for different operating systems or processor architectures, so that the applet remains platform-independent. The mechanics are tricky, so you should resort to a ready-made solution: http://jogamp.org/applet-launcher/www/

It's correct that you should no longer use applets, though.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic