I want to run a applet on the Unix terminal.
but  I am getting this error ..


$ appletviewer appdemo.java
The environment variable DISPLAY is not set. Default to the local display.
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Exception in thread "main" java.lang.InternalError: Can't connect to X11
window
server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:6
1)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java, Compiled Code)
        at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java, Compiled Code)
        at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:60)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java, Compiled Code)
        at java.awt.Toolkit$2.run(Toolkit.java, Compiled Code)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java, Compiled Code)
        at sun.applet.AppletCopyright.<init>(AppletCopyright.java, Compiled
Code
)
        at sun.applet.AppletViewer.mainInit(AppletViewer.java, Compiled
Code)
        at sun.applet.AppletViewer.main(AppletViewer.java, Compiled Code)

---------------------------------------------------------------------------------------------------------

The secret of getting ahead is getting started.
The secret of getting start is
breaking your complex overwhelming
tasks into small manageable tasks,
and then starting on the first one.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to