NetBSD-Java archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: JDK/JRE 6 on NetBSD 3.0.2 ... should this work



>  On Mon, Jan 26, 2009 at 11:48 PM, Paul Newhouse 
> <newhouse%rockhead.com@localhost> wrote:
>  > I'm running:
>  >
>  >  NetBSD bigbox 3.1 NetBSD 3.1 (BIGBOX) #0: Sat Sep 29 15:19:20 PDT 2007  
> root@mailsrv:/usr/src/sys/arch/i386/compile/BIGBOX i386
>  >
>  > I built sun-jdk6 and sun-jre6 from the 2008Q4 pkgsrc.  They seem to build 
> and install without
>  > any complaints.  I can't get them t execute.  I get the following error:
>  >
>  >  #: /usr/pkg/java/sun-6/bin/java
>  >
>  >  /usr/pkg/java/sun-6/bin/java: error while loading shared libraries: 
> libjli.so: cannot open shared object file: No such file or directory
>  >
>  > Where am I going wrong?
>  >
>  > I hope none of these are conflicting?
>  >
>  > kaffe-1.1.7nb3      Virtual machine capable of running Java(tm) code
>  > jikes-1.22nb3       Java source to byte-code compiler
>  > fastjar-0.93nb3     C language version of the 'jar' archiver normally used 
> by Java
>  > sun-jre6-6.0.5nb1   Sun's Java(tm) 2 Standard Edition, Java Runtime 
> Environment (JRE) 6u5
>  > sun-jdk6-6.0.5nb1   Sun's Java(tm) 2 Standard Edition, JDK 6u5
>  > netbeans-ide-3.5.1nb2 NetBeans Java IDE
>  > java-vm-spec-2.0    The Java(TM) Virtual Machine Specification (HTML)
>  > java-lang-spec-2.0nb2 The Java(TM) Language Specification (HTML)
>  >
>  > TIA,
>  > Paul
>  
>  Can you run ldd on the java binary and see what it says?  Also, does
>  that file exist on your system?  If so, can you just add it to your
>  LD_LIBRARY_PATH before calling java?

Thanks.  Java at least tries to run now.

  #: export LD_LIBRARY_PATH=/usr/pkg/emul/linux/lib:/usr/pkg/java/sun-6/lib/i38
6/jli
 
  #: ldd /usr/pkg/java/sun-6/bin/java
  /usr/pkg/java/sun-6/bin/java:
        ld-linux.so.2 => /usr/pkg/emul/linux/lib/ld-linux.so.2
        -lc.6 => /usr/pkg/emul/linux/lib/libc.so.6
        -lpthread.0 => /usr/pkg/emul/linux/lib/libpthread.so.0
        -ljli => /usr/pkg/java/sun-6/lib/i386/jli/libjli.so
        -ldl.2 => /usr/pkg/emul/linux/lib/libdl.so.2

How much space does java need?  I'm running on a machine with 2GB of real 
memory
and 10G of swap.
 
  #: /usr/pkg/java/sun-6/bin/java
  Error occurred during initialization of VM
  Could not reserve enough space for object heap
  Could not create the Java virtual machine.

Paul



Home | Main Index | Thread Index | Old Index