Hi,
I’m wondering if it’s possible to load native libs in an applet? If yes how? Simply with the archive attribute?
Also, how can I set system properties in the applet html descriptor?
Thanks
Hi,
I’m wondering if it’s possible to load native libs in an applet? If yes how? Simply with the archive attribute?
Also, how can I set system properties in the applet html descriptor?
Thanks
Hi!
1.) Thats quite simple:
But i really would not do that - it limits your app to less than one platform (in case of windows even win64 is problematic), ask yourself wether you really need this or it would be just cool to have it.
2.) I don’t know any way setting system properties via the html-parameters, if you think about setting java2d related properties you can almost forget it since AWT is already initialized when the applet executes custom code - so you’ve to live with what you get.
lg Clemens
Thanks for your answer.
[quote]But i really would not do that - it limits your app to less than one platform (in case of windows even win64 is problematic)
[/quote]
It could work at least for Windows. Think about all the native libs from LWJGL, GAGE timer, … One problem is to make sure to load the correct libs according to the platform.
[quote]ask yourself wether you really need this or it would be just cool to have it.
[/quote]
The purpose is to be able to use gaming libs that use native libs for hardware acceleration or other harware related things. I though it would be obvious.
Yes for libraries like lwjgl the challange is to figure out which libraries to load, but loading the libraries itself works (surprisingly) well … I never enountered any problems.
Yes I’ve answered this question many times (at least 3-4x) and most of the time at forum.java.sun.com where people think about access to win32 and stuff like that. I simply did not think far enough
Good luck, lg Clemens