I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. I have set JAVA_HOME in my /etc/profile, like this:
But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get: error: JAVA_HOME is not defined correctly.
I have installed jdk1.60_23 i have created a directory named java in root's Home, jdk has installed in jdk1.60_23 directory in java how to set path to compile or run the java file ?
I did like this : export JAVA_HOME=/usr/bin/java/jdk1.60_23/bin export PATH=$JAVA_HOME:/usr/bin/java/jdk1.60_23/bin
How check the path has properly set or not ? how and where create source file of java ? how to compile and run the java source file ?
Tomcat installation requires JAVA_HOME to be defined. In Windows it is straight forward. But in Linux binaries are in one folder and libraries are in other folder.
Is there a way to find out where exactly is JAVA_HOME?
I have some Flex and Java files which can be compiled with JDK1.5. My server was already loaded with 1.4 (at path /usr/bin/java) and our sys admin(I dont know why) copied another JDK, JDK 1.5 at path /usr/java/jdk1.5.0_16/. It seems very easy to use this java. Just set the path in .bash_profile. I did it and now if I run which java I still see the path for java 1.4 not java 1.5. Am I doing something wrong? Following is actual entry from bash_profile
I installed "jdk1.6.0.bin" and "jre1.6.0.bin" successfully. But I don't know where they are installed. I can't find anywhere. What is the default path they are installed.I want to set JAVA_HOME.
You can install Java either using "Synaptic Package Manager" or using "apt-get install java-6-openjdk" command.Java will be installed to the location "/usr/lib/jvm/java-6-openjdk"Now open a terminal and type "sudo gedit /etc/bash.bashrc ".Append the following lines to the opened "bash.bashrc" file
"export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/" "export PATH=$PATH:$JAVA_HOME/bin" Save & close the "bash.bashrc" file
I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. This is a question for the 'Linux Newbie' forum (not slackware-specific).
I have set JAVA_HOME in my /etc/profile, like this:
But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get: error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/java/bin/java.
I've managed to create a working RPM that does a bit of system configuration despite having little working knowledge of linux before starting. My RPM appeared to be working for awhile now but as a final test I installed it on a completely fresh install of RedHat enterprise edition 5.2 (after installing prereq rpms). It seems I'm running into a problem that the IMQ program(ie java message queues) will not boot correctly when I do this because it doesn�t know where to find the JRE.
I want to make sure that when my rpm is run the program actually works afterwards, and it won't work without IMQ. I was thinking I would have the RPM modify the IMQ configuration file to provide a -javahome argument when it boots up. I don't think I can set the configuration file to say '-javahome $JAVA_HOME' because the JAVA_HOME environmental variable won't be set until later in the boot up process after IMQ has attempted, and failed, to boot.
so I had thought the rpm could set whatever the value of JAVA_HOME is at the time the rpm is installed as the home for IMQ. So my questions are...
1) how can I require that JAVA_HOME is set prior to running my RPM, and have the RPM not install if JAVA_HOME isn't set
2) is there a good way to have rpm be able to undo the change I made to the configuration file if it is erased? Should I save a version of the old configuration file before I make the changes somewhere to be used?
3) is this the best way to do things, or is there a simpler method?
1. check JAVA version, 2. set up the JAVA_HOME and 3. CLASSPATH variables
I had installed
1. NetbeansIDE 6.7.1 from Software Center 2. MySQL from command sudo apt-get install mysql-server 3. libmysql-java from synaptic package manager
OS Information
1. Partition 1, 3.0 GB Swap Space, /dev/sda1 2. Partition 2, 6.0 GB Filesystem, /dev/sda2 mount at /, Bootable 3. Partition 3, Ext4, /dev/sda3 mount at /home 4. Partition 4, /dev/sda4, Extended (Drive A, Drive B and Drive C)
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/java I am not having any clue as what is this error? As to me JAVA_HOME seems to be defined.
I've been following the instructions to install Resin, and all seems to go well until I try to run the /bin/httpd.sh file. It simple says:
Code:
exec: 40: -jar: not found
I suspected this was something to do with my JAVA_HOME variable not being set, so I looked up how to do this and added it to my /etc/bash.bashrc file. Saying "echo $JAVA_HOME" does indeed return the correct path so I don't think this is the problem.
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.
(Using Archlinux) I downloaded Ruby 1.8.7-174 a while ago and installed it via the tarball (not pacman). I was trying to update to 1.8.7-299, but I can't get it to work. Per the readme, I do the following steps, all of which complete without error:
./configure make make install
After install finishes however, I still have -174 installed instead of -299.
there are different methods for securing based on home versus professional computers. My questions generally pertains to securing home desktops, but professional protection is definitely welcome :) Knowledge is power. Ever since moving to the wonderful world of Linux a couple years ago, I never even really thought about security. Seeing as most low-life scum make viruses for Windows machines seeing as they're more abundant.But how do I know if I'm safe/secure from anyone who want's to get at me or my stuff. I know that anyone who is determined enough to get in will, there's no question about that. But what steps can I take to ensure I'm protected from things like rogue root shells and automatic attacks? Also, is there a sort of built-in firewall/antivirus in more Linux distros?
I know this question is quite broad seeing as there are tons of ways someone could compromise your system, but maybe you could share what you did to make sure you were safe.I decided to not allow root login via ssh and to change the port is listens on to something random. Hopefully this a step in the right direction. Currently looking at iptables and shutting down services.
I'm trying to use zenity and at to make a little reminder script. The problem is that while zenity --info works fine from bash (or sh), running echo "zenity --info" | at now + 1 min does nothing. The job shows up in my atq and then runs, but no zenity pop-up. What's going on?
I am currently trying to make a front-end (client) for xmms2. However, I have run into a road block. I need to get the current number of seconds of the current playing song, so one would think to use:
Code: xmms2 current "${playtime}" However, all this does is return a blank line. Infact, if I try to do any "formatting" for
I'm using Gnome 2.30.2 with Ubuntu 10.4 would like to shut down X Windows properly. Using sudo init 3 from console 1 or a terminal on the Gnome desktop results nothing. There are a bunch of ways of doing accomplishing this that I've seen, but the most recommended methods each cause the same errors. The methods that I've used are sudo service gdm stop, sudo stop gdm && sudo pkill X, and sudo /etc/init.d/gdm stop. After these commands are run I receive the following message: gdm stop/waiting.
Then I switch to console 7 & notice that the screen is frozen & has the following information:
There is a blinking cursor below this message & the terminal does not respond to any command including Ctrl z.
These are the same messages that are normally quickly displayed when linux normally boots.
I disabled the battery power option in & removed other unnecessary startup processes from System, Preferences, Startup Applications. I've tried running the gdm stop commands from terminals 1 & 2 as well as consoles in X Windows & it produces the same results. For some reason though, the gdm commands do work when I used the restart option.
I've tried setting up BIND from a fresh install. I've followed a few tutorials (all seem to follow a similar routine), but it doesn't appear to work properly.
This is what happens when I query my domain: [URL]
This is my named.conf file:
Code: // // named.conf for Red Hat caching-nameserver // options { directory "/var/named";
[Code].....
I've compared both files to examples and they don't appear to be any different - I'm at a loss as to what is wrong or where I should start to troubleshoot it.
I'm trying to run 9.10 from my flash drive, but it won't load properly. I end up with repeating messages of "end_request: I/O error, dev fd0, sector 0", and "Buffer I/O error on device fd0, logical block 0" for a bit, then it goes away, and then repeats "This is normally a bug some applications using the D-Bus library. process normally arguments to dbus_pending_call_set_notify() were incorrect, assertion "pending != NULL" failed in file dbus-pending call .c line 596." really fast, and keeps on repeating until I manually shut my laptop off.