General :: Setting JAVA_HOME In .bash_profile Doesn't Work
Apr 15, 2009
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
this is my situation,I'm taking backup for some files in that i need to append the sysdate so that i can easily identify which file has to restore at some point,I've tried the following In my bash_profile(RHEL4)
Code: SYSDATE=`%d/%m/%Y` export SYSDATE
i tried after relogin to another terminal ,but when i give the following command
Code: [malick@home ~]$ echo $SYSDATE [malick@home ~]$ source ~/.bash_profile bash: fg: %d/%m/%Y: no such job
I don't know what to do ,once the sysdate is set i can add that element to my script where it takes the back up
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.
I want to ssh, scp, git fetch, etc. without a password. I saw the previous questions, and closed ones regarding this issue, but the suggestion seems to be to use ssh keys. However, after setting up ssh keys, I am still asked for my password (it's not asking for my private key password; it's asking for my login password). How am I supposed to set this up so that it only uses my private key for authentication?
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 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.
I selected 'Fire' from the Desktop effects list and got an error message saying that it "could not be activated".Why? Does it conflict with another effect? Is there a way to fix this?
I got a problem about network proxy setting. With the graphics setting interface, I set auto proxy with the URL address but it is weird that the setting only work with eth1(wireless), doesn't work with etho(wired). however my wireless driver is always a problem for Linux. i also tried export http_proxy= XXXXX:8080 it still doesn't work at all.
I'm running fedora 13 on a Dell Latitude E6500. It's a dual 64-bit system.
It was working, but then I tried to swap caps lock and control.
I used: System->Preferences->Keyboard Layouts->USA->Options Then, under Control Key Position, I selected swap caps lock and control.
Now, my keyboard won't work in the Keyboard Preferences test area or in any other window or when the screen-lock comes on.
I tried logging out. I tried rebooting. I tried deleting my .gnome2 directory. Nothing seems to work. I can use the keyboard on other accounts, so the keyboard is not the problem.
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 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 loaded oracle 10g. I have made a shell namely Menu and copied it inside the /home/oracle directory. In the .bash_profile, entry has been made sh ./Menu. I want to execute this Menu whenever I login as oracle user.My system does not executeell. However, I am able to activate this shell by typing sh ./Menu from $ prompt
I'm trying to edit the bash_profile but I'm getting this error."/.bash_profile: line 46: syntax error: unexpected end of the file"Here is my bash_profile.
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then
I have installed oracle11g R2 on ubuntun 10.04, upon completing I need to set the profile with environment variables but, could not locate the .bash_profile
I have installed Oracle Database server in Red Hat Linux for the first time. I edited the .bash_profile first time & defined some parameters like "export ORACLE_SID =orcl".I quit the editing. Then When I entered ". .bash_profile" it got error " not a valid identifier" it shows like "bash: export: '=orcl' : not a valid identifier for all the lines I edited it shows same error beacause I think I put a space in between "ORACLE_SID" & "=orcl".
So when I tried to edit that using "vi .bash_profile" being a normal user. It doesn't allow me editing.when I try to delete that space (because I think I have got error) using Backspace key on my computer,,it just moves the cursor to left in stead of deleting that space.
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 ?
I have installed Damn Small Linux on an old laptop.very boot reports that the SSH has loaded as I have configured it to do so but does not load startx as instructed in .bash_profile.After bootup, the following is reported by the system.-bash: /home/dsl/.bash_profile: line 12: syntax error: unexpected end of fileThis is the content of the .bash_profile
I have tried changing permissions and I have looked for a solution, but the error still exists.In fact it gives me a different error every time I log in.
Could not chdir to home directory /home/rb27: Permission denied
here is a snippet of what I get when I use the command ls -al:
I tried googling but couldnt find the task manager equivalent? Just want to find out how much memory LINUX uses in general as I have been using it for few days and everything seems faster than on vista with no programs freezing! Also on my taskbar, when I click on the time to change it, it doesn't work? I think the timezone is set to US or something but how do i change the timezone?
ctrl+alt+[f1 -f3] switch doesn't work, but back to ctrl+alt+f7 works normal. When i switch from ctrl+alt+f7 to ctrl+alt+f1 I see that on the dash flashes on the screen.
I've installed Linux suse 11.3 on my laptop, but the monitor doesn't work. my laptop is a VAIO one and it's graphic card is NVIDIA GEFORCE 310m, so what should i do?