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

Code:
PATH=$PATH:$HOME/bin
PATH=/usr/java/jdk1.5.0_16/bin:$PATH
JAVA_HOME=/usr/java/jdk1.5.0_16/
export PATH JAVA_HOME

View 3 Replies


ADVERTISEMENT

General :: Where To Write JAVA_HOME? In .bashrc Or In .bash_profile

Feb 9, 2010

Where to write JAVA_HOME? In .bashrc or in .bash_profile? What's the difference?

View 1 Replies View Related

General :: Sysdate Setting In Bash_profile?

Mar 29, 2010

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

View 2 Replies View Related

General :: Setting JAVA_HOME - What Is The Default Path They Are Installed

Dec 30, 2009

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.

View 1 Replies View Related

General :: Ssh Without A Password (setting Up Ssh Keys Doesn't Work)?

Mar 9, 2011

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?

View 2 Replies View Related

Slackware :: Setting The JAVA_HOME Variable ?

Jan 10, 2009

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.

View 1 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

OpenSUSE :: Desktop Fire Setting Doesn't Work?

May 2, 2010

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?

View 6 Replies View Related

Networking :: Proxy Setting - Doesn't Work With Etho(wired)

Mar 7, 2010

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.

View 2 Replies View Related

Fedora :: Keyboard Doesn't Work After Setting - Swap Ctrl And Caps Lock

Jun 9, 2010

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.

View 4 Replies View Related

General :: Where Exactly Is JAVA_HOME?

Jul 28, 2010

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?

View 4 Replies View Related

Ubuntu :: Set The Bash_history Size When Using The .bashrc File And Setting The "HISTSIZE=9000" Doesn't Work?

Jun 18, 2010

How do you set the bash_history size when using the .bashrc file and setting the "HISTSIZE=9000" doesn't work?

View 9 Replies View Related

General :: .bash_profile Not Loading ?

Apr 1, 2010

Whenever I reboot my fedora core 12 box I find that my .bash_profile does not load... I have to issue source ~/.bash_profile

How do I get this to load automatically each time?

View 14 Replies View Related

General :: How To Set JAVA_HOME Properly

Jan 10, 2009

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.

We cannot execute /usr/lib/java/bin/java.

View 1 Replies View Related

General :: Set Up The JAVA_HOME Environment?

May 13, 2010

I tried to install the nutchwax and hadoop as a prequisite for the wera.

Problem:

localhost:

Error: JAVA_HOME is not set.

source code:

View 2 Replies View Related

General :: .bash_profile Not Activated On Login?

Oct 27, 2010

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

View 2 Replies View Related

General :: Bash_profile [ Unexpected End Of The File ]?

May 18, 2011

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

[code]....

View 3 Replies View Related

General :: Unable To Find .bash_profile

Dec 13, 2010

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

View 11 Replies View Related

General :: Edit The .bash_profile Being A Normal User In Red Hat?

Feb 18, 2011

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.

View 5 Replies View Related

General :: Slackware 13.0 ~/.bash_profile Not Running At Login?

Jan 29, 2010

I'm logging in as a user at run level 3.I have my .bash_profile in my home directory

Code:
if [ -f ~/.bashrc ]; then
source ~/.bashrc

[code]....

View 8 Replies View Related

General :: JAVA_HOME In Bash Script Test

Sep 4, 2009

I was wondering why

Code:

Is echoing NO even though

Code:

View 2 Replies View Related

General :: Java_home - How Check The Path Has Properly Set Or Not

Feb 13, 2011

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 ?

View 2 Replies View Related

General :: Errors In .bash_profile And Startx Does Not Load Automatically?

Sep 4, 2010

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

#!/bin/bash
export IRCNICK=DSL
export DISPLAY=:0

[code]....

View 1 Replies View Related

General :: Mail() Function Doesn't Work With HOTMAIL But Its Work With Others?

Apr 27, 2011

i have tried mail function in php to send email from the local host its work for yahoo but not with HOTMAIL whay ! actually i tried to figure it out,

View 1 Replies View Related

General :: -bash: /home/rb27/.bash_profile: Permission Denied

Sep 9, 2011

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:

drwxr-xr-x 16 root root 0 Sep 8 18:28 .
drwxr-xr-x 23 root root 4096 Feb 5 2011 ..
d????????? ? ? ? ? ? ajd74
d????????? ? ? ? ? ? ban45
d????????? ? ? ? ? ? rb27

I cannot log in as root since the permission is denied

View 1 Replies View Related

General :: Can't Get Wireless To Work - Setting?

Feb 20, 2010

I have just downloaded Ubuntu today on a dell inspiron 1525 but I cannot get the wireless to work I know very little about linux but want to learn

View 14 Replies View Related

General :: Task Manager - Setting Time / Date Do Not Work?

Feb 19, 2010

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?

View 2 Replies View Related

General :: Sound Doesn't Work / Get That?

Jan 27, 2010

I got a sound issue with my debian system
here is some outputs
lsmod

Quote...

View 3 Replies View Related

General :: Ctrl+alt+[f1 -f3] Doesn't Work?

Jan 13, 2011

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.

View 2 Replies View Related

General :: Monitor Doesn't Work / Get That?

Feb 27, 2011

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?

View 1 Replies View Related







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