08-22-2012 07:06 AM
HI ALL,
When i run the below command,I am getting the error:
bash-3.00$ pwd
/usr/openv/netbackup/bin
-bash-3.00$ sudo ./jnbSA
Starting administration console version 7.1.
The log file for this execution instance is
/usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jnbSA.10496.log
DISPLAY environment variable is set to:
Console was started on:
SunOS unix234 5.10 Generic_147440-19 sun4u sparc SUNW,SPARC-Enterprise
Command line options were:
./jnbSA
Starting administration console version 7.1.
LANG=iso_8859_1
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=iso_8859_1
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at vrts.common.utilities.CommonFrame.<init>(CommonFrame.java:75)
at vrts.common.utilities.CommonFrame.<init>(CommonFrame.java:70)
at vrts.nbe.BaseNBEFrame.<init>(BaseNBEFrame.java:83)
at vrts.nbe.LoginFrame.<init>(LoginFrame.java:228)
at vrts.nbe.JavaPresentationLayer.initiateLogin(JavaPresentationLayer.java:150)
at vrts.nbe.AdminConsole.main(AdminConsole.java:57)
Solved! Go to Solution.
08-22-2012 07:17 AM
You need to be running an x-server on the machine you wish the dispay to appear on.
(eg. Exceed or xming (xming is free)
You then have to export the display on the unix/ linux server
export DISPLAY=<ip address of pc>:0
Then jnbSA should appear on the correct screen.
martin
08-22-2012 07:17 AM
You need to be running an x-server on the machine you wish the dispay to appear on.
(eg. Exceed or xming (xming is free)
You then have to export the display on the unix/ linux server
export DISPLAY=<ip address of pc>:0
Then jnbSA should appear on the correct screen.
martin
08-22-2012 07:18 AM
You probably need to set your DISPLAY variable before running sudo ./jnbSA
export DISPLAY=<hostname>:0.0
<hostname> = the machine name where you want the java console to be displayed.
08-22-2012 07:26 AM
What are the steps to do it?
08-22-2012 07:32 AM
Rather install Java Console on your desktop.
On your NBU Windows install media, find JavaInstallFiles under Addons folder.
08-22-2012 08:18 AM
We have given the steps.
Install an x-server on the PC then export the display, with the command given.
Martin
08-22-2012 03:30 PM
Good X server for PC is XMing (its free)
Install it.
Run the XLaunch icon
Choose Multiple screens.
Choose No Access Controls.
On your UNIX server perform:
export DISPLAY=10.1.1.100:0.0;
(replace 10.1.1.100 with the IP address of the PC - of course firewall software may have rules on your PC)
Then run the sudo ./jnbSA
As above, there are a number of options open to you.