j2sdk1.4 in Linux error message java: command not found
843804May 29 2002 — edited May 30 2002In installed j2sdk1.4.0 in usr/java. I then installed JEdit in
usr/share/
From the path usr/share/jedit/4.0 I entered 'java -jar jedit.jar'
I get an error java: command not found.
I can not get any .jar files to run because I get the same error.
Any suggestions to get this or any .jar file working?
I tried setting the path in my .bash_profile which is included below.
(do I need to shut down and restart to make this effective?)
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then . ~/.bashrc fi
# User specific environment and startup programs
PATH=$PATH:usr/java/j2sdk1.4.0/bin
export PATH unset USERNAME
export CLASSPATH=/usr/java/j2sdk1.4.0/bin:/usr/java/j2sdk1.4.0/jre/bin:
export CLASSPATH=$CLASSPATH:/usr/share/jedit/4.0/jedit.jar
JAVA_HOME=/usr/java/j2sdk1.4.0
export JAVA_HOME
fyi
This is cross posted at (i updated the bash_profile based on a suggestion at this post, but to no avail): http://groups.google.com/groups?hl=en&lr=&ie=UTF8&oe=UTF8&threadm=89584a18.0205271036.5d7b9134%40posting.google.com&rnum=1&prev=/groups%3Fq%3Dtestingforechoes%26hl%3Den%26lr%3D%26ie%3DUTF8%26oe%3DUTF8%26scoring%3Dd%26selm%3D89584a18.0205271036.5d7b9134%2540posting.google.com%26rnum%3D1