Hi:
I have a problem when I run a graphical application in QNX. My application runs with java virtual machine j9 and uses SWT. I can launch the program in a Photon console and the application works fine.
I uses the commands:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/qde/eclipse/plugins/org.eclipse.swt.photon_2.0.2/os/qnx/x86
export CLASSPATH=$CLASSPATH:/usr/qde/eclipse/plugins/org.eclipse.swt.photon_2.0.2/ws/photon/swt.jar:./
export PATH=$PATH:/usr/qde/eclipse/jre/bin/j9
export CLASSPATH=$CLASSPATH:/myProgram/bin/vt.jar:/myProgram/bin/swt.jar
j9 -Djava.library.path=/myProgram/lib MyProgram
But when I want to run it without Photon (in text mode) the program crashes. Java virtual machine shows this trace.
Thread main (priority 5) (LOCATION OF ERROR)
0000 org/eclipse/swt/internal/photon/os.PgSetDrawBufferSize(I)I
0008 org/eclipse/swt/widgets/Display.createDisplay(Lorg/eclipse/swt/graphics/DeviceData;)V
0011 org/eclipse/swt/widgets/Display.create(Lorg/eclipse/swt/graphics/DeviceData;)V
0028 org/eclipse/swt/widgets/Device.(Lorg/eclipse/swt/graphics/DeviceData;)V
0002 org/eclipse/swt/widgets/Display.(Lorg/eclipse/swt/graphics/DeviceData;)V
How can I run a graphical application whithout photon?
Thanks