QNX6.2: xlib, jvm, man?

I have just intalled QNX6.2 NC and i have a few
questions:

  1. How do i compile Xlib applications? I’ve tried to
    compile my QNX6.0 program but it couldn’t find
    any X includes. Can i install X support from
    QNX6.0 CD?

  2. How do i run java vm? I’ve tried something like
    #j9 HelloWorld, but it failed to find libj9vm15.so
    (which lies in the same directory). There is no
    usage, no man page, no help article on j9 syntax.

  3. Oh, by the way, where’s man utility? I have man
    pages, but nothing to read them.

  4. Apart from Momentics IDE do you think QNX6.2
    is superior over QNX6.0? Why?

Thanks in advance
Dmitri

  1. How do i compile Xlib applications? I’ve tried to
    compile my QNX6.0 program but it couldn’t find
    any X includes. Can i install X support from
    QNX6.0 CD?

You want to get the “3rd Party CDROM” from qdn.qnx.com. It contains
packages for XFree86 which will give you the headers and libs. It
also has the far superior XPhoton (vs Xphoton). I have a modified
ph script that will start the new XPhoton for you when photon starts.
It can be found here: http://qnx.wox.org/qnx/ph - just copy it to
/usr/bin.

  1. How do i run java vm? I’ve tried something like
    #j9 HelloWorld, but it failed to find libj9vm15.so
    (which lies in the same directory). There is no
    usage, no man page, no help article on j9 syntax.

You need to add j9’s bin directory to your LD_LIBRARY_PATH. Then
you can run j9 with no arguments to get list of options.

  1. Oh, by the way, where’s man utility? I have man
    pages, but nothing to read them.

Again, GNU man is on the the 3rd Party disc.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

You need to add j9’s bin directory to your LD_LIBRARY_PATH. Then
you can run j9 with no arguments to get list of options.

Thanks! I got my HelloWorld.class compiling and running. But when I try
to compile something that use awt I get an error - it can’t import awt
package. Is awt/swing supported?

Dmitri Ivanov <ivdal@yahoo.com> wrote:

You need to add j9’s bin directory to your LD_LIBRARY_PATH. Then
you can run j9 with no arguments to get list of options.


Thanks! I got my HelloWorld.class compiling and running. But when I try
to compile something that use awt I get an error - it can’t import awt
package. Is awt/swing supported?

AWT is, but not swing. However, to get AWT to work you need to get another
package from OTI and get prsnlqnx.jar for QNX on x86. This includes the
AWT code for QNX. Drop me an email if you get stuck.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/