Article 4Q81G [SOLVED] NoClassDefFoundError Error Java JDK

[SOLVED] NoClassDefFoundError Error Java JDK

by
elrodrix
from LinuxQuestions.org on (#4Q81G)
Hello guys.

I am trying to install JDK on my laptop. I am using Slackware 14.2 stable.

I downloaded jdk.rpm, then ran rpm2tgz and finally installpkg jdk.gtz

When I want to see the version, I have the following error:
user @ user: ~ $ java -version
Error occurred during initialization of VM
java / lang / NoClassDefFoundError: java / lang / Object

These are the PATH I have:
user @ user: ~ $ which java
/usr/java/jdk1.8.0_221-amd64/bin/java
user @ user: ~ $ whereis java
java: / usr / share / java /usr/java/jdk1.8.0_221-amd64/bin/java /usr/java/jdk1.8.0_221-amd64/jre/bin/java

And my .sh file is this:
bash-4.3 # cat /etc/profile.d/jdk.sh
#! / bin / sh
export JAVA_HOME = / usr / java / jdk1.8.0_221-amd64
export MANPATH = "$ {MANPATH}: $ {JAVA_HOME} / man"
export PATH = "$ {PATH}: $ {JAVA_HOME} / bin: $ {JAVA_HOME} / jre / bin"
bash-4.3 #

Could someone please guide me in this installation ?, does anyone know where the error is?

Thanks in advancelatest?d=yIl2AUoC8zA latest?i=_4d0xZc-Prc:lxT9Uihga1w:F7zBnMy latest?i=_4d0xZc-Prc:lxT9Uihga1w:V_sGLiP latest?d=qj6IDK7rITs latest?i=_4d0xZc-Prc:lxT9Uihga1w:gIN9vFw_4d0xZc-Prc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments