Discussion:
java.lang.UnsatisfiedLinkError: no jvb in java.library.path
(too old to reply)
Scott
2004-06-13 18:28:49 UTC
Permalink
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();
}
}
}
John McGrath [TeamB]
2004-06-13 23:43:24 UTC
Permalink
Post by Scott
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
Guest
2005-02-14 16:04:47 UTC
Permalink
Post by Scott
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();
}
}
}
User submitted from AEWNET (http://www.aewnet.com/)
Lori M Olson [TeamB]
2005-02-14 17:05:34 UTC
Permalink
Post by Scott
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)
java.library.path is where java finds system-dependent things like .dll
files on Windows and .so files on *nix boxes.

Caliber seems to have a need for a file called jvb.dll on Windows.
You'll need to find it, and then set your java.library.path to point to
a directory that contains that file.

I'd be surprised if this isn't in the Caliber SDK docs...
--
Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Scott
2005-02-17 16:51:19 UTC
Permalink
This is a VERY common problem with the Caliber SDK. Probably 20% of the
posts in that forum are about this problem.

In JBuilder, go to the runtime configurations window. Choose the
configuration you will use to run your Caliber SDK app and hit Edit. In the
VM parameters text box, enter something like this:

-Djava.library.path="C:\Program Files\Borland\CaliberRM SDK 6.5\lib"

Of course, the actual path will depend on where your jvb.dll file is.

You will need to do this for every application that might use a different
runtime configuration.

BTW, I didn't know how to set this in JBuilder until Lori told me the other
day.

Lori,

Count yourself surprised: I've never spotted anything in the Caliber SDK
that mentions how to fix this error or configure JBuilder to work with
Caliber. The ST manuals are much better in this regard.

Since the .dll's go with class libraries, it would be nice of JBuilder XI
let you set these things when you configure a library, rather than with each
configuration that uses the library.

Scott
Post by Lori M Olson [TeamB]
Post by Scott
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)
java.library.path is where java finds system-dependent things like .dll
files on Windows and .so files on *nix boxes.
Caliber seems to have a need for a file called jvb.dll on Windows.
You'll need to find it, and then set your java.library.path to point to
a directory that contains that file.
I'd be surprised if this isn't in the Caliber SDK docs...
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
http://www.borland.com/newsgroups/ngsearch.html
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Lori M Olson [TeamB]
2005-02-17 17:08:24 UTC
Permalink
Post by Scott
Lori,
Count yourself surprised: I've never spotted anything in the Caliber SDK
that mentions how to fix this error or configure JBuilder to work with
Caliber. The ST manuals are much better in this regard.
Since the .dll's go with class libraries, it would be nice of JBuilder XI
let you set these things when you configure a library, rather than with each
configuration that uses the library.
Scott
You should make a RFE on Quality Central for this. It sounds useful.
There are more libraries out there than CaliberRM which have associated
DLL (or .so) components.
--
Regards,

Lori Olson [TeamB]
Guest
2005-02-24 15:52:44 UTC
Permalink
Post by Scott
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();
}
}
}
User submitted from AEWNET (http://www.aewnet.com/)
Guest
2005-04-01 12:58:20 UTC
Permalink
Post by Scott
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();
}
}
}
User submitted from AEWNET (http://www.aewnet.com/)
Guest
2005-04-01 12:59:58 UTC
Permalink
You need to add the following to your project property in the JBuilder runtime parameters:

-Djava.library.path="C:\Program Files\Borland\CaliberRM SDK 7\lib"

or wherever the jvb.dll resides on your machine.

HTH,

David

User submitted from AEWNET (http://www.aewnet.com/)

Loading...