• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.Unsatisfiedlinkerror

 
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


Filename: untitled.bmp
Description: java.lang.Unsatisfiedlinkerror
File size: 998 Kbytes
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the entire exception stacktrace instead of that attached image. While posting the stacktrace, wrap it in a code block for better formatting.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Soory ... here comes the problem


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not able to rectify the error .. pasting data under my run file below. please help. Thanks

 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly where is ocijdbc10.dll located?
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



C:\oraclexe\app\oracle\product\10.2.0\server\BIN
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1283
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Peter
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic