From: Kevin J. B. <kev...@bi...> - 2002-05-07 15:44:45
|
This is really a unix shell question. :-) It sounds like you haven't added /usr/local/java/bin to your current environment. Try either: 1) PATH=/usr/local/java/bin:$PATH; export PATH (and add this line to your .bashrc file) or 2) ln -s /usr/local/java/bin/java /usr/local/bin (and repeat for javac and any other java executables you want). or 3) source FULL_PATH_TO_THE_FILE/java-rmi.cgi (and add this to your .bashrc file) kb > Joseph Schiller wrote: > Hi, > > I have setup a dual boot machine running Windows95 alongside with Linux > Mandrake 7.2. I've successfully downloaded Java2 SDK 1.4 from > http://www.blackdown.org, but I'm having a difficulty configuring Java > and installing Jython. I have downloaded the Jython-21.class and I am > following the commands, but bash is complaining about the command > 'java'. The difficulty arose from the 2.0 gig partition limit under > Win95, so I installed Java2 on a different partition, the Linux img file > takes more than 1.0 gigabyte and alongside with Windows there's hardly > any space left to do anything useful. Because Java does not reside in > the typical /usr/local directory, I need to configure the PATH, > JAVA_HOME, and CLASSPATH variables along with a couple config files. > Using the 'export' command, I thought I did everything correctly, but > I'm still not able to install Jython. Should I edit the ~/.bashrc file > directly? The j2sdk-config file shows PATH=/bin:/usr/bin, the > java-rmi.cgi also shows PATH=/usr/local/java/bin:$PATH and there are > other files that show the same. At this point I realize that not > installing in the /usr/local/java directory was a mistake, but running > out of space, I had no choice. Any suggestions will be most welcome. > > Sincerely, > > Joseph Schiller > |