This section attempts to answer your initial questions when you're trying to solve problems with the Blackdown JDK.
$Id: 04-trouble.sgml,v 1.2 1998/11/13 02:50:16 stevemw Exp $
CLASSPATH.:$JAVA_HOME/lib/classes.zip.PATH$JAVA_HOME/bin -- ahead of /usr/bin
where Kaffe often lives, please!JAVA_HOMEJDK_HOMEAfter running
javac HelloWorld.java
and seeing this message:
Failed to open object 'HelloWorld/java'
Other people have reported error messages such as these:
$ javac
Failed to locate native library in path:
/usr/lib
Aborting.
Daniele Lugli <danlugli@tin.it> reports:
...The javac which was giving the problem was /usr/bin/javac, that is the kaffe javac. Now that I moved $JAVA_HOME/bin ahead in my $PATH, both javac and java work, and I see a wonderful "Hello, World!".In other words, always check for conflicting environment variable problems. For details on how to do this, see section Environment Variables.
A very common cause for problems with Kaffe is having
/usr/bin in your path ahead of
$JAVA_HOME/bin.
Rich McClellan <richmc@entropy.ucsc.edu> reports that running the Blackdown JDK 1.1.5v7libc works better than the glibc version, and forwards this advice from Alexander V. Konstantinou <akonstan@cs.columbia.edu>:
The problem is related to naming in /etc/hosts. This is a known Java problem in picking up the right name for the interface. Change the localhost name to your real machine name. This may cause problems with talk though ...
Slackware users have found that removing the libdl.so.*
and libc.so.* files
from $JAVA_HOME/lib/i386/green_threads takes care of
this problem. We don't know what causes it yet, though.
You have two strong candidates as causes for this problem.
java -ms16m -mx64m ....
From the JDK documentation:
-ms<number> set the initial Java heap size -mx<number> set the maximum Java heap size
free command
can help you there. See the manual page for free(1). For the
current minimum system requirements, see the discussion of them
in section
What System Configuration do I Need to Run the JDK?.See the manual pages for swapon(8) and mkswap(8).
Karl Asha has setup a Jitterbug problem-report form at http://www.blackdown.org/cgi-bin/jdk. Please report problems by filling this in as best you can. There are some guidelines for this in section What Should I Report?.
Before submitting a bug, you may be able to help by visiting Javasoft's Bug Parade at http://developer.java.sun.com/developer/bugParade/bugs/ and checking for related problems. If you mention a bug from a JDC bug ID in your problem report, it can help Blackdown JDK developers. At this time, you will have to join the JDC in order to search this database.
As usual, feel free to open a discussion about your problems on the java-linux@java.blackdown.org mailing list.
Although it may not seem so, solving Linux JDK problems can sometimes be difficult because of the large variation of systems that are in use. Please do your best when reporting a bug to tell us all about your system, the code you're running, and anything else that can help. Here's a checklist of items to mention.
java -version to see.ldconfig -D 2>&1 | grep libc | tail -1 to see.ldconfig -D 2>&1 | grep ld | tail -1 to see.xdpyinfo | grep 'release number' to see.uname -r to see.Try running the JDK java, appletviewer, and javac wrapper scripts like this:
$ sh -x $JAVA_HOME/bin/java -verbose -verbosegc -cs -verify ...
$ strace -f -s 256 $JAVA_HOME/bin/java ...
We've created a troubleshooting information collection script that you can download from http://www.place.org/~stevemw/java/FAQ/java-linux-info.sh and follow the instructions at the top of it. Read the output carefully; it's full of hints that can help you solve the problem on your own.