Solved

access dll from jar

Posted on 2001-08-22
4
307 Views
Last Modified: 2008-03-03
Hi there all.
I have put all my classes in a jar file with a dll which one of my
classes call.
My problem is how do i acces this dll from within the jar file.

at the moment all i do is call
System.loadLibrary( "VartblJ.dll" );
which calls my dll..
If anybody could help,i would be very grateful...
Thanking u all in adavance
0
Comment
Question by:nadia_java
4 Comments
 
LVL 3

Expert Comment

by:exorcist
ID: 6414144
you should set the LD_LIBRARY_PATH on the diretory where your dlls are.

Is this jar used for an applet?
0
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6415827
You cannot include a dll in a jar.
Your dll can only be loaded as a seperate file.
0
 

Expert Comment

by:CleanupPing
ID: 9061811
nadia_java:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 9332921
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for objects

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Venabili
EE Cleanup Volunteer
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 49
Tomcat: Unable to run tomcat service. 2 20
String array comparison 4 34
Java Restore security prompts not working 10 13
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question