• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set java.library.path in applet

 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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

thank you in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic