LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-04-2007, 12:02 AM   #1
HowDoIProgramIt
Member
 
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 ...


Thanks,

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

Rep: Reputation: 15
Hi,
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
HowDoIProgramIt
Member
 
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
Quote:
Originally Posted by selva146 View Post
Hi,
What is your java JRE installation directory.
/opt/jdk1.6.0_03
Quote:
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:
Code:
$ 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.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  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
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  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.

Thanks,
Larry
 
  


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
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 stuff...help needed plastiquepony Linux - Newbie 3 11-16-2001 10:21 AM

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

All times are GMT -5. The time now is 08:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration