Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to connect to X11 server

 
Mohan Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

Im using WebLogic 8.1 special Edition in Unix plaform.
In my project, there is a need to create charts using jfreechart jar file.
While creating the charts, it is giving exception like

cannot connect to X11 server using 0.0.

I tried setting DISPLAY variable with X11 server. After setting the DISPLAY variable, i have given the command xhost + to make the DISPLAY variable global.

Immediately its giving exception like

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Please log me out from this ISSUE.

Thanks in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are 2 ways to handle this. One is to include a special headless X server and the other is to start Java with the headless option. Headless Java became available somewhere around the 1.4 release.

For WebLogic, your best bet is to check BEA's docs. They should have something on how to run headless.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic