Bug#297665: libant1.6-java: FTBFS: Cannot find sablevm libs

Daniel Schepler Daniel Schepler <schepler@math.berkeley.edu>, 297665@bugs.debian.org
Tue Mar 1 23:54:02 2005


Package: libant1.6-java
Severity: serious
Version: 1.6.2-2

>From my build log, using pbuilder in an i386 chroot:

...
/bin/sh bootstrap.sh
Warning: JAVA_HOME environment variable not set.
  If build fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.
... Bootstrapping Ant Distribution
... Compiling Ant Classes

Found 1 system error and issued 1 warning:

*** Semantic Warning: I/O warning: "No such file or directory" while trying to open /usr/share/sablevm/sablevm-classpath.


*** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "java.lang" in: 
                /usr/share/sablevm/sablevm-classpath
                /usr/share/java/jaxp-1.2.jar
                build/classes
                src/main
                lib/xercesImpl.jar
                lib/xml-apis.jar
                /usr/share/java/junit.jar
                .

... Failed compiling Ant classes !
make: *** [debian/build-stamp] Error 1

Changing that path to /usr/share/sablevm-classpath/libclasspath.jar in
debian/rules, I then get a NullPointerException:

...
prepare:
java.lang.NullPointerException
   at java.text.DecimalFormatSymbols.setCurrency (DecimalFormatSymbols.java:397)
   at java.text.DecimalFormatSymbols.DecimalFormatSymbols (DecimalFormatSymbols.java:151)
   at java.text.NumberFormat.computeInstance (NumberFormat.java:327)
   at java.text.NumberFormat.getNumberInstance (NumberFormat.java:456)
   at java.text.NumberFormat.getInstance (NumberFormat.java:381)
   at java.text.MessageFormatElement.setLocale (MessageFormat.java:90)
   at java.text.MessageFormat.scanFormat (MessageFormat.java:314)
   at java.text.MessageFormat.applyPattern (MessageFormat.java:335)
   at java.text.MessageFormat.formatInternal (MessageFormat.java:465)
   at java.text.MessageFormat.format (MessageFormat.java:403)
   at java.text.MessageFormat.format (MessageFormat.java:518)
   at java.text.Format.format (Format.java:101)
   at org.apache.tools.ant.util.DateUtils.formatElapsedTime (DateUtils.java:132)
   at org.apache.tools.ant.DefaultLogger.formatTime (DefaultLogger.java:276)
   at org.apache.tools.ant.DefaultLogger.buildFinished (DefaultLogger.java:156)
   at org.apache.tools.ant.Project.fireBuildFinished (Project.java:1796)
   at org.apache.tools.ant.Main.runBuild (Main.java:693)
   at org.apache.tools.ant.Main.startAnt (Main.java:188)
   at org.apache.tools.ant.Main.start (Main.java:151)
   at org.apache.tools.ant.Main.main (Main.java:241)
   at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
   at java.lang.VirtualMachine.main (VirtualMachine.java:108)
... Failed Building Ant Distribution !

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.9-9-amd64-k8
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)

-- 
Daniel Schepler              "Please don't disillusion me.  I
schepler@math.berkeley.edu    haven't had breakfast yet."
                                 -- Orson Scott Card