Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-04-2007, 12:02 AM   #1
Registered: Nov 2006
Location: East Coast, USA (in "the great northeast")
Distribution: Custom / from source; Fedora, Debian, CentOS, Scientific; LFS.
Posts: 94

Rep: Reputation: 15
Java help needed: absolutely no output from the JDK tools, etc. ??

I'm running a 32-bit Linux distribution that I put together myself, from source. Anyone who's ever done that, or has set up a chroot jail, or done anything similar, may well have had this same problem.

In my case, I'm using GNOME on top of X 7.2 on a 2.6.23 kernel; it's a 32-bit AMD K7 processor (Athlon XP 2000+) w 2 Gb RAM, 80 Gb IDE HDD.

Most everything works, and works well. Unfortunately, I discovered two days ago that Java is not one of those things. A notable exception being Java. I have tried installing several JDKs and JREs; none of them work. At all.

For ex., if I copy the jdk .bin file to /opt, and run it, it unpacks itself and appears to have installed itself fine. But, when I ran "javac -version", absolutely nothing was written to stdout, or to stderr (no 'trap', no error messages, Xterm or console session doesn't lock up. I'm not kidding here; the tools in every JDK I've tried has done the same thing; that is, nothing. With one excption: if I run

${JAVA_HOME}/bin/java --help

I get the expected "could not create the virtual machine" error messge; if I run "${JAVA_HOME}/bin/java --help", I get textual "usage" output. And that's it. Nothing else displays - or does (I checked that, too; they all just exit virtually immediately) anything.

I've tried setting JAVA_HOME && J2RE_HOME (export JAVA_HOME=...); that did nothing. I downloaded & built strace; according to it, the javac can't find certain parts of iself, such as "libm". I can't tell for sure what yet, though, and thought I would ask before spending even more time on this little gem.

I'm at about the end of my rope here. Am I missing a file or directory? I've tried comparing my system to RedHat and Debian ones; whatever's missing, I'm not seeing it. Hopefully someone has had this same problem before and solved it (and remembers what the problem was & what they did to fix it). Help ...


Old 11-05-2007, 01:08 PM   #2
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47

Rep: Reputation: 15
What is your java JRE installation directory.

go to bin directory under that and execute java n javac

post the output
Old 11-09-2007, 06:16 PM   #3
Registered: Nov 2006
Location: East Coast, USA (in "the great northeast")
Distribution: Custom / from source; Fedora, Debian, CentOS, Scientific; LFS.
Posts: 94

Original Poster
Rep: Reputation: 15
Originally Posted by selva146 View Post
What is your java JRE installation directory.
go to bin directory under that and execute java n javac

post the output
The only output I get at all is from "java -help", which doesn't do me much good as I can't compile anything. The only other thing I get is a whole lot of nothing:
$ java
$ javac
$ ./java
$ ./javac
$ javac -version
$ javac -help
$ java -version
$ java -help
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available

    -d64          use a 64-bit data model if available
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is server,
                  because you are running on a server-class machine.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
                  set a system property
                  enable verbose output
    -version      print product version and exit
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
                  enable assertions
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
                  load native agent library by full pathname
                  load Java programming language agent, see java.lang.instrument
                  show splash screen with specified image
JAVA_HOME is set, as is PATH. I installed the same pkg on another linux system, older kernel and it installed correctly. I then ran "javac -version" in an strace session (strace -f javac -version); the output from strace is here (where javac worked)and here (where javac produced no output).

I can see, more or less, what's happening; at this point, I'm completely out of ideas to try as to why it's happening. About the only headway I've made in the last several days is that I've noticed is that if I run any of the apps in a 32-bit chroot on a 64-bit O/S install, the net effect is exactly the same.

I'd really appreciate any help anyone has to offer, with either the system I first posted about, or regarding how in the world to get Java to run in a 32-bit chroot on a 64-bit Linux install. I've yet to find complete info on the web & have tried pretty much everything I've found, but no luck.



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
Help installing the Java JDK CS_Student_DrewU Programming 2 07-14-2007 11:43 PM
compile java JDK 1.4 kernelvn *BSD 2 06-21-2005 10:42 PM
adding java jdk to path snecklifter Linux - Newbie 4 11-01-2004 03:58 PM
absolutely very new 'n needed plastiquepony Linux - Newbie 3 11-16-2001 10:21 AM > Forums > Linux Forums > Linux - Software

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

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