I am thinking that this discussion is more appropriate for debian-user or debian-java, since it concerns neither the testing of the next stable release nor software that is officially in Debian. On Mon, Aug 22, 2005 at 02:22:19AM -0400, Jim Seymour wrote: > Running etch with kernel 2.6.12. I followed the tutorial for installing > sun java from http://www.crazysquirrel.com/computing/debian/java.jspx. > The problem is that I cannot seem to set the PATH variable. Here is a > clip from my /etc/profile. > > # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) > # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). > > if [ "`id -u`" -eq 0 ]; then > PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/lib/java/bin:usr/lib/java/jre/bin" > else > PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin" > fi > > I want to set the java path system wide and the end result of this is: > > /bin/bash: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: No such file or directory > > The path statement is correct. Permissions are okay. What could be > blocking the path. Does not work for root or regular user. > If you used java-package, the resulting .deb package will make the necessary utilities available in /usr/bin. From my system (with Sun Java 1.5 installed): $ which javac /usr/bin/javac $ ls -l /usr/bin/javac lrwxrwxrwx 1 root root 23 2005-03-22 23:48 /usr/bin/javac -> /etc/alternatives/javac $ ls -l /etc/alternatives/javac lrwxrwxrwx 1 root root 31 2005-06-29 18:21 /etc/alternatives/javac -> /usr/lib/j2sdk1.5-sun/bin/javac The only thing you may need to set is JAVA_HOME. The only thing I can think of that may cause your setup to fail is if you forgot to symlink /usr/lib/java to /usr/lib/j2sdk1.5-sun, which would explain the "No such file or directory" error. -Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto
Attachment:
pgpDaCCrQF5aP.pgp
Description: PGP signature