🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #257

Re: JNI newbie, problem with java.lang.UnsatisfiedLinkError: WindowAlwaysOnTop

#257
From: Kevin Dean
Date: Thu, 18 Mar 2004 13:18
53 lines
3100 bytes
It sounds like the DLL is not in the path.  You can set the path in one of
two ways (this is from the Sun Java site at
http://java.sun.com/docs/books/jni/html/start.html):

If you are running on a Windows 95 or Windows NT machine, make sure that
HelloWorld.dll is in the current directory, or in a directory that is listed
in the PATH environment variable.

In Java 2 SDK 1.2 release (or greater), you can also specify the native
library path on the java command line as a system property as follows:

java -Djava.library.path=. HelloWorld

The "-D" command-line option sets a Java platform system property. Setting
the java.library.path property to "." instructs the Java virtual machine to
search for native libraries in the current directory.

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Boguslaw Fries" <bfries1955@msn.com> wrote in message
news:4059927a$1@newsgroups.borland.com...
> Hello,
> I m newbie in JNI.
> I have Borland Builder 6.0 C++ and JBuilder X personal.
> I have Microsoft Windows XP Home edition
> I wrote my firsty application using the technical advice from the artikel
> http://community.borland.com/article/0,1410,20679,00.html
>
> After many probing , obtain I always JBuilder runtime error:
> java.lang.UnsatisfiedLinkError: WindowAlwaysOnTop
>
> I checked:
> -DLL is in the proper directory,
> -JDK is version 1.4
> - DLL I made using standard method Borland Builder C++
> - javah was properly used and in the impelentation file is the correct
> function signature
>
> Is anybody experienced with? What could I extra do?
>
> Best regards
>
> Boguslaw Fries
>
>
Technical Details
Message-ID: <4059a1ef$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!priapus.visi.com!orange.octanews.net!news-out.visi.com!hermes.visi.com!news.octanews.net!feed2.news.rcn.net!feed1.news.rcn.net!rcn!newsfeed.gamma.ru!Gamma.RU!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4059927a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,52ef07ecaa92412e
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2004-03-18 05:39:59 PST
From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.java.api
References: <4059927a$1@newsgroups.borland.com>
Subject: Re: JNI newbie, problem with java.lang.UnsatisfiedLinkError: WindowAlwaysOnTop
Date: Thu, 18 Mar 2004 08:18:53 -0500
Lines: 55
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.57.150.243
Message-ID: <4059a1ef$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079615983 24.57.150.243 (18 Mar 2004 05:19:43 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!priapus.visi.com!orange.octanews.net!news-out.visi.com!hermes.visi.com!news.octanews.net!feed2.news.rcn.net!feed1.news.rcn.net!rcn!newsfeed.gamma.ru!Gamma.RU!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail