Exceptions while running application on headless linux

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Exceptions while running application on headless linux
# 1  
Old 10-20-2010
Exceptions while running application on headless linux

I want to install executable file(Demo.bin) on vMA4.0 virtual machine using ssh. Same can be installed on all other Linux/Unix box. but when I am trying to run it on vMA,I am getting the following error--

Quote:
$ ssh -X user@vMA_IP
$sudo ./Demo_Linux.bin
/tmp/Demo/jre/bin/java -cp .:/tmp/Demo/lib/dem.jar -Djava.compiler=NONE install.xInstall install ./install/install.cfg /tmp Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source) at install.xinstall<init>(xinstall.java:161)
at install.xinstall.getInstance(xinstall.java:142)
at install.xinstall.main(xinstall.java:1204)
Could you please advise me how to approch this problem and how to resolve it?

Last edited by smartgupta; 10-20-2010 at 10:17 AM..
# 2  
Old 10-21-2010
Well, the error's clear enough: Your server's headless, but the program for some reason demands an X server. If running an X server on the server is impractical, you may be able to forward it to your own PC through SSH forwarding or allowing it to access it over the internet i.e. export DISPLAY=my.ip.address:0.0
# 3  
Old 10-21-2010
When I am trying it by forwarding it by export DISPLAY:my.ip.address:0.0, I am getting following error--

Quote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/Demo/jre/lib/i386/xawt/libmawt.so: libXext.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(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
Please provide your valuable suggestions.
# 4  
Old 10-26-2010
Install libXext, I suppose.
# 5  
Old 10-26-2010
Every X11 client, which includes Java's AWT, requires the X11 libraries in order to communicate with the server. So you'll have to install libXext, along with any dependencies that might have.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash pauses while application running

I want a really easy thing to happen, I want the bash to open a picture with QuickPictureViewer (qpv) and then some seconds or after a if function with some specific value that this process is terminated. The problem is, that the bash opens the picture and the script doesn´t go on (because the... (2 Replies)
Discussion started by: SasuGamer
2 Replies

2. UNIX for Beginners Questions & Answers

Application server is running or not

Hi All, i am trying to find whether nginx is installed or not as well process is running or not on my centos server. For that i am searching for the nginx configuration file nginx.conf based on that i am printing the ouput. Below script i am using. var=$(find / -name "nginx.conf" !... (1 Reply)
Discussion started by: balu1234
1 Replies

3. UNIX for Beginners Questions & Answers

Resolution Won't Change on Headless Linux Box?

Hello All, Wasn't sure if I was supposed to post this under Hardware so posting here... Device: CuBox-i OS: OpenSuSE 13.1 Uname: Linux CuBox-PC 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux Window Manager: XFCE Display Manager: lightdm (*XDM?) I... (2 Replies)
Discussion started by: mrm5102
2 Replies

4. Shell Programming and Scripting

How to interrupt running application?

Hello i have problem passing ctrl+C into shell script this script will run application and return value but never ends and stay running. i tried trap and not working at all the command should look like this : sarm pcsp -s CHG_M_P1 i want something to stop this command after... (9 Replies)
Discussion started by: mogabr
9 Replies

5. UNIX for Dummies Questions & Answers

How to start application and keep script running

What I'm looking for is best explained with a little example. #!/bin/bash gedit echo "I need this message to appear while gedit is still running, but it appears only then when I close gedit." Of course most of the times you want the script to wait, but in this case I want to start a new... (5 Replies)
Discussion started by: MrZehl
5 Replies

6. Shell Programming and Scripting

Know when a particular application is running

Is it possible in unix to write a script that could determine when a particular application is running or not ? (3 Replies)
Discussion started by: zapper222
3 Replies

7. Solaris

How to find an application running on multithread?

Dear Friends, We have one T5240 server with 128vcpus in our lab.Performance of the server is very poor. Application uses only 2% of processor..I heard that single thread application performs slowly in coolthread.How can we find whether the application running on multithread or single thread? If... (7 Replies)
Discussion started by: nicktrix
7 Replies

8. Shell Programming and Scripting

command to know the application running of the port

Hi, is there any command to findout that which application is using the particular port. or whether any port is occupied with the specfic process id ? (4 Replies)
Discussion started by: mail2sant
4 Replies

9. Shell Programming and Scripting

Query on sending inputs to a running application

Hi I need a help for below : I am running an application XXXX , and when it starts i am passing a file name called "connect.spb" and after the application connects to the server i am sending filename "accept.spb" as a parameter. DL385:$ ./XXXX This is XXXX (Reproducer by Order or RelaY) ... (1 Reply)
Discussion started by: srkelect
1 Replies
Login or Register to Ask a Question