Java runtimes

Okey, here is the issue

I´ve downloaded version 1.4 of the IBM visualage micro edition for QNX. I
install the package in opt/vame/
I add opt/vame/ to the LD_LIBRARY_PATH and then try to

opt/vame/j9 my_java_program

but it doesn´t work. I try

opt/vame/j9 -cp /opt/vame/classes.zip my_java_program

to tell it where to find classes. Still doesn´t work. The output is “Fatal
error: Unable to find and initialize required class java/lang/Object”.
I think I need to set the JAVA_HOME environment variable but I don´t know
how to. Can someone tell me how to do it, or tell me what I´m doing wrong.

Best Regards

Hi John,

Have you looked at the j9 example scripts located in /opt/vame/ive/examples

This may give some insight…

Hope this helps
Regards
Brenda

Johan wrote:

Okey, here is the issue

I´ve downloaded version 1.4 of the IBM visualage micro edition for QNX. I
install the package in opt/vame/
I add opt/vame/ to the LD_LIBRARY_PATH and then try to

opt/vame/j9 my_java_program

but it doesn´t work. I try

opt/vame/j9 -cp /opt/vame/classes.zip my_java_program

to tell it where to find classes. Still doesn´t work. The output is “Fatal
error: Unable to find and initialize required class java/lang/Object”.
I think I need to set the JAVA_HOME environment variable but I don´t know
how to. Can someone tell me how to do it, or tell me what I´m doing wrong.

Best Regards

Did you solve this problem yet or are you still stuck?

After installing you should have a directory somewhere in the tree
that contains the j9 executable and a lot of .so files. This directory
needs to be in LD_LIBRARY_PATH. Also in this directory tree should be
a structure with “lib” that has a selection of class library
directories underneath (for example “lib/jclMax/classes.zip”).

Typically all of these files end up under some common directory such
as “ive” (eg, ive/bin, ive/lib).

If you have trouble locating the class libraries, you can force it
using the -bp option, for example

/opt/vame/bin/j9 -bp:/opt/vame/lib/jclMax/classes.zip cp:/myclasses
MyClass

(of course, check the directory tree for the actual existence of these
files first).

Note that if you just installed the j9 qnx runtime, it is possible
that only the binaries were installed, and you would have to get the
class libraries from a full VAME install.

-Andrew


On Fri, 11 Jan 2002 22:00:51 +0100, “Johan” <johpe916@student.liu.se>
wrote:

Okey, here is the issue

I´ve downloaded version 1.4 of the IBM visualage micro edition for QNX. I
install the package in opt/vame/
I add opt/vame/ to the LD_LIBRARY_PATH and then try to

opt/vame/j9 my_java_program

but it doesn´t work. I try

opt/vame/j9 -cp /opt/vame/classes.zip my_java_program

to tell it where to find classes. Still doesn´t work. The output is “Fatal
error: Unable to find and initialize required class java/lang/Object”.
I think I need to set the JAVA_HOME environment variable but I don´t know
how to. Can someone tell me how to do it, or tell me what I´m doing wrong.

Best Regards