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

FoamX Java problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 31, 2005, 15:57
Default Hi all, First of all thanks
  #1
New Member
 
Kristoffer Grande
Join Date: Mar 2009
Posts: 1
Rep Power: 0
kris is on a distinguished road
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
kris is offline   Reply With Quote

Old   April 1, 2005, 04:23
Default Try installing libXp.so.6.
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   April 15, 2005, 06:15
Default Hi, I have a similiar probl
  #3
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 9
billy is on a distinguished road
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.
billy is offline   Reply With Quote

Old   November 1, 2005, 17:14
Default Possibly somewhat belated, but
  #4
jaelwyn
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.
  Reply With Quote

Old   February 26, 2006, 19:48
Default Hi, I am also not a linux expe
  #5
nfoxley
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.
  Reply With Quote

Old   October 31, 2006, 10:50
Default Hej, I have problem with libX
  #6
mss
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
  Reply With Quote

Old   October 31, 2006, 13:18
Default Hello, I could probably hel
  #7
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 531
Rep Power: 17
philippose will become famous soon enough
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
philippose is offline   Reply With Quote

Old   October 31, 2006, 14:09
Default Thank you very much Philippose
  #8
mss
Guest
 
Posts: n/a
Thank you very much Philippose.
I made a link, as u said and now it is working.

THANK YOU!!!!

Rita
  Reply With Quote

Old   October 31, 2006, 15:34
Default Hej, Now I faced with anothe
  #9
mss
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
  Reply With Quote

Old   October 31, 2006, 17:01
Default Hi again, Ok... this is an
  #10
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 531
Rep Power: 17
philippose will become famous soon enough
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
philippose is offline   Reply With Quote

Old   November 6, 2006, 08:59
Default Hej Philippose, I did what yo
  #11
mss
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
  Reply With Quote

Old   November 6, 2006, 09:56
Default I am new openfoam-user. I have
  #12
New Member
 
Faroque Hossain
Join Date: Mar 2009
Posts: 5
Rep Power: 9
faroque is on a distinguished road
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
faroque is offline   Reply With Quote

Old   November 6, 2006, 10:11
Default Hej Philippose, I did what yo
  #13
mss
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
  Reply With Quote

Old   November 13, 2006, 09:15
Default sous bash (+linux) export J
  #14
darthnico
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...
  Reply With Quote

Old   November 13, 2006, 09:46
Default excuse for the french... I am
  #15
darthnico
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...
  Reply With Quote

Old   February 5, 2012, 15:04
Default Erroe in JAVA_PATH to the JDK installation directory
  #16
hhh
Senior Member
 
kumar
Join Date: Nov 2011
Posts: 115
Rep Power: 6
hhh is on a distinguished road
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
hhh is offline   Reply With Quote

Old   February 5, 2012, 15:08
Default Erroe in JAVA_PATH to the JDK installation directory
  #17
hhh
Senior Member
 
kumar
Join Date: Nov 2011
Posts: 115
Rep Power: 6
hhh is on a distinguished road
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
hhh is offline   Reply With Quote

Old   February 6, 2012, 18:24
Default
  #18
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,523
Blog Entries: 36
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
__________________
___
I'll be at OFW11 in Portugal
wyldckat 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 and Java Issues olih OpenFOAM Installation 5 March 30, 2008 17:22
FoamX problem richardhsieh OpenFOAM Installation 4 September 17, 2007 22:41
Java error while starting FoamX erydj OpenFOAM Pre-Processing 2 May 4, 2007 08:53
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 11:46.