Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

j2sdk1.4 in Linux error message java: command not found

843804May 29 2002 — edited May 30 2002
In 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2002
Added on May 29 2002
3 comments
393 views