Compatible Support Forums: Cannot seem to get Java working in my path

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cannot seem to get Java working in my path

#1 User is offline   clutch 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 3859
  • Joined: 29-March 00

Posted 17 September 2002 - 05:38 PM

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?
0

#2 User is offline   FishDog 

  • stranger
  • Group: Members
  • Posts: 15
  • Joined: 13-December 02

Posted 13 December 2002 - 12:43 AM

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users