• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

set java.library.path in applet

 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic