On Wed, Jul 9, 2014 at 3:12 AM, Michal Hriň <h...@apache.org> wrote:
> > > Dňa 08.07.2014 23:02, Kay Schenk wrote / napísal(a): > > >> On 07/08/2014 11:27 AM, Michal Hriň wrote: >> >>> Hi, >>> >>> I am going through "Building guide - Step by step", and I have some >>> problem with building helpcontent2. I am on Ubuntu 12.04 and I have JDK >>> 6 and 7 installed from distribution repository and I am trying to build >>> 4.1.0 release. >>> >>> [...] >>> >>> /home/majkl/aoo-4.1.0/main/helpcontent2/unxlngx6.pro/bin/ >>> xhp_sdatabase_en-US.zip/home/majkl/aoo-4.1.0/main/ >>> helpcontent2/source/auxiliary/en-US/sdatabase.cfgtime >>> taken was 2.886 seconds >>> /usr/bin/java -cp >>> ".:../../unxlngx6.pro/class:/usr/lib/jvm/java-6-openjdk- >>> amd64/jre/lib/rt.jar:.:/home/majkl/aoo-4.1.0/main/solver/ >>> 410/unxlngx6.pro/bin/jaxp.jar:/home/majkl/aoo-4.1.0/main/ >>> solver/410/unxlngx6.pro/bin/juh.jar:/home/majkl/aoo-4.1.0/ >>> main/solver/410/unxlngx6.pro/bin/parser.jar:/home/majkl/ >>> aoo-4.1.0/main/solver/410/unxlngx6.pro/bin/xt.jar:/home/ >>> majkl/aoo-4.1.0/main/solver/410/unxlngx6.pro/bin/unoil. >>> jar:/home/majkl/aoo-4.1.0/main/solver/410/unxlngx6.pro/ >>> bin/ridl.jar:/home/majkl/aoo-4.1.0/main/solver/410/ >>> unxlngx6.pro/bin/jurt.jar:/home/majkl/aoo-4.1.0/main/ >>> solver/410/unxlngx6.pro/bin/xmlsearch.jar:/home/majkl/aoo- >>> 4.1.0/main/solver/410/unxlngx6.pro/bin/LuceneHelpWrapper.jar:/home/ >>> majkl/aoo-4.1.0/main/solver/410/unxlngx6.pro/bin/ >>> HelpIndexerTool.jar:/home/majkl/aoo-4.1.0/main/solver/ >>> 410/unxlngx6.pro/bin/lucene-core-2.9.4-dev.jar:/home/ >>> majkl/aoo-4.1.0/main/solver/410/unxlngx6.pro/bin/lucene- >>> analyzers-2.9.4-dev.jar" >>> com.sun.star.help.HelpIndexerTool -lang en-US -mod sdatabase -zipdir >>> ../../unxlngx6.pro/misc/ziptmpsdatabase_en-US -o >>> ../../unxlngx6.pro/bin/sdatabase_en-US.zip.unxlngx6.pro >>> Exception in thread "main" java.lang.UnsupportedClassVersionError: >>> com/sun/star/help/HelpIndexerTool : Unsupported major.minor version 51.0 >>> at java.lang.ClassLoader.defineClass1(Native Method) >>> at java.lang.ClassLoader.defineClass(ClassLoader.java:643) >>> at >>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) >>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) >>> at java.net.URLClassLoader.access$000(URLClassLoader.java:73) >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:212) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:205) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:323) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:268) >>> Could not find the main class: com.sun.star.help.HelpIndexerTool. >>> Program will exit. >>> dmake: Error code 1, while making >>> '../../unxlngx6.pro/bin/sdatabase_en-US.zip' >>> >>> 1 module(s): >>> helpcontent2 >>> need(s) to be rebuilt >>> >>> Reason(s): >>> >>> ERROR: error 65280 occurred while making >>> /home/majkl/aoo-4.1.0/main/helpcontent2/util/sdatabase >>> >>> Ideas? >>> >> >> >> > Thanks! > > After forcing Java to v. 7, build was sucessful. I wonder why configure > script recognized Java 6 when both was installed. Maybe I have ghost in the > machine. yay! No, no ghost. Somewhere on your system, you have java6 set as your default java, and that's why configure picked it up instead of 7. Just some detective work needed. :) > > > > From this output, it looks like your java version for this build was >> java 6. I think we're using 7 as the default for the builds but I'm not >> positive this is causing your problem. However, you might try it and >> explicitly declare it as part of your config options. >> >> --with-java >> --with-jdk-home=(path to your java 7 version) >> >> > Is somewhere in the universe complete list of these build parameters ? > Can you point me there ? > > > My java version is java version "1.7.0_51" (openJDK) and I did not >> experience any problems with the build I did yesterday at this section. >> >> Unfortunately, we don't seem to have source for HelpIndexerTool (just >> the class files) so it's difficult to tell what's going on exactly. >> >> >> >>> Regards, >>> Michal Hriň >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org >>> For additional commands, e-mail: dev-h...@openoffice.apache.org >>> >>> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org > For additional commands, e-mail: dev-h...@openoffice.apache.org > > -- ------------------------------------------------------------------------------------------------- MzK "To be trusted is a greater compliment than being loved." -- George MacDonald