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

Bug#361942: gij-4.1: bogus java.home property



Package: gij-4.1
Version: 4.1.0-1
Severity: important


jim@sun:~$ javac GetJVMInfo.java

jim@sun:~$ java GetJVMInfo
java.version= 1.4.2
java.vendor=  Free Software Foundation, Inc.
java.home=    /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre
jim@sun:~$ ls -la /usr/lib/jvm
ls: /usr/lib/jvm: No such file or directory

jim@sun:~$ cat GetJVMInfo.java
 class GetJVMInfo
{
  public static void main(String [] args)
   {
    System.out.println("java.version= "+System.getProperty("java.version"));
    System.out.println("java.vendor=  "+System.getProperty("java.vendor"));
    System.out.println("java.home=    "+System.getProperty("java.home"));
   }
}
The bogus java.home property makes a problem for applications such as ant
that refers to java.home

Maybe the strange "home" comes from java-gcj-compat which was used to build gij-4.1?
But the true java.home should be /usr?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-sparc64
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages gij-4.1 depends on:
di  gcj-4.1-base                  4.1.0-1    The GNU Compiler Collection (gcj b
di  libc6                         2.3.6-5    GNU C Library: Shared libraries an
di  libgcc1                       1:4.1.0-1  GCC support library
di  libgcj7                       4.1.0-1    Java runtime library for use with 
di  zlib1g                        1:1.2.3-11 compression library - runtime

gij-4.1 recommends no packages.

-- no debconf information



Reply to: