This content has been marked as final. Show 8 replies
Apologies... did not paste the error. Here it is...
DEBUG: getProvider() returning javax.mail.Provider[STORE,esmail,oracle.mail.sdk.esmail.OracleStore,oracle]
User = sit2
Address = firstname.lastname@example.org
Profile = null
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jmisc in java.library.path
Did you figure out what the problem was with the Exception in thread "main" java.lang.UnsatisfiedLinkError: no jmisc in java.library.path???
I'm having the same problem...
I see this exception in the Calendar SDK if I do not have the native libaries in the path, either add
-Djava.library.path=<path to libraries>
to your java command line, or add the native library directories to your system path.
Thanks for the quick reply. I've added the csdkjni.dll to the system32 directory. I've also checked the system PATH to insure that it contains c:\windows\system32.
Here is the output...
Exception in thread main
java.lang.UnsatisfiedLinkError: no csdkjni in java.library.path
Process exited with exit code 1.
I have never tried adding the SDK native libs to system32, although I would expect it to work. I do the following:
where C:\Apps\capi126.96.36.199\java contains csdkjni.dll
and C:\Apps\capi188.8.131.52\lib contains all the other dll's
Putting the SDK libraries in Windows\System32 is not a good idea. If you happen to upgrade your installation at some point you may not remember that some libraries are there. Also, if you happen to put some libraries there which are used by other Oracle Calendar applications (such as the Windows client, or OCFO), then those applications may find the libraries in Windows\System32 instead of the ones they were bundled with, potentially causing problems.
It's recommended instead that you add the path to your SDK library directory to your PATH environment variable. There are several libraries in the package that the csdkjni.dll library depends on, and if any of them can't be found you will still have the same error (as the JVM will be unable to load csdkjni.dll without its dependencies).
I am trying to call the CSDK from inside a servlet so that the calendar can be accesible from the internet. But while setting the session with the calendar server it gives me a unsatisfiedLink error message;
I have the path variable set to the correct path and also have set the java.library.path pointing to the correct directories with the dll and the csdk.jar and csdkjni.dll
Do i have to set some other variable also in case of servlets!!!!
Hope you got resolution to this...
If not, I am able to resolve this when I used the below option while running the class file :