This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes set java.library.path in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "set java.library.path in applet" Watch "set java.library.path in applet" New topic
Author

set java.library.path in applet

bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi,

i have an applet code which uses dll file.
when i run the applet in the client, it should download a file from the server and store in a dir called sip in the c:\
( if the dir is not present, it should create a dir named sip ----- so it will have c:\sip )

all the above said is working fine.
now i have to set c:\sip as the java. library.path for the client machine.

so i used the following lines in my code



but it did not work,
it is showing the following error message




what should i do..

any suggestions please..

thanks in advance
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi all,

i found the solution

i removed
completely

as the error shows line 67 in testapp.java, ( it was where i call another class which has the name of the actual dll).
was in line 225, instead of this i replaced it with the line 67( i cut and paste here in line 225)

it solved the problem.


thank you
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi,

actually it did not work..( it worked for only one time )
now the same problem arises...

thank you in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41087
    
  43
Applets can't change client-side JVM settings; those are established once when the browser JVM starts, but can't be changed after the fact. My advice to you remains this one. I suspect you'd be done with the problem by now if you had implemented that.


Ping & DNS - my free Android networking tools app
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi ulf,

this is the last day with this product.. anyways will use jnlp in near future when in production of this product..

thank you very much
 
Consider Paul's rocket mass heater.
 
subject: set java.library.path in applet
 
Similar Threads
file reading in applet
jni.h
java plugin properties
UnsatisfiedLinkError in my first JNI program
copy file from init()