aspose file tools*
The moose likes Java in General and the fly likes UnsatisfiedLink error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "UnsatisfiedLink error" Watch "UnsatisfiedLink error" New topic
Author

UnsatisfiedLink error

ketandba shah
Greenhorn

Joined: Feb 05, 2005
Posts: 22
i am developing web application using java.
i am using ant builder for build the java project.
i am creating .ear file through ant build.xml and deploy this .ear file on jboss application server.
for running some java program i have to use shared library...so at run time i have to pass
java.library.path = path/of/shared/lib/libdb_java-4.3.so
this libdb_java-4.3.so is shared library and it resides on linux server where jboss is installed.
After deploying .ear file on jboss server..
when end-user running this application through browser(from windows operating system), how pass the
java -Djava.library.path for getting shared library...

otherwise program terminated with
Exception in thread "main" java.lang.UnsatisfiedLinkError: no db_java-4.3 in java.library.path

while generating .ear file through ant builder..
i am just compile the classs which includes .jar file in classpath.

if i run the program on linux server by giving command
java -Djava.library.path=path/of/shared lib/libdb_java-4.3.so programName.class it works
perfectly.....
Is any setting on jboss server..or where to put shared library on jboss directory structure...
pl. guide me...
Thanks in advanced..

ketan
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

posted and discussed elsewhere
I don't think it matters that you posted this same question at Tek-Tips, however within the JavaRanch, please don't post the same question to multiple forums. Most of us here read many forums so you aren't increasing your audience, not to mention if someone spends his valuable time answering your question here then finds the question's been answered elsewhere, you've taken up time he could have spent helping others.
[ May 13, 2005: Message edited by: Joe Ess ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
ketandba shah
Greenhorn

Joined: Feb 05, 2005
Posts: 22
hi,
joe,
I am very much sorry for same question in different forum.
Actually i am struggling since last 3 days...and no specific answer

Also i don't know that many people are read the different forum...

ketan
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Don't worry about it, ketandba. I'm just trying to keep things running smoothly. It looks like you are getting some good information on the Tek-Tips forum.
So this shared library is used to access a BerkeleyDB database. Are you attempting to access the database directly from your applet? If not, you don't need the library in your applet. If you are, don't. Use the servlet to access the db for the applet, then you won't need the shared library on the client side.
Furthermore, aren't there pure-java versions of the Berkeley DB software? I'd use those before I'd go native. And isn't Berkeley DB file-based? Can you even access it remotely?
As for where to set up an environment variable in JBoss, check out the JBOSS_HOME/bin directory. The batch files to run it are there. You can put your environment variable in whatever you use to start it (run.bat, run.sh).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsatisfiedLink error