Knoppix used to come with BlackDown 1.4.1. Make sure the JDK you installed appears first on your PATH, so it's that version of java that's invoked. Simply type "java -version"'
Hi All
I've using Knoppix 3.3 on Harddisk and I've installed java j2sdk1.4.2_05.
While invoking the compiler javac the folowing error message comes up:
Error Occured during Initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
invoke: javac test.java
I've already set the Path Variable:
/usr/java/j2sdk1.4.2_05/bin
The man pages are running correctly.
Would be nice if someone has a hint.
Thanx Norbert
Knoppix used to come with BlackDown 1.4.1. Make sure the JDK you installed appears first on your PATH, so it's that version of java that's invoked. Simply type "java -version"'
I've already set it at the beginning of the PATH Variable. Is there a dependencie of the Shell I use?
When are you seeing the error message: when compliling or when trying to execute your compiled test program?
Also have you defined the JAVA_HOME environment variable?
See this message usig the compiler and the same message when try to get the version (java -version)
My Configuration in the /etc/profile file:
JAVA_BINDIR=/usr/java/j2sdk1.4.2_05/bin
JAVA_HOME=/usr/java/j2sdk1.4.2_05
JDK_HOME=/usr/java/j2sdk1.4.2_05
PATH="/usr/java/j2sdk1.4.2_05/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games"
export JAVA_BINDIR
export JAVA_HOME
export JDK_HOME
export PATH
It all looks fine to me; what does "type java" report? And you did re-logon after editing /etc/profile, didn't you? Also, root might be overrinding the PATH setting for security reason. so try with another account.
type java gets the following:
java is /usr/java/j2sdk1.4.2_05/bin/java
I've tried with a normal User account, the same result
Javac might previously have been aliased to gcc (unless the Sun javac is 1st on your PATH, which seems to be the case...). Please confirm with "type javac"
Do you have CLASSPATH defined by any chance, which might interfere. Other than that, I am running out of ideas; sorry.
Hi Norbert:
I haven't been able to run the installed sdk in my knoppix 3.3, but I intalled the sun jre successfully.
You have to edit your /etc/profile and I think the most important change a sinbolic link in /usr/bin
After doing this I can run eclipse and other java aplications.Code:#cd /usr #ln -f -s usr/j2re1.4/bin/java java #java -version
I tried now a different installmod (-localinstall) for the source *.bin file from sun.com
invoke:
./j2sdk-1_4_2_05-linux-i586.bin -localinstall
After installing this way I updated the profile and now it works.
At first I unziped the *. rpm file, converted to a *.deb file to installed it by alien
Thanx
Norbert
Corsair Vengeance RGB Pro 128GB (4 x 32GB) PC4-25600 (DDR4-3200) Memory...
$200.00
xpg ram ddr4 16gb 4133 (2x 8gig)
$25.00
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
BRAND NEW - Raspberry Pi 5 8GB RAM "NEW"
$50.00
Apple MacBook Air A2337 2020 M1 3.2GHz 8GB RAM 256GB SSD Space Gray Sonoma OS
$459.99
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel
$33.99
*LOT OF 4* CORSAIR CMZ16GX3M2A1600C10 8GB Desktop PC3-12800 DDR3-1600MHz RAM
$22.75
128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM
$139.96
HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3
$40.00