Solved

Install Java in Linux

Posted on 1997-06-05
6
197 Views
Last Modified: 2006-11-17
A error message
/usr/local/java/bin/../bin/i586/java:
  can't resolve symbol '__lib_malloc'
1.How do I  install Java in Linux?
2.What is the meaning of this error message?
   How  do I  solve the problem?
0
Comment
Question by:mathematics
6 Comments
 
LVL 6

Expert Comment

by:jpk041897
ID: 1221258
I haven't installed Java under Linux but I do recognize the error.

can't resolve symbol '__lib_malloc'

means that the linker cannot find a library, specifically libmalloc.a

This library, is part of the C/C++ language development distribution. Did you install the development components?
0
 
LVL 2

Expert Comment

by:czamudio
ID: 1221259
what are you trying to do?, install JDK ??
 more info needed!!!!
0
 

Author Comment

by:mathematics
ID: 1221260
Thank for jpk and czmadio.
After I had installed the libc5218,ldso1810 and libXt,jdk 102
I ran java or javac, it had
a error message
  /usr/local/java/bin/../bin/i586/java:
  can't resolve symbol '__libc_malloc'

Did I haven't  something  to do?


  1.How do I install Java in Linux?
  2.What is the meaning of this error message?
    How do I solve the problem?

0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:mathematics
ID: 1221261
Then I can't solve the error message
    can't resolve symbol '__libc_malloc',
when run java.
1. I find my Linux 1.2.13
2. cpio --version 2.3
   ( In REDHAT,it is required with 2.4 )
   rpm -install JDK-1.0.2.rpm
   Segmentation default
3. Why can't resolve __libc_malloc?

Now,I have the following questions:
1.Where can I get cpio ver 2.4?
2.Is it true that no unarchives rpm make
      the error message?
I am so sad about my mind.
Hope any suggestions.
I think I must sleep.
Hope you can tell me an easy rule to install Java
in Linux.
0
 
LVL 2

Accepted Solution

by:
czamudio earned 50 total points
ID: 1221262
Recomendation, upgrade to RedHat4.0 or later then use the ncftp to ftp.redhat.com then use the following command

site exec locate JDK

take not of the location of the package, then exit to your prompt
then use this:

rpm -i <location of the packacge>

remember, upgrade to a newer distribution of RedHat it's better supported and this messages will not apear again.
0
 
LVL 1

Expert Comment

by:fadl
ID: 1221263
You have probably incorrect version of libc.
There is minimum required libc version in some
README in Linux JDK package.
Michal
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Loop 6 59
eclipse shortcuts 9 54
print map entry 34 68
MySQL  on Tomcat 8 45
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question