LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2004, 10:50 AM   #1
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Rep: Reputation: 33
Java installation problems


I am trying to install java to mandrake 10.1.

I get the following message when intallation fails...
Quote:
[root@localhost java]# ./j2eesdk-1_4-linux.bin
./j2eesdk-1_4-linux.bin: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
[root@localhost java]#
I have not got a clue what is wrong. I have libstc++. Ant help will be greatly appreciated.
 
Old 11-20-2004, 01:39 PM   #2
stonecrest
Member
 
Registered: Sep 2004
Distribution: Arch :D
Posts: 66

Rep: Reputation: 15
Are you sure you have all the needed packages? I have the following and had no problem installing java.

Looking in installed packages for a providing package
Installed package: libstdc++.i386 0:3.3.3-7 matches with libstdc++
Installed package: libstdc++34.i386 0:3.4.0-1 matches with libstdc++34
Installed package: compat-libstdc++.i386 0:7.3-2.96.126 matches with compat-libstdc++
Installed package: libstdc++-devel.i386 0:3.3.3-7 matches with libstdc++-devel
4 results returned

Hope this helps.
 
Old 11-21-2004, 11:39 AM   #3
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Original Poster
Rep: Reputation: 33
Does anyone know what exactly this message relates to.
libstdc++-libc6.2-2.so.3

What should I be looking for. Where would it be in the filesystem. Where would I get the correct version.

I am completely new to linux but not computing.

The reason I installed linux on my second machine was to go on line, develop c and c++ programs with and without IDE's, develop Java using SDK, develop smalltalk.

So far going on line is a no no. My connection via broadband would have to be by ethernet, I only have USB and apparently this cannot be done.

I cant get Java installed on my machine because a shared library is missing. I cant find it on the machine and so far searches on the internet have been fruitless.

I cant get Squeak smalltalk to unpack onto my machine. It just hangs whilst unzipping the tar.gz file.

Why are there never any step by step guides to Linux software. I have been Fu***** around now for days trying fruitlessly to install Java and Squeak on my machine and getting angry and pissed off.

Last edited by tamtam; 11-21-2004 at 11:40 AM.
 
Old 11-21-2004, 02:24 PM   #4
stonecrest
Member
 
Registered: Sep 2004
Distribution: Arch :D
Posts: 66

Rep: Reputation: 15
Was my post invisible? I will try to help you one more time.

The above packages are the ones I have installed. With those packages, I was able to compile java without a problem. Upon doing further research, I see that the compat-libstdc++ package is what you need, it will provide that missing file. Install that first, and then try java again.

If you need further help on how to install this package first, post here.
 
Old 11-21-2004, 03:59 PM   #5
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Original Poster
Rep: Reputation: 33
All sorted. Thanks stonecrest but the problem was that I was trying to install the enterprise edition when I required the standard edition. Standard edition installed okay I think, although I do get errors concerning the CLASSPATH with a simple program I written to test the installation. A simple date prog produced the following errors when javac was processed.

Quote:
[tamtam@localhost Java]$ javac HelloDate.java
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:183)
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:185)
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
at java.lang.Thread.finish(Thread.java:185)
...THE SAME MESSAGE CONTINUES FOR NUMEROUS LINES BEFORE PROMPT RETURNS.
The relevant class is produced and executing with
$ java HelloDate
produces the expected output

This may have something to do with the following which is installed also.

Quote:

[tamtam@localhost tamtam]$ java -version
Kaffe Virtual Machine

Copyright (c) 1996-2004 Kaffe.org project contributors (please see
the source code for a full list of contributors). All rights reserved.
Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc.

The Kaffe virtual machine is free software, licensed under the terms of
the GNU General Public License. Kaffe.org is a an independent, free software
community project, not directly affiliated with Transvirtual Technologies,
Inc. Kaffe is a Trademark of Transvirtual Technologies, Inc. Kaffe comes
with ABSOLUTELY NO WARRANTY.

Engine: Just-in-time v3 Version: 1.1.4 Java Version: 1.1
[tamtam@localhost tamtam]$
Any thoughts...
Tam
 
Old 11-21-2004, 06:06 PM   #6
TechiePerson
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
What a coincidence. I had the exact same problem today. Running Mandrake 10.1, and trying to install java and getting this error message. I also found the problem was that I had the enterprise edition. After installing the standard edition with the command ./j2sdk-1_4_2_06-linux-i586.bin I found that I can't actually run it. I type in "java -version" and I get the error message "bash: java: command not found"

I'm a complete newbie to this and sorry if I'm going off track on this thread, does anyone know why this is not working? Do I need to do anything else to get it to work? I thought this should tell me the version?

Thanks,
Techieperson
 
Old 11-21-2004, 07:52 PM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
I type in "java -version" and I get the error message "bash: java: command not found"

You need to set your PATH and JAVA_HOME environment variables. Add the following lines to your .bash_profile:
Code:
export PATH=$PATH:/usr/local/java/bin
export JAVA_HOME=/usr/local/java
Now run "source .bash_profile" and the changes should be made.

although I do get errors concerning the CLASSPATH with a simple program I written to test the installation
Have you set the JAVA_HOME environment variable? Maybe you need to set CLASSPATH environment variable. Add the following line to .bash_profile:
Code:
export CLASSPATH=/usr/local/java/lib:.
Now run "source .bash_profile" and try compiling the program again.

I have assumed that java has been installed to /usr/local/java. If not, substitute it with the correct path.

I hope this helps
--Ian
 
Old 11-22-2004, 05:00 PM   #8
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Original Poster
Rep: Reputation: 33
All sorted. I removed Kaffe virtual machine. I created java.sh in profile.d with the PATH environment.

I followed the instrcutions from here to create the PATH environment substituting the correct version name.

http://home.bredband.no/gaulyk/java/...cknowledgments

Very helpful site with instructions for installing Java if like myself you are new to Linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 07:30 AM
LimeWire Installation Problems- No Java virtual machine could be found... DYNO Linux - Software 2 12-04-2004 12:59 PM
JAVA:(jwstric2) Problems in JAVA-LINUX nedian123 Programming 1 06-28-2004 05:12 PM
Java installation problems assatron Linux - Software 0 03-24-2004 02:03 PM
Installation of Java WiWa Linux - Software 2 12-04-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration