Install Java and XVFB on linux command line

I have a VPS running linux with ssh access to the command line.

I need to be able to run a java program that requires Java, Xvfb and the relevant packages and fonts for it to work to be installed.

At the moment the java program works on a linux installation with a display screen.

On a command line with no display my Java program gives the following error:

| Gtk-WARNING **: cannot open display:

With Xvfb installed, when trying to run 'Xvfb :1' it gives the following errors:

| Couldn't open RGB_DB '/usr/share/X11/rgb'

| _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6

| _XSERVTransOpen: transport open failed for inet6/[url removed, login to view]

| _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

| error opening security policy file /usr/lib64/xserver/SecurityPolicy

| Could not init font path element unix/:7100, removing from list!

When trying to run 'Xvfb :1 -screen 0 800×600x24' it gives the following:

| Invalid screen configuration 800×600x24

So the server needs

- Java installing

- Xvfb and any related libraries and fonts installed so it works

- Xvfb exported to a display?

I'm not sure about the last one but the Java program runs a component that's Swing/AWT reliant to produce an output file, but it can't since it can't find an X server (or display context or some such)

and I will need the commands to run to replicate this on another server.

I'm new to linux so if you need more information, please ask.

Taidot: Linux

Näytä lisää: linux xvfb, java xvfb, _xservtranssocketopencotsserver unable open socket inet6, xvfb linux, xvfb install, xvfb _xservtranssocketopencotsserver unable open socket inet6, xvfb java, xvfb unable open socket inet6, xvfb, xvfb invalid screen configuration, linux xvfb install, xvfb _xservtransmakeallcotsserverlisteners failed open listener inet6, xvfb java swing, install xvfb, xvfb ssh, _xservtransmakeallcotsserverlisteners failed open listener inet6, _xservtransmakeallcotsserverlisteners, error opening security policy file lib64, xvfb unix 7100, xvfb error display, java linux command, xvfb fonts, java xvfb libraries, linux java awt xvfb, xvfb java linux

Tietoa työnantajasta:
( 1 arvostelu ) London, United Kingdom

Projektin tunnus: #424706

Myönnetty käyttäjälle:


kindly check PM

39 $ USD 0 päivässä
(6 arvostelua)

4 freelanceria on tarjonnut keskimäärin 100 $ tähän työhön


please see PM

30 $ USD 0 päivässä
(25 arvostelua)

can help you. tnx.

40 $ USD 1 päivässä
(75 arvostelua)

Hi you can assure the quality in both the solution either installation of Xserver or modifing java program

180 $ USD 5 päivässä
(4 arvostelua)

Heelo, I've working over 5 years with linux. I'm interested in your project.. Your regards,

150 $ USD 0 päivässä
(2 arvostelua)

Hello, please see PM. Cheers, Marc

100 $ USD 1 päivässä
(1 arvostelu)