CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   FoamX and Java Issues (http://www.cfd-online.com/Forums/openfoam-installation/57416-foamx-java-issues.html)

olih March 7, 2008 04:19

Hi, I've installed OpenFOAM
 
Hi,

I've installed OpenFOAM 1.4.1 on Ubuntu 8.04. Tutorials work OK but I have troubles when trying to open FoamX. When I type "FoamX" at the terminal, I get the following message (headers removed):

HostBrowser running.....
Setting LANG to en_EN
Using jar /home/oheynes/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/FoamX /lib/FoamX.jar
Using jar /home/oheynes/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/FoamX /lib/jlfgr-1_0.jar
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb37e0767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb37e08b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xaa74129d]
#3 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so(XineramaQueryS creens+0xd0) [0xaa9d47b8]
#4 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so(xineramaInit+0 x6f) [0xaa98df4b]
#5 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so(awt_init_Displ ay+0x1af) [0xaa98e21b]
#6 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so(Java_sun_awt_X 11GraphicsEnvironment_initDisplay+0x1d) [0xaa98e445]
#7 [0xb389b401]
#8 [0xb3894e9b]
#9 [0xb38921c4]
#10 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b35454]
#11 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7be93ad]
#12 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b356a6]
#13 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b1a74f]
#14 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b1ee7c]
#15 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b199ab]
#16 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b1f18f]
#17 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so [0xb7b95e78]
#18 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so(JVM_Fin dClassFromClassLoader+0x208) [0xb7b85140]
#19 /home/oheynes/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libjava.so(Java_java_lan g_Class_forName0+0x182) [0xb78fc97e]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted (core dumped)
Killed
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 6273).
kill: 133: No such process

I've checked and the files it is looking for are correct and in the correct directories (no case sensitivity issues).

Can anyone help me? I'm a newbie when it comes to Linux I'm afraid - just starting out.

Oli

dmoroian March 7, 2008 05:14

Hi Oli, The problem has been
 
Hi Oli,
The problem has been discussed already on other threads. See this answer for instance:
xlib.lock

Dragos

delio141 March 11, 2008 22:52

My FoamX don't run. The messag
 
My FoamX don't run. The message appear to me:
Cannot find JDK at /home/delio/OpenFOAM/linux64/j2sdk1.4.2_05. Please set JAVA_PATH to the
JDK installation directory.

I don't know where is it, and I don' know how to configurate it.
I need a help about this
Tanks

msrinath80 March 12, 2008 15:26

What does the following comman
 
What does the following command tell you:

ls -la /home/delio/OpenFOAM/linux64/

iatsouk March 30, 2008 16:35

Hi all! I am new Linux+Open
 
Hi all!

I am new Linux+OpenFoam user.

I have met the same problem:

~/OpenFOAM/OpenFOAM-1.4.1/bin> FoamX
Cannot find JDK at /usr/java/jdk1.4. Please set JAVA_PATH to the
JDK installation directory.


Iori@linux:/usr/java> ls -la
total 12
drwxr-xr-x 3 root root 4096 Mar 30 23:47 .
drwxr-xr-x 13 root root 4096 Mar 30 21:37 ..
drwxrwxr-x 9 root root 4096 Mar 30 23:47 j2sdk1.4.2_17


How I can set this JAVA_PATH?

platopus March 30, 2008 17:22

You look at the download page
 
You look at the download page

http://www.opencfd.co.uk/openfoam/linux.html#linux

and right down the bottom it tells you which file you have to modify.

Regards.


All times are GMT -4. The time now is 07:01.