|
[Sponsors] |
March 31, 2005, 16:57 |
Hi all,
First of all thanks
|
#1 |
New Member
Kristoffer Grande
Join Date: Mar 2009
Posts: 1
Rep Power: 0 |
Hi all,
First of all thanks for a lot of useful messages here, they helped me through the installation. Now, My installation is working, except I cannot run FoamX. I get the following message: -------------------------------------- Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/kgrande/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1586) at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1503) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoa der.java:38) at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29) at java.awt.Component.<clinit>(Component.java:506) /home/kgrande/OpenFOAM/OpenFOAM-1.1/bin/runFoamXHB: line 131: 7295 Killed FoamXHostBrowser -ORBNamingAddr $myIOP runFoamXHB : cleanup runFoamXHB: Killing name server nsd(pid 7291 ----------------------------------------------- libawt.so is where it should be, but I can't find libXp.so.6 . Is that supposed to be inside libawt.so, or somewhere else? I have tried to install Java again, even a newer version from the java website. But I still get the same problem. does anyone have any hints on what to do next? I am running Fedora 3. Sorry to say I am not a linux expert... Thanks, Kris |
|
April 1, 2005, 05:23 |
Try installing libXp.so.6.
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Try installing libXp.so.6.
This is a system library (my man page says: libXp - X Print Client Library). Java seems to require this library. |
|
April 15, 2005, 07:15 |
Hi,
I have a similiar probl
|
#3 |
Senior Member
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17 |
Hi,
I have a similiar problem running FoamX. When I run it, an error occurs also at line 131 like yours. See "Segmentation fault" topic. What system are you using. I had this problem on a laptop. |
|
November 1, 2005, 17:14 |
Possibly somewhat belated, but
|
#4 |
Guest
Posts: n/a
|
Possibly somewhat belated, but in case anyone else is running into this:
For current Debian systems this lives in the libxp6 package (and should be installed automatically if you use the existing tools to generate a Debian package based on the Sun J2SDK 1.4.2_05, and install that via the packaging system). It appears to come from the standard X builds, so I suspect that using the auto-searching RPM tools (up2date? I haven't used RH much recently) to look for one providing the file /usr/lib/libXp.so.6, or for the X Windows / xprint packages, should produce something useful. |
|
February 26, 2006, 19:48 |
Hi, I am also not a linux expe
|
#5 |
Guest
Posts: n/a
|
Hi, I am also not a linux expert and all the help given is far too technical for me to understand. When I search online for the packages suggested, I am left even more baffled. I am having the exact same problem as the very 1st message in this thread. I would really appreciate it if someone could explain in really plain English what I should do, how I should do this and where I can go for whatever they suggest! Many Thanks.
|
|
October 31, 2006, 10:50 |
Hej,
I have problem with libX
|
#6 |
Guest
Posts: n/a
|
Hej,
I have problem with libXp.so.6 It is located /usr/X11R6/lib/libXp.so.6 When i type FoamX, it gives an error ... libXp.so.6: cannot open shared object file: No such file or directory What I should do? thank u, Rita |
|
October 31, 2006, 13:18 |
Hello,
I could probably hel
|
#7 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello,
I could probably help you if I knew what distribution of Linux you are using... For example, if you are using the Fedora Core, there are two RPMs you need to install: libXp libXp-devel And Rita, It looks like the location of your libXp.so.6 is not right... usually this file is found in /usr/lib/ As long as it is in one of the locations which are looked into when a program tries to load libraries at run time, its ok... but from the error message, I dont think /usr/X11R6/lib/ is one of those locations in the path. It should work if you either copy that file to /usr/lib, or make a symbolic link: ln -s /usr/X11R6/lib/libXp.so.6 /usr/lib/libXp.so.6 Try that out. Usually the libXp installation package should be present in your Linux install CDs... it may not be installed by default. Have a nice day! Philippose |
|
October 31, 2006, 14:09 |
Thank you very much Philippose
|
#8 |
Guest
Posts: n/a
|
Thank you very much Philippose.
I made a link, as u said and now it is working. THANK YOU!!!! Rita |
|
October 31, 2006, 15:34 |
Hej,
Now I faced with anothe
|
#9 |
Guest
Posts: n/a
|
Hej,
Now I faced with another problem: HostBrowser running..... Using jar /home/Administrator/OpenFOAM/OpenFOAM-1.3/applications/utilities/preProcessing/F oamX/lib/FoamX.jar Using jar /home/Administrator/OpenFOAM/OpenFOAM-1.3/applications/utilities/preProcessing/F oamX/lib/jlfgr-1_0.jar FoamX.Exceptions.FoamXException: Default name service could not be contacted. at FoamX.App.initialiseHostBrowser(App.java:512) at FoamX.App.initialise(App.java:343) at FoamX.App.main(App.java:186) Do you know how to fix it? thanks again for your kind help! Rita |
|
October 31, 2006, 17:01 |
Hi again,
Ok... this is an
|
#10 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hi again,
Ok... this is an error I had a few days ago, and I hope I can generalise the reason to your case too :-)! The FoamX and runFoamXHB scripts wont work if the hostname of your linux installation is "localhost" or "localhost.localdomain" So basically, to get past this error, you need to give your machine a name other than the default "localhost" that Linux puts in. One way to change the hostname is to use the command at the command-line: hostname the_new_hostname In my case, this did not work after a reboot, and to make it a permanent change, I had to change the network settings through the "KDE->Administration->Network" interface (I use KDE). If you are also using KDE... you need to enter a host name in the "DNS" tab of the network settings, and in the "Hosts" tab you need to add a new line with: 127.0.0.1 the_new_hostname localhost for the "IP", the "Name" and "Aliases" respectively. And...dont forget to save at the end, and either restart your network layer with: /sbin/service network restart at the command line, or restart the computer. If you are using Gnome, I am sure there is an equivalent method of varying the network settings. Once you are done with the restart...try: ping the_new_hostname and ping localhost and ping 127.0.0.1 If all those three work...then I am fairly sure FoamX will work. Philippose |
|
November 6, 2006, 08:59 |
Hej Philippose,
I did what yo
|
#11 |
Guest
Posts: n/a
|
Hej Philippose,
I did what you said and I did some changes. I have add the IP address in two files: /etc/hosts and in /etc/resolve.conf and made the link: ln -s hosts /etc/sysconfig/networking/profile/default/hosts but I still recive the same error message. Do you have any idea what I am doing wrong? Thank you for help, Rita |
|
November 6, 2006, 09:56 |
I am new openfoam-user. I have
|
#12 |
New Member
Faroque Hossain
Join Date: Mar 2009
Posts: 5
Rep Power: 17 |
I am new openfoam-user. I have just installed Openfoam in my system. While I type FoamX in the console I am getting following message--
Cannot find JDK at /usr/java/jdk1.4. Please set JAVA_PATH to the JDK installation directory. I don't have any idea how to set the JAVA_PATH to the JDK installation directory. It would be great if I get suggestions from you. Thanks in Advance. -- Faroque |
|
November 6, 2006, 10:11 |
Hej Philippose,
I did what yo
|
#13 |
Guest
Posts: n/a
|
Hej Philippose,
I did what you said and I did some changes. I have add the IP address in two files: /etc/hosts and in /etc/resolve.conf and made the link: ln -s hosts /etc/sysconfig/networking/profile/default/hosts but I still recive the same error message. Do you have any idea what I am doing wrong? Thank you for help, Rita |
|
November 13, 2006, 09:15 |
sous bash (+linux)
export J
|
#14 |
Guest
Posts: n/a
|
sous bash (+linux)
export JAVA_PATH=/usr/local/... en fait l'endroit ou tu as detarre le java disponible sur le site d'openfoam... Sinon consulte un ingenieur systeme... bonne chance... |
|
November 13, 2006, 09:46 |
excuse for the french... I am
|
#15 |
Guest
Posts: n/a
|
excuse for the french... I am a little tired I think...
export JAVA_PATH=/usr/local/... more exactly where you have unpacked j2sdk1.4.2_05.linux.tgz you also seem to be a new linux user... (try to find a introduction to linux somewhere to learn what environnement variable are...etc...) Sincerely... |
|
February 5, 2012, 15:04 |
Erroe in JAVA_PATH to the JDK installation directory
|
#16 |
Senior Member
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 15 |
Dear foamers,
i try to run Foamx but its shows error like Please set JAVA_PATH to the JDK installation directory, i download and extract this j2sdk1.4.2_05.linux.tgz, please give me idea about this problem. Warm Regards, hhh |
|
February 5, 2012, 15:08 |
Erroe in JAVA_PATH to the JDK installation directory
|
#17 |
Senior Member
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 15 |
Dear foamers,
i try to run Foamx but its shows error like Cannot find JDK at /home/toshiba/OpenFOAM/linux/j2sdk1.4.2_05. Please set JAVA_PATH to the JDK installation directory, i already download and extract this j2sdk1.4.2_05.linux.tgz, please give me idea about this problem. Warm Regards, hhh |
|
February 6, 2012, 18:24 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings hhh,
Before continuing, please read the following section: The FoamX case manager @ openfoamwiki.net If you truly want revive/resurrect FoamX, please start a new thread here: http://www.cfd-online.com/Forums/openfoam-installation/ If you want to work with or help develop more modern GUIs for OpenFOAM, search for Discretizer and enGrid: http://openfoamwiki.net/index.php/GUI Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FoamX and Java Issues | olih | OpenFOAM Installation | 5 | March 30, 2008 18:22 |
FoamX problem | richardhsieh | OpenFOAM Installation | 4 | September 17, 2007 23:41 |
Java error while starting FoamX | erydj | OpenFOAM Pre-Processing | 2 | May 4, 2007 09:53 |
FoamX problems with Java and Locale setting AMD64 | geimerma | OpenFOAM Installation | 5 | July 7, 2006 17:21 |
Java error while starting FoamX | cfdengineering | OpenFOAM Pre-Processing | 16 | June 28, 2006 21:02 |