Java 6 & scripts

From: Wilfred Springer <>
Date: Sun, 11 Nov 2007 07:16:47 +0100


In order to fix the problems with the copyrights in the scripts, I copied
over a couple of scripts to the repository, and customized them to fit our
needs. I haven't tried the Windows batch file yet though.

I don't like the results all that much yet though. The shell script requires
you to set JAVA_HOME, which is something that - I think - wasn't required

Anyhow, while I was working on it, I ran into trouble using Java 6.

Exception in thread "main" java.lang.LinkageError: JAXB 2.0 API is being
loaded from the bootstrap classloader, but this RI (from
needs 2.1API. Use the endorsed directory mechanism to place
jaxb-api.jar in the bootstrap classloader. (See
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(
        at com.sun.xml.bind.v2.ContextFactory.createContext(
        at com.sun.xml.bind.v2.ContextFactory.createContext(
        at com.sun.xml.bind.v2.ContextFactory.createContext(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at javax.xml.bind.ContextFinder.newInstance(
        at javax.xml.bind.ContextFinder.find(
        at javax.xml.bind.JAXBContext.newInstance(
        at javax.xml.bind.JAXBContext.newInstance(

Question is how we are going to deal with this. I could be passing the
endorsed dir option, but then people using the Ant example would still be in
trouble. Would there be an easy way to work around that problem? (