0

I would like to run a jar file extracted from my java project to be run on a Linux server I connect through SSH Tunneling. There are few problems, first there is something wrong with the Display: I get the error

No X11 DISPLAY variable was set, but this program performed an operation which requires it.
 at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
 at java.awt.Window.<init>(Window.java:437)
 at java.awt.Frame.<init>(Frame.java:419)
 at java.awt.Frame.<init>(Frame.java:384)
 at javax.swing.JFrame.<init>(JFrame.java:174)
 at random_v2.v2Frame.<init>(v2Frame.java:127)
 at random_v2.Wrapper.main(Wrapper.java:25)

and second is that I am not sure if I have to install other applications as well. In my code, the java program needs to get run other applications like weka, do I have to install weka with the same directory name and specs that is in my mac? I appreciate your help in advance. Best wishes

Alex W
38.5k13 gold badges115 silver badges115 bronze badges
asked Jul 2, 2012 at 16:33
1

2 Answers 2

1

Assuming you're tunneling into this unix box using PuTTY:

Make sure X11 forwarding is enabled in your PuTTY settings.

enter image description here

answered Jul 2, 2012 at 16:40
Sign up to request clarification or add additional context in comments.

Comments

0

Connect via command line using this command:

ssh -X user@server

The -X option enables X11 forwarding.

answered Jul 2, 2012 at 16:44

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.