on 05-09-2007 5:00 PM
Hi to all,
I'm trying to build a portal component using Curl library. I did in a simple java project on localhost and everything works well, but when i try to make a portal application i'm having a lot of difficulties.
I placed the *.dll in ./dist/PORTAL-INF/lib and then i changed the CurlGlue System.loadLibrary to System.load, so i can place the correct location of the dll's.
When i try to execute i get a UnsatisfiedLinkError exception saying: "Native Library C:\path\to\dll\msvcr70.dll already loaded in another classloader"
So i try to remove those lines and i get an error indicating jni_init() as the problem, on line "if ((javacurl_handle = jni_init()) == 0)" on CurlGlue.
I also noticed that the dll's cannot be deleted on the server.
Anyone had used Curl in a PAR?
Can anyone help me?
Thanks in advanced,
Luis Cruz
Found a J2SE standard way of doing what i needed, so i no longer need to use Curl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After read some more forums i notice that i can´t place the dll's on java project, so i placed them on system32.
Now i don't have any error of Native Library already loaded in another classloader, but i continue with the error UnsatisfiedLinkError: jni_init on line "if ((javacurl_handle = jni_init()) == 0)"
Does anyone can help me?
Thanks,
Luis Cruz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.