Hi all, I am trying to learn my Java, and I am using my terminal in my mac to run my Java code. It compiles but when I run it I get the following error message:
-bash-3.00$ java Bifurcationlo
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:159)
at java.awt.Window.<init>(Window.java:406)
at java.awt.Frame.<init>(Frame.java:402)
at java.awt.Frame.<init>(Frame.java:367)
at Bifurcationlo.<init>(Bifurcationlo.java:21)
at Bifurcationlo.main(Bifurcationlo.java:83)
I am guessing I need something to display this plot using Java. Any tips out there. Also does anyone knows a good tutorial to how to use the drawString method. Thanks
G :confused: