General :: Ubuntu 9.10 - Java Error When Starting Scripts - No X11 DISPLAY Variable Was Set

Dec 25, 2009

my java version is this

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)

And when i am trying to run my gameserver scripts i get this error.

root:~# /home/l2jserver/login # ./L2JConfig.sh Exception in thread "AWT-EventQueue-0" 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:431)
at java.awt.Frame.<init>(Frame.java:403)

[code]....

This is not my desktop computer but my remote server.

View 1 Replies


ADVERTISEMENT

General :: Know Which Display Number For The Variable DISPLAY To Be Exported When Ssh To Server?

Dec 26, 2010

When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only

export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock

[code]....

View 1 Replies View Related

Ubuntu :: Starting Xterm From Remote - Error: Cannot Open Display A.b.c.d:0.0

Sep 1, 2011

I am running hummingbird exceed on Workstation with an ip address of a.b.c.d, and connecting to a sun machine with IP address x.y.z.w running Solaris with XDMCP. From the sun machine, we commonly telnet to other sun and linux machines and run X applications.

We have just installed ubuntu 10.04, and I can telnet into that machine no problem.

However, running xterm on the ubuntu machine fails:

xterm Xt error: cannot open display a.b.c.d:0.0

View 2 Replies View Related

General :: How To Install Java - And Set The Path Variable

Oct 1, 2010

I have downloaded java and installed it with chmod +x and then ./bin package.

Hereunder is an output from CLI (putty)

I understand that the system knows the java is in a wrong place but if I do java -version it finds it correctly. I don't know and I don't understand how do I need to tell the OS that the java is somewhere else, I just did that with export java home and java path but still dosen't work, it keep tells when I do whereis java "java: /usr/share/java"

Here is another output:

View 10 Replies View Related

General :: Ubuntu Etc/profile: Environmental Variable Doesn't Display Content?

Jul 28, 2011

i am trying to declare an environmental variable in the /etc/profile' (as per the tutorial i'm following) but when i declare it and do an echo i get nothing.Here's what i've done so far..nside /etc/profile:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ -d /etc/profile.d ]; then

[code]...

View 12 Replies View Related

General :: X11 Forwarding - Error: Can't Open Display: <ip Of Display>

Jun 28, 2011

I have the following scenario that doesn't seem to work normally. I have a windows 7 pc from which I am using putty to connect to my other linux servers (all running redhat 5 and 6). So here is the scenario that works and one that does not work. And I'm trying to figure out the one that does not work. Scenario that works:

From windows 7 (putty) I ssh into Linux_Server_1.
echo $DISPLAY
localhost:10.0

I run xclock and I see it pop up on my windows 7 pc. I am using xming on windows 7 to help me populate the display from linux to windows. One that does not work:

From windows 7 (putty) I ssh into Linux_Server_1. Then from Linux_Server_1 I ssh into Linux_Server_2.
echo $DISPLAY
<no output>

I try to setup $DISPLAY with localhost:10.0 or 0.0 or even my windows 7 pc ip address:0.0 ....etc Then when I try to run xclock I doesn't work.

I get these error messages: Error: Can't open display: <ip of display>

Also as a side note all our Linux servers are sitting on one subnet. My pc is sitting on another subnet. I use vpn to connect to the subnet where the servers sit from my pc.

View 4 Replies View Related

Ubuntu :: Starting With Java - Need Jdk-6?

Apr 29, 2011

I've been running Ubuntu (10.10 - 32 bit) for about 3 months. Being curious about the very basics of Java programming I've just installed Netbeans 6.9 through the Ubuntu software centre and done the "Hello World" exercise within Netbeans. The file is in my Home folder but I'm not clear how now to try and run it.

Some Googling has raised some contradictory recommendations about adding the Sun/Oracle repository and the installing JDK6 as well. I'm now getting out of my depth so if someone can share knowledge on where to go from here I would be grateful. Have just registered so I hope this post is expressed correctly.

View 2 Replies View Related

Ubuntu :: Starting A Java App On Startup 9.10?

Apr 26, 2010

First of all I'm using Ubuntu 9.10.I have tried using System/Preferences/StartupApplicationsI added:java -Xint -cp /home/Edgar/dist/Edagr.jar:/home/Edgar/dist/Annotator.jar com.ionetrics.edgar.EdgarI don't know if I am calling this incorrectly or not. I know that I can call this from a terminal and it will run correctly.However it will not run at startup. I have added Teamviewer to startup and it runs properly.

View 1 Replies View Related

Programming :: Java Output Into Bash Variable?

Feb 20, 2011

I have a bash script that calls a java class method. The method returns a string to the linux console when run independently. how can I assign the value from the java method to a variable in a bash script?running the script: java -cp /opt/my_dir/class.method [parameter]

output: my_string if added in a bash script:

read parameter
java -cp /opt/my_dir/class.method [parameter] | read the_output
echo $the_output

the above doesnt work, I also tried unsuccessfully:

the_output=java -cp /opt/my_dir/class.method [parameter]
the_output=`java -cp /opt/my_dir/class.method [parameter]`
java -cp /opt/my_dir/class.method [parameter] 2>&1

How can i get the output stored into the_output variable?

View 6 Replies View Related

Fedora :: Set The Default Java Env Variable To New Installed Location

Sep 7, 2011

I installed new jre in linux. but i when i checked env variable $JAVA, it is showing old version. how to set the default java env variable to new installed location

View 1 Replies View Related

Fedora :: Java Applet Not Starting

Apr 10, 2011

Java applet don't start in Fedora 14, I have installed the latest jre, but no luck, any idea what else is needed ?

View 2 Replies View Related

Fedora :: The Service Does Not Use The System Environment Variable For JAVA And JRE Setup?

May 6, 2010

i have added a tomcat startup service using chkconfig. I have set up JAVA_HOME and JRE_HOME as well ass alternatives to point to the correct location.I have an init script in /etc/init.d. When i start the tomcat service using [ /etc/init.d/<x> start ] everything works fine and the environment variables for JAVA_HOME and JRE_HOME are used correctly.Now i added the service <x> using chkconfig --add so that it can start on boot up. But now the service does not use the system environment variable for JAVA and JRE setup by me.Also after complete bootup if i try to start the service using [ service <x> start] the environment variable in the shell are not used. don't want to exclusively declare variables for JAVA_HOME and JRE_HOME in the init script.

View 2 Replies View Related

Programming :: Fortran - Automatically Find The Starting And Ending Line Of Desired Variable?

Jun 23, 2011

I am loading the file in Fortran. File looks something like this (shown below) I am interested in Velocity values and not Pressure values. Is there a way to code in Fortran which finds the staring LINE of Velocity values and ending LINE of values or I have to manually find the lines? IN this case it should return Starting line : 9 Ending line: 11

PHP Code:

[code]....

View 2 Replies View Related

General :: Sudo Path Variable Error

May 28, 2010

I'm having a strange issue with the PATH variable when running the command 'sudo su'. When executing this command the PATH variable changes. No problems there, but it changes to:

Code:

