473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with java.library.pa th

Hello,

I am working with JDK 1.4.2 on windows 2000.

I have a JNI dll in the folder c:\src\bin

So, I make the following call:

java -classpath MyClassPath -Djava.library.p ath=c:\src\bin MyApp.app

But, the directory is ignored. and I get an Unsatisfied link error.

If I put "c:\src\bin " in the PATH, then everything is fine.
Any ideas?

Thanks.

Aaron Boxer

Jul 17 '05 #1
1 24214
Aaron,

"Aaron Boxer" <aa***@oti-canada.com> wrote in message
news:As******** ************@ne ws20.bellglobal .com...
Hello,

I am working with JDK 1.4.2 on windows 2000.

I have a JNI dll in the folder c:\src\bin

So, I make the following call:

java -classpath MyClassPath -Djava.library.p ath=c:\src\bin
MyApp.app

But, the directory is ignored. and I get an Unsatisfied link error.

If I put "c:\src\bin " in the PATH, then everything is fine.


Under Windows-family OS '.dll' file location needs to be specified in the
PATH environment variable in ordr for the JVM to locate it [load it using
'System.loadLib rary']. I'm fairly sure this is as things should be :) !

I hope this helps.

Anthony Borla
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
10829
by: Fu Bo Xia | last post by:
the java.lang.Object.forName method takes a java class name and returns a Class object associated with that class. eg. Class myClass = Object.forName("java.lang.String"); by if i only know the absolute file name of a .class file eg. C:\myJava\myApp.java, then how do i translate this file name to a java class name the Object.forName method...
1
3006
by: ttn | last post by:
Hi, I am using a separately downloaded Eclipse 3M5 on a Debian woody (stable) system. To make Eclipse start at all I had to use the libgtk2 libraries from some backported gnome 2.2 to get a gtk version >=2.0.6 (now, its 2.2.2). Now Eclipse runs perfectly (so I have at least one swt app working) as about any Java application I wrote with...
9
1798
by: vegetax | last post by:
I was a java developer one year ago ,before i moved to python i realy liked it at the beggining, but i got very disapointed lately since my previus two python proyects where relatively big,and python didnt feel well suited for the task. The reasons are mainly due to the standard library,the language performance was aceptable, but the...
1
7642
by: Atul Agarwal | last post by:
We have the following configuration DB2 8.1 fix Pack 2 Solaris 9 Websphere Portal server 5 JDK 1.4 While installing the product we are facing a problem which seems to be related to Java connectivity with DB2 through Websphere portal. /websphere/WebSphere/AppServer/java/bin/native2ascii
4
3702
by: Christos Kalantzis | last post by:
Hello, I am trying to get JAVA UDFs working in DB2 8.2.2. I created a class, then I compiled it using with the IBM JDK included with DB2. I put the class in the sqllib folder and created a function that references the class and the function within that class. When I run it, this is the message I get.
9
10090
by: IchBin | last post by:
I am trying to get Java to work from within PHP. I have been looking at: http://us2.php.net/java The error and line of PHP code: $system = new Java('java.lang.System'); Fatal error: Class 'Java' not found in C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspaces\workspace PHP\Scrapboard\JavaExample.php on line 3
2
2818
by: ramasubramanian.rahul | last post by:
hi i am trying to call some java APIs from c . i use the standatd JNI calls to load the JVM from a c program and call all java functions by using a pointer to the jvm which was returned by the JNI call the source code is given below and also the errors .. Plz help in resolving these. This is a code being (slightly modified ) which was...
0
1068
by: subbukumararaja | last post by:
Hi guys, i am trying to integrate the PHP and Java. Actually i am trying to create the instance of a java class in php file and use it's methods. My environment is WinXP/Apache 1.3/ PHP 5/jdk 1.5 I have done the configuration changes in the php.ini file as below; extension=php_java.dll
2
3251
by: Janna | last post by:
I have the Java JVM installes on my server. I uncommented extension=php_java.dll in php.ini I uncommented and proerpyl filled out the section in php.ini: java.class.path ="C:\InstantRails\php\extensions\php_java.jar;C:\JavaSources\MyStuff" java.home = "C:\Program Files\Java\jdk1.5.0_10;C:\Program Files\Java\jre1.5.0_10\lib"
11
11987
by: BigZero | last post by:
Hello, can i call Java method.That is java code from php,here what i m looking for i have class called DB in this class all the DB related things ,like DB connection DB insert,DB read etc Methods are defined. "All i m looking for just call the DB method from PHP that Read data from DB".
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.