CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

FoamX and Java Issues

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 7, 2008, 04:19
Default Hi, I've installed OpenFOAM
  #1
New Member
 
OliH
Join Date: Mar 2009
Posts: 4
Rep Power: 7
olih is on a distinguished road
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
olih is offline   Reply With Quote

Old   March 7, 2008, 05:14
Default Hi Oli, The problem has been
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 644
Rep Power: 10
dmoroian is on a distinguished road
Hi Oli,
The problem has been discussed already on other threads. See this answer for instance:
xlib.lock

Dragos
dmoroian is offline   Reply With Quote

Old   March 11, 2008, 22:52
Default My FoamX don't run. The messag
  #3
New Member
 
Délio Barroso de Souza
Join Date: Mar 2009
Posts: 4
Rep Power: 7
delio141 is on a distinguished road
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
delio141 is offline   Reply With Quote

Old   March 12, 2008, 15:26
Default What does the following comman
  #4
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
What does the following command tell you:

ls -la /home/delio/OpenFOAM/linux64/
msrinath80 is offline   Reply With Quote

Old   March 30, 2008, 16:35
Default Hi all! I am new Linux+Open
  #5
New Member
 
Iori
Join Date: Mar 2009
Location: Saint Petersbourg, Russia
Posts: 1
Rep Power: 0
iatsouk is on a distinguished road
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?
iatsouk is offline   Reply With Quote

Old   March 30, 2008, 17:22
Default You look at the download page
  #6
Member
 
Graeme Cottrell
Join Date: Mar 2009
Posts: 30
Rep Power: 7
platopus is on a distinguished road
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.
platopus is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FoamX Java problem kris OpenFOAM Installation 17 February 6, 2012 17:24
Java error while starting FoamX erydj OpenFOAM Pre-Processing 2 May 4, 2007 08:53
FoamX Issues tger003 OpenFOAM Pre-Processing 0 January 18, 2007 14:50
FoamX problems with Java and Locale setting AMD64 geimerma OpenFOAM Installation 5 July 7, 2006 16:21
Java error while starting FoamX cfdengineering OpenFOAM Pre-Processing 16 June 28, 2006 20:02


All times are GMT -4. The time now is 19:32.