Thread View: borland.public.jbuilder.java.api
2 messages
2 total messages
Started by Scott
Sun, 13 Jun 2004 18:28
java.lang.UnsatisfiedLinkError: no jvb in java.library.path
Author: Scott
Date: Sun, 13 Jun 2004 18:28
Date: Sun, 13 Jun 2004 18:28
80 lines
3640 bytes
3640 bytes
I am trying to write a program that access Borland's Caliber RM using the
product's Java API.
I imported the relevant class libraries in JBuilder through the Project
Properties.Paths.Required
Libraries tab.
All meaningful code in the app is copied from the documentation distributed
with the Caliber RM.
I'm getting the error message java.lang.UnsatisfiedLinkError: no jvb in
java.library.path when the program gets to listProjects.
But have no idea what this error means. The complete code and full error
message trace are below.
Thanks
******************************************
Error
******************************************
java.lang.UnsatisfiedLinkError: no jvb in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.starbase.caliber.external.Integration.<clinit>(Integration.java:32)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
com.starbase.caliber.external.IntegrationID.class$(IntegrationID.java:18)
at
com.starbase.caliber.external.IntegrationID.<init>(IntegrationID.java:16)
at com.starbase.caliber.Project.<init>(Project.java:93)
at
com.starbase.caliber.ProjectManager.getFromServer(ProjectManager.java:279)
at
com.starbase.caliber.ProjectManager.getAllProjects(ProjectManager.java:151)
at com.starbase.caliber.Session.getProjects(Session.java:715)
at TestCaliber.listProjects(TestCaliber.java:29)
at TestCaliber.main(TestCaliber.java:24)
Exception in thread "main"
**************************************
Program
**************************************
import com.starbase.caliber.*;
import com.starbase.caliber.server.*;
public class TestCaliber {
static CaliberServer server;
static Session session;
/**
*
*/
public static void main(String[] args) {
connect();
listProjects();
}
public static void listProjects(){
try{
Project[] arrayOfProjects = session.getProjects();
for(int i = 0; i < arrayOfProjects.length; i++) {
System.out.println(arrayOfProjects[i].getName());
}
}
catch(RemoteServerException rse) {
rse.printStackTrace();
}
}
public static void connect(){
server = new CaliberServer("foo");
try {
session = server.login("admin", "admin");
} catch(RemoteServerException rse) {
rse.printStackTrace();
}
}
}
Re: java.lang.UnsatisfiedLinkError: no jvb in java.library.path
Author: John McGrath [TeamB]
Date: Sun, 13 Jun 2004 23:43
Date: Sun, 13 Jun 2004 23:43
26 lines
1962 bytes
1962 bytes
On 6/13/2004 at 2:28:49 PM, Scott wrote:
> I'm getting the error message java.lang.UnsatisfiedLinkError: no jvb
> in java.library.path when the program gets to listProjects.
> java.lang.UnsatisfiedLinkError: no jvb in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
The problem is that the ClassLoader cannot find the native library named
"jvb". Where it looks depends on the host operating system. For Windows,
it should be in the file "jvb.dll" and for Linux/Unix it should be in the
file "libjvb.so". The directories searched are the usual ones for the
host operating system. However, note that the "directory that contains
the program file" is the one that contains the launcher executable, not
the class file.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads