Java error in Solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Java error in Solaris 9
# 1  
Old 03-31-2011
Java error in Solaris 9

Hi folks,

I had a sparc machine with Solaris9 and built in java1.4.2
I installed Java1.5 on top of it by running the file jre-1_5_0_22-solaris-sparcv9.sh

Now when I run the java application, I get the following error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

When I run java -fullversion, I get proper output
java full version "1.5.0_22-b03"

But wen i run java -version, I get the same error repeated.

Code:
 
lsun7083 /usr/jdk/jre1.5.0_22/bin/sparcv9-> find / -name rt.jar
/usr/j2se/jre1.6.0_24/lib/rt.jar
/usr/java1.2/jre/lib/rt.jar

I am a newbie to IT field. Kindly help

Regards
Manu

Last edited by manojsomanath; 03-31-2011 at 05:14 PM..
# 2  
Old 03-31-2011
Quote:
Originally Posted by manojsomanath
Hi folks,

I had a sparc machine with Solaris9 and built in java1.4.2
I installed Java1.5 on top of it by running the file jre-1_5_0_22-solaris-sparcv9.sh

Now when I run the java application, I get the following error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

When I run java -fullversion, I get proper output
java full version "1.5.0_22-b03"

But wen i run java -version, I get the same error repeated.

Code:
 
lsun7083 /usr/jdk/jre1.5.0_22/bin/sparcv9-> find / -name rt.jar
/usr/j2se/jre1.6.0_24/lib/rt.jar
/usr/java1.2/jre/lib/rt.jar

I am a newbie to IT field. Kindly help

Regards
Manu
What's the output from this:
Code:
find /usr/jdk/jre1.5.0_22 -name java

Offhand, I think you have to install the Solaris sparc JRE to get the base 32-bit install, then install the sparcv9 on top to get the 64-bit install.
This User Gave Thanks to achenle For This Post:
# 3  
Old 03-31-2011
Thanx achenle...
That was a life saver.

Now java -version is coming correctly.

I linked the new location to /usr/bin/java

Code:
 
lsun7083 -> rm /usr/bin/java
lsun7083 -> ln -s /usr/jdk15/java15/jre1.5.0_22/bin/java /usr/bin/java

But wen i run the application, I get the JRE error again.
Code:
lsun7083 /Solaris_sparc-> ./installer
Unable to access a usable display on the remote system. Continue in command-line mode?(Y/N)
Y
JDK 1.5.0 Runtime Environment not found. Installer aborting

I have added the path variable in /.profile file also.

Please do help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to correct NMONVisualizer java error. Can someone help to decode this java error?

Hello AIX and Java gurus, I have a java error that I have no clue how to resolve. I am trying to run the popular NMONVisualizer utility against a NMON dataset and getting the error as shown below: /db2storage/NMON >java -jar NMONVisualizer_2015-02-02.jar com.ibm.nmon.ReportGenerator... (1 Reply)
Discussion started by: okonita
1 Replies

2. Solaris

How to install java (jdk-74) on solaris 10?

What kind of required java type for installed? which address link, i need to download the package. i have zcat this version jdk-7-solaris-sparc.tar.Z and then installed each the packages with pkgadd -d . , but my java version still java full version "1.5.0_24-b02".is it need doanything after... (1 Reply)
Discussion started by: aagusman
1 Replies

3. Solaris

Java Installation on s Solaris 8

I have installed java 1.6.0_31 on a solaris 8 machine by mean of the jre-6u31-solaris-sparc.sh file. The installation i think is allright infact if I run the java -version command it shows the right version but if i try to run the command java -jar Monitor.jar c (where monitor.jar is a little... (1 Reply)
Discussion started by: aemme
1 Replies

4. Solaris

Solaris 10 Java version

I have an issue here setting up ASR with a server. In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5 I downloaded and installed 1.6 But when I did java -version , its still showing 1.5 I captured the below from another... (4 Replies)
Discussion started by: incredible
4 Replies

5. Solaris

what is the command to see the java version in solaris 8 and solaris 10

what is the command to see the java version in solaris 8 and solaris 10 (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies

6. Solaris

Java Solaris 10 Zone settings

I have the following situation 1) Start JBoss Server 1 2) Within application - print as normal 3) Start JBoss Server 2 4) Printing STOPS on Server 1; Printing does NOT WORK on Server 2 Only solution is to stop Server 2; Restart Server 1 Then Printing works as normal. Doung a truss... (8 Replies)
Discussion started by: pmm
8 Replies

7. Solaris

How do I switch from CDE to Java Desktop in Solaris 10?

I am a newbie to Solaris/UNIX. I just installed Solaris 10 and accidentally chose CDE as my desktop instead of Java. How can I set Java Desktop as my desktop? Because before i installed my mechine is using java and more beauty from CDE.. (2 Replies)
Discussion started by: moslemovic
2 Replies

8. UNIX for Dummies Questions & Answers

Java into Solaris box

Hi need to install java in a Unix box, but have not been able to. Does anyone know where I can find information on where and how to install. THank you (1 Reply)
Discussion started by: federico
1 Replies

9. Solaris

Sun Java Portal Server 6 and Solaris 10

Hello, I have recently installed Solaris 10 OE in an Ultra-10 stand alone workstation. I would like to know where can I find information regarding which version of Sun Web technologies such as: Sun Java Portal 6.x Sun Java Web Server 6.x Sun Java Identity Server Sun Java Directory... (0 Replies)
Discussion started by: mosqueda_albert
0 Replies

10. UNIX for Dummies Questions & Answers

Solaris 8 JAVA

Does anyone know why Solaris 8 seems to take a long time for it to load java applet? Or is there a problem with me Java. For example this web page; On a linux box it comes up quick but on my Solaris box it takes three times as long. If anyone has an information or can point me to the right place,... (4 Replies)
Discussion started by: larry
4 Replies
Login or Register to Ask a Question