Looking at this, there are two weird entries (//sbin and //bin) which should both start '/usr' instead. I'm not sure how I've managed to change this, or how a piece of software I'm using has done it (more likely it was me I expect), but could anyone suggest which file to look in to correct it? If it makes a difference the machine is running CentOS 5.

View 2 Replies View Related

Ubuntu :: Getting A Conky Variable That Display The Version (ex 10.04)

Sep 26, 2010

Is there a conky variable that displays the Ubuntu version (ex 10.04)?

View 9 Replies View Related

Slackware :: Installing Java Error - When Trying To Run A Java App With The Firefox Plugin - Browser Crashe

May 29, 2011

Code: ~ $ /usr/java/jre1.6.0_25/bin/java -showversion Error occurred during initialization of VMjava/lang/NoClassDefFoundError: java/lang/Object

That's the error I get. When trying to run a java app with the firefox plugin, the browser simply crashes if it's the 64bit java or tells me it's not installed if it's the 32bit version.

I'm at a loss as to what to do. I think it has something to do with leftover gunk from a previous version I misinstalled(Is that even a word?) Anyway, the only thing that google could come up with was a solution for windows which laid blame on Bill Gates for having a bunch of pf (java prefetch) files stuffed into c:windows for no apparent reason. The solution was to delete them, but I can't seem to find the java prefetch folder in linux. The method I used is downloading the rpm from java.com the rpm2tgz then installpkg then cp libnpjp2.so to firefox plugins folder.

View 8 Replies View Related

Fedora :: Setting Environment Variable Using Export JAVA_HOME=/usr/java/jdk1?

Jul 28, 2010

I am a newbie to Linux. I tried setting environment variable using export JAVA_HOME=/usr/java/jdk1.6 but that was not permanent (i.e is was there for that terminal session). I want to know how can i set environment variable permanently in Fedora 13 just like we do in windows.After google search, some user suggested to edit bashrc and profile file for setting environment variables but above file contains some shell programs.

View 3 Replies View Related

General :: (standard_in) 1: Parse Error Setting Variable With Bc?

Jul 19, 2011

I'm trying to define a variable, CHAN, by dividing another variable, FREQ, by a number. FREQ is a value from a file (called header.txt). What I think I'm doing with this bit of code is reading a number from header.txt whose location is specified by the head and tails, assigning it to FREQ and then defining CHAN with bc.

Code:
#!/bin/bash
while read FREQ

[code]....

View 2 Replies View Related

OpenSUSE Network :: DISPLAY Variable Setting Over VPN?

Jun 9, 2010

I am connected to work via a VPN. I am logging into a Solaris box at work from OpenSuse 11, using ssh -X. I would like to start a GUI on the solaris box. The problem is that I don't know what value to give the DISPLAY variable. Is it the local internal LAN ip address, for my machine? I did try that, and I tested it using, xterm on the solaris machine. It says it can't open the display. I have enabled remote connections on my machine using xhost +.I have to run a performance test on the Solaris box at 7am in the morning... so need to find out how to start the GUI

View 6 Replies View Related

Programming :: Use Echo To Display The Content Of A Variable?

Jan 4, 2010

I have a problem to use echo to display the content of a variable.

This is what I do:

Code:
#!/bin/bash
USAGE="Usage: name [OPTIONS] [DIRECTORIES]"
echo $USAGE

When I run this little script I get the following output:

Usage: name [OPTIONS] R

So I think that [DI might be some sort of escape sequence. But I do not know how to unescape it. Does anyone have a hint for me?

View 14 Replies View Related

General :: Shell Script Is Showing Error After Whenever Checking A Special Variable

May 29, 2011

I have created a shell script to customise mv command, now i have achieved to accomplish all the functionality of mv by using alias. But i found difficulty in accomplish the funcionality with options [Like mv -i or mv -f etc.]. I thought about logic which check the first argument whether its starting with a minus [-] or not. if its starting with argument it will set a flag and execute accordingly. But whenever this condition is checked it shell script will throw error of destination operand missing. But the same will work with out option.

Note: I have used an minus[-] expression for decreasing a counter on the script above. The below mentioned is the portion of script. Sry for troubling Im not gud @scripting.

for i in $*
do
{
argument=`expr $argument - 1`
if [ $argument = 0 ];
then
exit
[Code]....

View 5 Replies View Related

General :: Error When Starting BIND In Webmin

Mar 30, 2010

I just finished configuring my BIND DNS server through the Webmin interface.

When I try to start BIND, I get the following error:

Code:

This is the named.conf configuration file:

Code:

What I need to change in the file?

View 11 Replies View Related

General :: Error When Starting - Gmux Server

Jul 8, 2009

I am trying to install SAP Gui for linux 710r9 on fedora 10. After installing and configuring the client correctly I was able to LOGIN in to my SAP and use it properly, but when I select connect it gives me error box saying "Error when starting "gmux sever"." how to remove this error.

View 1 Replies View Related

General :: Error While Starting Apache2 / Syntax Error On Line 113 Of /etc/apache2/httpd.conf?

Nov 19, 2010

I have suse10 64bit and I was setting up SVN server on it. After all required setup while reloading apache2,its giving the error:

Code:

httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server

View 6 Replies View Related

General :: Assign Local Variable Values To Global Variable?

Feb 17, 2011

how to assign a local variable value to a global variable....

View 2 Replies View Related

General :: Starting Xfs Service On Centos 5.3 Shows Error

Oct 7, 2010

while starting xfs service on centos 5.3 shows error as starting xfs :mkdir:cannot create directory "/tmp/.font-unix':too many links

View 6 Replies View Related

Ubuntu :: NTB Freezes Display Turns Off After Starting XFCE?

Nov 10, 2010

I have fresh installation of Ubuntu server upgraded with apt-get dist-upgrade and with XFCE4 installed on my notebook. The problem is whenever I type startxfc, startx or X, the NTB freezes, CRT display connected to docking station/port replicator turns off, LCD in NTB gets black. The system does not respong to any signal, even the alt+sysrq ones. If I even install Xubuntu-desktop, as the X gets loaded every start, system everytime hangs after few seconds and I cannot do anything. Now I reinstalled and tried autoconfiguration with Xorg -configure. If I start the X with this configuration file, the result is still the same. Log at /var/log/X11/ seems to be blank.

Any ideas? Should i try to get drivers for my video card? I thought this is not necessary, the X server should start without anything, even only with basic resolution settings. As I looked, the video card chipset (Intel 82852/82855) is detected in my /root/xorg.conf.new file.

View 1 Replies View Related

General :: Create An Environment Variable With The PRINTER Variable?

Apr 16, 2011

I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)

View 3 Replies View Related

General :: Library Dependency Error When Starting Wireshark / Tcpdump

Jan 6, 2011

I'm using Fedora9. I cannot start wireshark or tcpdump because of the lib dependency error:

Code:
[root@localhost ~]# wireshark
wireshark: error while loading shared libraries: libpcap.so.0.9: cannot open shared object file: No such file or directory

I updated libpcap before and the latest version is libpcap.so.1.1. I changed the version because of another application but I cannot remember when I did it, perhaps on Sep.11?

Code:
[root@localhost lib]# ll |grep libpcap
-rw-r--r-- 1 root root 309670 2010-09-11 08:10 libpcap.a
lrwxrwxrwx 1 root root 12 2010-09-11 08:10 libpcap.so -> libpcap.so.1
lrwxrwxrwx 1 root root 14 2010-09-11 08:10 libpcap.so.1 -> libpcap.so.1.1
-rwxr-xr-x 1 root root 243207 2010-09-11 08:10 libpcap.so.1.1

So I tried

Code:
ln -s libpcap.so.1.1 libpcap.so.0.9
but it doesn't work.

View 5 Replies View Related

Programming :: Write A Script To Display Permission On Each Folders In $PATH Variable

Nov 26, 2010

Code:

# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

How would i write a script to display permission on each folders in $PATH variable below format.

drwxr-xr-x 2 0 root 4096 Nov 24 14:51 /usr/kerberos/sbin
drwxr-xr-x 2 0 root 4096 Nov 24 14:51 /usr/kerberos/bin

This is what i did but since it require awk programming i m stuck.

Code:

ls -ld <directoryinpath>

Code:

# echo $PATH | awk -F ":" '{ print $1 }'
/usr/kerberos/sbin

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved