new install, CLASSPATH issue on CentOS
I spent all night on this one and have gotten no where!
Download the j2sdk1.4.2_04.bin
(mine is in the /download directory)
Chmod 755
./ j2sdk1.4.2_04.bin
mv the directory to its chosen home (I choose /usr/java/)
I have 2 versions in this directory and have tried both
j2sdk1.4.2_04/ j2sdk1.4.2_15/
(both versions tried with same result)
Set the environment variables
PATH=/usr/java/j2sdk1.4.2_04/bin:$PATH
export PATH
export JAVA_HOME=/usr/java/j2sdk1.4.04
export CLASSPATH=/usr/java/j2sdk1.4.2_04/lib/tools.jar:/usr/java/j2sdk1.4.2_04/jre/lib/rt.jar
(The last one it says you may have to end it with :. I have tried both ways.)
Here is my env
root@cdillon [/usr/java]# env
MANPATH=/usr/lib/courier-imap/man:
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
OLDPWD=/downloads
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
PATH=/usr/java/j2sdk1.4.2_04/bin:/usr/java/j2sdk1.4.2_15/bin:/downloads/j2sdk1.4.2_15/bin:/usr/local/jdk/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin
MAIL=/var/spool/mail/cdillon
PWD=/usr/java
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/java/j2sdk1.4.04
EDITOR=pico
LANG=C
HOME=/root
SHLVL=2
LS_OPTIONS=--color=tty -F -a -b -T 0
LOGNAME=cdillon
VISUAL=pico
CLASSPATH=/usr/java/j2sdk1.4.2_04/lib/tools.jar:/usr/java/j2sdk1.4.2_04/jre/lib/rt.jar:./
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
So, they are there!
And then run the test script!
And here is my error;
root@cdillon [/usr/java]# /usr/java/j2sdk1.4.2_04/bin/java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Any thoughts my friends?

