File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes java.lang.Unsatisfiedlinkerror Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.Unsatisfiedlinkerror" Watch "java.lang.Unsatisfiedlinkerror" New topic
Author

java.lang.Unsatisfiedlinkerror

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

i am using jboss 3.2.7 and while running it getting below problem. I copied required jars and dlls (ojdbc14,ocijdbc10.dll) to that java places. Please help me out




[Download untitled.bmp] Download


No Kaustubh No Fun, Know Kaustubh Know Fun..
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

Please post the entire exception stacktrace instead of that attached image. While posting the stacktrace, wrap it in a code block for better formatting.

[My Blog] [JavaRanch Journal]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

I don't see any problem in the logs you posted. What exactly are you running into? You'll have to explain more about what you are trying to do and what the problem is, if you need someone to help you.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Soory ... here comes the problem


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Looking at line 9, this is your library path:

-Djava.library.path=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v

Does the file C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v\ocijdbc10.dll exist?

Have you tried setting the library path to:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v

Sometimes back slashes are treated as escape characters, so using forward slashes is often preferred.

Final thought. Most DLLs use various Windows DLLs located in c:\windows and c:\windows\system32. You should ensure that those directories are also in the library path:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v;c:/windows;c:/windows/system32

JBoss In Action
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Not able to rectify the error .. pasting data under my run file below. please help. Thanks

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

You did not answer any of the questions which Peter asked and the configuration you posted conflicts some of the values that you posted earlier for java.library.path.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Peter Johnson wrote:Looking at line 9, this is your library path:

-Djava.library.path=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v

Does the file C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v\ocijdbc10.dll exist?

Have you tried setting the library path to:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v

Sometimes back slashes are treated as escape characters, so using forward slashes is often preferred.

Final thought. Most DLLs use various Windows DLLs located in c:\windows and c:\windows\system32. You should ensure that those directories are also in the library path:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v;c:/windows;c:/windows/system32


Soory Peter, Well I check the metioned path but not able to find C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v it is only upto BIN folder v is not exsits. also tried to remove BIN\ to BIN but it is also not working. I'd put contect of my run.exe file. Where I am not able to find any problem. Where else we mentioned these path?? or if you can see any problem in the run.exe contenet. please let me know.

kind Regards,
KS
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Exactly where is ocijdbc10.dll located?
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Peter Johnson wrote:Exactly where is ocijdbc10.dll located?


C:\oraclexe\app\oracle\product\10.2.0\server\BIN
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

The set the library path like this:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN;c:/windows;c:/windows/system32
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Hello Peter,

Hope you're doing well. I saw your response and implement a soulution regarding that- pastes all required jars into a folder 'v'. Guess what -----It's working now I don't know it's right way to solve it or not... But it is working for now. Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

The "right" way is to correctly set the ld.library.path to match where your files are located. But I guess that moving all required files to the directory that ld.library.path is referencing is an acceptable solution.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Thanks Peter
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.Unsatisfiedlinkerror