Thanks for this, Lou. It seems that _something_ I have done to the build system has resulted in us requiring JDK 1.6. Not sure what. Perhaps Ant 1.7 requires it, or perhaps some of the updated .jars require it. I don't think this is too much of a problem since Sun has declared 1.5 at "end of life" as of last November; but perhaps I am wrong?
I have a Leopard (10.5.8) here which is up-to-date on all it's software updates. I can see that JDK 1.6 is "available" it is just not the default java that you get. I had to open /Applications/Utilities/Java Preferences and drag Java SE 6 to the top of both lists in order to make my command-line java default to 1.6 [Have I told you how much I love the Java version number scheme?] I think that is the more orthodox way to get Leopard to run JDK 1.6; but if you need to leave you default java alone, setting your JAVA_HOME for just your OpenLaszlo builds as you did is a reasonable alternative. As to not being able to build the docs, it looks like you need to allocate more memory to java. I run with: export JAVA_OPTS="-Xmx768m" on my machine, although I can't say I have built the docs lately. On 2010-02-19, at 07:05, Lou Iorio wrote: > In the section "Get Java", I added this line: > > "If you are running Mac OS X 10.5, you can update to Java 1.6/JDK 6 here: Java > for Mac OS X 10.5 Update > 1<http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_1> > ." > > (I'm running Mac OS X 10.5.8) > > I changed JAVA_HOME > to /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/ > and I was able to do a successful build. > > The previous paragraph has this sentence: "If you have problems, see the > Gotchas section at the end of this document.", > but I don't see any mention of Java for the Mac in that section. > > In addition, the first sentence of this section says: As of OpenLaszlo 5.0, > we recommend using Java 1.6/JDK 6." > Is it really recommended, or is it required? I could not do a successful > build until I updated to JDK 6. > > I still can't build the doc: the build dies here: > > compile: > [javac] Compiling 565 source files to > /Users/lou/src/svn/openlaszlo/trunk/WEB-INF/lps/server/build > [javac] > [javac] > [javac] The system is out of resources. > [javac] Consult the following stack trace for details. > [javac] java.lang.OutOfMemoryError: Java heap space > [javac] at > com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385) > [javac] at com.sun.tools.javac.code.Scope.enter(Scope.java:196) > [javac] at com.sun.tools.javac.code.Scope.enter(Scope.java:183) > [javac] at > com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132) > [javac] at > com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:538) > [javac] at > com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495) > [javac] at > com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) > [javac] at > com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399) > [javac] at > com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512) > [javac] at > com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446) > [javac] at > com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) > [javac] at > com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819) > [javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) > [javac] at > com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758) > [javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:451) > [javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:429) > [javac] at > com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) > [javac] at > com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) > [javac] at com.sun.tools.javac.main.Main.compile(Main.java:353) > [javac] at com.sun.tools.javac.main.Main.compile(Main.java:279) > [javac] at com.sun.tools.javac.main.Main.compile(Main.java:270) > [javac] at com.sun.tools.javac.Main.compile(Main.java:69) > [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [javac] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [javac] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [javac] at java.lang.reflect.Method.invoke(Method.java:597) > [javac] at > org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56) > [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065) > [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) > [javac] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > [javac] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) > [javac] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >> From my .profle: > > JAVA_OPTS="-Xmx1000m" > export JAVA_OPTS > > The Java version I'm running: > > ~ $ java -version > java version "1.6.0_17" > Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125) > Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) > ~ $ javac -version > javac 1.6.0_17 > > > Any hints would be appreciated. > > Lou (former doc guy)
