[Mondrian] Problem with building mondrian

Mayur Mohite mayur.mohite at vizury.com
Tue Nov 6 07:56:42 EST 2012


Hi,

I am trying to build mondrian codebase.
I did a
"git clone https://github.com/pentaho/mondrian.git"

Then I did

export JAVA_HOME=/usr/lib/jvm/java-1.5.0/jdk1.5.0_15/
export JAVA_HOME_15=/usr/lib/jvm/java-1.5.0/jdk1.5.0_15/
export JAVA_HOME_16=/usr/lib/jvm/java-1.6.0-openjdk-amd64/
export JAVA_HOME_17=/usr/lib/jvm/java-1.7.0-openjdk-amd64/


then I got following error -
Buildfile: /home/mayur/VizuryDev/Mondrian/mondrian/build.xml

BUILD FAILED

java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:88)
    at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278)
    at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
    at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107)
    at
org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:120)
    at
org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:104)
    at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:172)
    at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:273)
    at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:178)
    at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
    at org.apache.tools.ant.Main.runBuild(Main.java:793)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Anybody having any idea why is this happening?
I had downloaded Java v1.5_15 from -
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html

Thanks!
Mayur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20121106/ea735d72/attachment.html 


More information about the Mondrian mailing list