• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Applet  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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: 56608
172
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
what should I do then? how I can read digital tokens on web ?
 
Saloon Keeper
Posts: 4038
94
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!