[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/28/2007 at 01:11PM PDT, ID: 22860456
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

DLL can't find dependent libraries

Asked by alskdj80 in Java Programming Language, Java Native Interface (JNI)

Tags: dependent, find, libraries

I'm writing an application that uses native code (which I didn't write) which is bundled in several DLLs.  I put them into a folder \lib.

At first when I ran the app, it complained that it could not find main.dll (which is the DLL that depends on all others).  So then, I tried setting -Djava.library.path and it found main.dll, but still gave me an error "can't find dependent libraries".

I read from http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg01581.html that this is caused because Windows looks in PATH for the DLLs the second time around.  So I put the \lib folder into PATH environment variable, which made it work.

However, I would prefer not having to set environment variables.

Some more background info... I was actually able to use the same native code DLLs in a simpler project that just had all the source code and classes in the project root directory, which had all the DLLs too.  I could do this without setting java.library.path or PATH.  So I feel that it should be possible to do the same for the more complex project too.

One thing that puzzles me is why for the simple project, I didn't have to do anything (beside setting the classpath) and Windows was able to find the other DLLs that main.dll depends on but in the more complex project, Windows couldn't find them.

Any direction or hints would be greatly appreciated. Thanks!
[+][-]09/29/07 12:02 PM, ID: 19984970

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, Java Native Interface (JNI)
Tags: dependent, find, libraries
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09/29/07 01:14 PM, ID: 19985177

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 11:36 PM, ID: 19986385

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/30/07 02:54 AM, ID: 19986695

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/30/07 03:01 PM, ID: 19988151

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/01/07 12:10 AM, ID: 19989157

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/01/07 07:02 AM, ID: 19990834

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/01/07 07:08 AM, ID: 19990869

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/01/07 10:10 AM, ID: 19992167

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/07 11:30 AM, ID: 20000888

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/02/07 11:34 AM, ID: 20000938

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/07 07:10 PM, ID: 20003608

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/02/07 11:28 PM, ID: 20004339

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091028-EE-VQP-88 / EE_QW_2_20070628