Bumped by Community user
    Bumped by Community user
4 comment formatting, Grammar, spelling, code badly shaped
source | link

java Java upgrade problem on centosCentOS 6.5

I want to upgrade my jdk on a CentOS server, after some simple searches I found some solutions.

From this linkthis link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-possibly choose some alternatives .

-check that the new version installed (java -version)

  • install your chosen jdk from rpm package or from source

  • possibly choose some alternatives

  • check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step I get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I have also checked alternatives --config java:

alternatives --config java

and symbolic links.

I have also tried which command to find out what java is actually running and this was the link directions.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when I run /usr/bin/java -version it:

/usr/bin/java -version

It is OK and it returns the version but when I run java without any prefix I got that error.

So what could the problem be?

java upgrade problem on centos 6.5

I want to upgrade my jdk on a CentOS server, after some simple searches I found some solutions.

From this link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-possibly choose some alternatives

-check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step I get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I have also checked alternatives --config java and symbolic links.

I have also tried which command to find out what java is actually running and this was the link directions.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when I run /usr/bin/java -version it is OK and it returns the version but when I run java without any prefix I got that error.

So what could the problem be?

Java upgrade problem on CentOS 6.5

I want to upgrade my jdk on a CentOS server, after some simple searches I found some solutions.

From this link, you can see that the instructions are simple.

  • install your chosen jdk from rpm package or from source

  • possibly choose some alternatives

  • check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step I get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I have also checked:

alternatives --config java

and symbolic links.

I have also tried which command to find out what java is actually running and this was the link directions.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when I run:

/usr/bin/java -version

It is OK and it returns the version but when I run java without any prefix I got that error.

3 comment formatting, Grammar
source | link

I want to upgrade my jdkjdk on a centosCentOS server, after some simple searches iI found some solutions.

From this link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-possibly choose some alternatives

-check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step iI get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

iI have also checked alternatives --config java and symbolic links.

iI have also tried which command to find out what java is actually running and this was the link directoinsdirections.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when iI run /usr/bin/java -version it is OK and it returns the version but when iI run java without any prefix iI got that error.

So what could the problem be?

I want to upgrade my jdk on a centos server, after some simple searches i found some solutions.

From this link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-possibly choose some alternatives

-check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step i get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

i have also checked alternatives --config java and symbolic links.

i have also tried which command to find out what java is actually running and this was the link directoins.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when i run /usr/bin/java -version it is OK and it returns the version but when i run java without any prefix i got that error.

So what could the problem be?

I want to upgrade my jdk on a CentOS server, after some simple searches I found some solutions.

From this link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-possibly choose some alternatives

-check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step I get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I have also checked alternatives --config java and symbolic links.

I have also tried which command to find out what java is actually running and this was the link directions.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when I run /usr/bin/java -version it is OK and it returns the version but when I run java without any prefix I got that error.

So what could the problem be?

2 Fixed English and Spelling
source | link

I want to upgrade my jdk on a centos server, after some simple searches i found some solutions.

fromFrom this link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-dopossibly choose some alternatives

-check that the practicalnew version installed (java -versionjava -version)

and i go easy with theThe first two steps above, I easily completed, but in check version step i get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

i have also checked alternatives --config java and simbolicsymbolic links.

i have also tried which command to find out what java is actually running and this was the link directoins.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird pointthing is that when i run /usr/bin/java -version it is OK and it returns the version but when i run java without any prefix i got that error.

soSo what iscould the problem be?

I want to upgrade my jdk on a centos server, after some simple searches i found some solutions.

from this link you can see that the instructions are simple: jdk 7 installation guide for centos

-install your jdk from rpm package or from source

-do some alternatives

-check the practical version (java -version)

and i go easy with the first two steps but in check version step i get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

i have also checked alternatives --config java and simbolic links.

i have also tried which command to find out what java is actually running and this was the link directoins.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird point is when i run /usr/bin/java -version it is OK and it returns the version but when i run java without any prefix i got that error.

so what is the problem?

I want to upgrade my jdk on a centos server, after some simple searches i found some solutions.

From this link, you can see that the instructions are simple: jdk 7 installation guide for centos

-install your chosen jdk from rpm package or from source

-possibly choose some alternatives

-check that the new version installed (java -version)

The first two steps above, I easily completed, but in check version step i get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

i have also checked alternatives --config java and symbolic links.

i have also tried which command to find out what java is actually running and this was the link directoins.

/usr/bin/java -> /etc/alternatives/java -> /usr/java/jdk-1.8.0_40/bin/java

the weird thing is that when i run /usr/bin/java -version it is OK and it returns the version but when i run java without any prefix i got that error.

So what could the problem be?

1
source | link