Cannot seem to get Java working in my path

This is a discussion about Cannot seem to get Java working in my path in the Linux Customization Tweaking category; I have been having problems trying to get Java working in my path. If I cd to the Java directory and then run java <file> it will then start, but will complain about not having the proper class files for the application.

Linux Customization Tweaking 106 This topic was started by , . Last reply by ,


data/avatar/default/avatar19.webp

3857 Posts
Location -
Joined 2000-03-29
I have been having problems trying to get Java working in my path. If I cd to the Java directory and then run "java <file>" it will then start, but will complain about not having the proper class files for the application. I figured this was because the application (a Samba GUI app) was not being executed while I was in the directory, and I decided to append the Java dir to the end of my .bashrc. Well, it isn't working. Here is my .bashrc:
 
# .bashrc
 
# User specific aliases and functions
 
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
 
export PATH=$PATH:/usr/java
 
The path ammendment does not work either from the command line or with this file adjustment. Anybody have an idea on how to correct this?

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Sep 17
Created
Dec 12
Last Response
0
Likes
1 minute
Read Time
User User
Users

Responses to this topic


data/avatar/default/avatar25.webp

15 Posts
Location -
Joined 2002-12-12
normally I would link /usr/local/j2r???/bin/java to /bin/java
 
 
ln -s /usr/local/j2re1.4.1_01/bin/java /bin/java
 
 
your $PATH needs
 
$PATH:/usr/java/bin