-1

I am using ssh from my mac machine and running FlexFlux for Flux Balance Analysis(FBA). Then I got this:

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(GraphicsEnvironment.java:204) at java.awt.Window.(Window.java:536) at java.awt.Frame.(Frame.java:420) at javax.swing.JFrame.(JFrame.java:233) at flexflux.analyses.result.FBAResult.plot(FBAResult.java:260) at flexflux.applications.FlexfluxFBA.main(FlexfluxFBA.java:157)

yzongy
  • 1
  • 3

1 Answers1

0

I got inspired by

If you've connected from another machine via SSH, you use the -X option to display the graphical interface on the machine you're sitting at (provided there's an X server running there (such as xming for windows, and your standard Linux X server) 1

I realized that I need to install an X server for Mac.

So I installed XQuartz on my Mac by following instructions from the Mac OS X section of How do I run graphical programs remotely from a Linux server?

Then ssh from XQuartz instead of my default terminal. Now it works!

yzongy
  • 1
  • 3