DaCapo xalan fails with Apache Harmony class library

Description

Running DaCapo xalan fails with:

  •  

    •  

      • Incorrect version of Xalan in use!

      • Should be 'Xalan Java 2.4.1',

      • actually is 'Xalan Java 2.7.0').

      • To fix this, extract the included xalan.jar:

      • unzip components/dacapo/2006-10-MR2/dacapo.jar xalan.jar

      • and override your jvm's boot classpath:

      • java -Xbootclasspath/p:xalan.jar [...]
        java.lang.reflect.InvocationTargetException
        java.lang.reflect.InvocationTargetException
        at .<invisible method>(Unknown Source)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:131)
        at java.lang.Throwable.<init>(Throwable.java:77)
        at java.lang.Throwable.<init>(Throwable.java:99)
        at java.lang.Exception.<init>(Exception.java:61)
        at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:49)
        at java.lang.reflect.VMCommonLibrarySupport.construct(VMCommonLibrarySupport.java:437)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:275)
        at dacapo.TestHarness.runBenchmark(TestHarness.java:263)
        at dacapo.TestHarness.main(TestHarness.java:235)
        at Harness.main(Harness.java:5)
        Caused by: dacapo.DacapoException: Please fix your bootclasspath and try again.
        at .<invisible method>(Unknown Source)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:131)
        at java.lang.Throwable.<init>(Throwable.java:77)
        at java.lang.Throwable.<init>(Throwable.java:87)
        at java.lang.Exception.<init>(Exception.java:48)
        at dacapo.DacapoException.<init>(DacapoException.java:16)
        at dacapo.xalan.XalanHarness.<init>(XalanHarness.java:140)
        at .<invisible method>(Unknown Source)
        at org.jikesrvm.runtime.Reflection.invoke(Reflection.java:132)
        at org.jikesrvm.runtime.Reflection.invoke(Reflection.java:45)
        at java.lang.reflect.VMCommonLibrarySupport.construct(VMCommonLibrarySupport.java:435)
        ... 4 more

Following the advice fails with:

./dist/prototype_x86_64-linux/rvm -Xbootclasspath/p:xalan.jar -jar components/dacapo/2006-10-MR2/dacapo.jar xalan
java.lang.NoClassDefFoundError: Could not find the class -Xbootclasspath.p:xalan.jar:
-Xbootclasspath.p:xalan.jar

I believe the classpath can be hand coded to work around this, but it shouldn't be necessary and we don't appear to support bootclasspath properly.

Environment

Jikes RVM r14855 Harmony r681495 prototype configuration SuSE Linux 10.3 x86-64

Status

Assignee

Imported User 21

Reporter

Ian Rogers

Labels

None

Components

Fix versions

Affects versions

Priority

Medium
Configure