Java installation problems
I am trying to install java to mandrake 10.1.
I get the following message when intallation fails... Quote:
|
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. |
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. |
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. |
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:
$ java HelloDate produces the expected output This may have something to do with the following which is installed also. Quote:
Tam |
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 |
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 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:. 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 |
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. |
All times are GMT -5. The time now is 02:39 AM. |