From Ulf.Zibis at gmx.de Tue Aug 11 01:32:07 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Tue, 11 Aug 2009 10:32:07 +0200 Subject: javac CRASH In-Reply-To: <4A80BA63.7010606@univ-mlv.fr> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> Message-ID: <4A812C87.4030001@gmx.de> R?mi (and all), (1) My initial question was, if somebody could provide me a patch (here: langtools.jar). As it's always difficult. to run the build on Windows, I assumed, there is somebody out there who has ready configured his system, to run the build for langtools.jar. (2) Remember, there is no bash on Windows. I don't have any idea, what "export" could be translated to, to run it on Windows. -Ulf Am 11.08.2009 02:25, R?mi Forax schrieb: > > as said, set the bootstrap location, > with bash: > export ALT_BOOTDIR=path_to_a_binary_jdk6or7 > > R?mi > >> >> >> Am 04.08.2009 15:17, R?mi Forax schrieb: >>> Le 04/08/2009 13:07, Ulf Zibis a ?crit : >>>> Maurizio, >>>> >>>> much thanks for the additional info. >>>> >>>> I like to avoid going back to b63. >>>> If the fix will not go into b68, could you please provide a binary >>>> patch for b67 (or b68) (Windows version)? >>>> I can wait for release of b68, but not for b69, as I'm on vacation >>>> until Aug. 10. >>>> >>>> Thanks in advance, >>>> >>>> -Ulf >>> >>> you can do it by yourself, >>> clone the langtools repository, it can be built with ant, so just >>> type ant >>> in the directory "make", it will create a tools.jar. >>> Now remplace the tools.jar of your binary build by this new one. >>> >>> cheers, >>> R?mi >>> >>>> >>>> >>>> Am 04.08.2009 12:20, Maurizio Cimadamore schrieb: >>>>> Ulf Zibis wrote: >>>>>> Maurizio, >>>>>> >>>>>> much thanks for the fast info. >>>>>> >>>>>> Will this fix be included in next build b68 ??? >>>>>> Hopefully ! >>>>> Not sure if it will make into b68 - but certainly it will go into >>>>> b69 (depends on the integration process). The fix is already >>>>> available in the langtools repository used for development >>>>> (http://hg.openjdk.java.net/jdk7/tl/langtools). >>>>> >>>>> Maurizio >>>>>> >>>>>> -Ulf >>>>>> >>>>>> >>>>>> Am 04.08.2009 11:08, Maurizio Cimadamore schrieb: >>>>>>> Ulf Zibis wrote: >>>>>>>> See: >>>>>>>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6868135 --> >>>>>>>> java.lang.NullPointerException from compiler (1.7.0-ea) >>>>>>>> >>>>>>>> -Ulf >>>>>>>> >>>>>>>> >>>>>>> Hi Ulf, >>>>>>> this is a type annotation (JSR 308) bug that has been recently >>>>>>> fixed - it is a duplicate of 6861837. >>>>>>> >>>>>>> Regards >>>>>>> Maurizio >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>> >>> >>> >> > > From Ulf.Zibis at gmx.de Tue Aug 11 02:06:32 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Tue, 11 Aug 2009 11:06:32 +0200 Subject: javac CRASH In-Reply-To: <4A80C049.2020202@sun.com> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> Message-ID: <4A813498.3010004@gmx.de> Jonathan, thanks for additional help. Now I tried: C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans 6.7.1\java2\ant\ bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 ... but this didn't make any difference. I guess, you mean, to set or overwrite the boot.java.home property in "build.properties". So I set in path_to_jdk7_sources\langtools\make\build.properties: boot.java.home = C:/Programme/Java/jdk1.6.0_14 I started build from NetBeans (path_to_jdk7_sources\langtools\make\netbeans\langtools\build.xml): clean: Deleting directory C:\Projects\OpenJDK7\langtools\build Created dir: C:\Projects\OpenJDK7\langtools\build\toolclasses Compiling 1 source file to C:\Projects\OpenJDK7\langtools\build\toolclasses Building all tools Compiling 2 source files to C:\Projects\OpenJDK7\langtools\build\toolclasses build-bootstrap-javac: Created dir: C:\Projects\OpenJDK7\langtools\build\bootstrap\gensrc Created dir: C:\Projects\OpenJDK7\langtools\build\bootstrap\classes Generating 7 resource files to C:\Projects\OpenJDK7\langtools\build\bootstrap\gensrc Copying 1 file to C:\Projects\OpenJDK7\langtools\build\bootstrap\gensrc Generating 1 resource files to C:\Projects\OpenJDK7\langtools\build\bootstrap\gensrc Compiling 8 source files to C:\Projects\OpenJDK7\langtools\build\bootstrap\classes Compiling 271 source files to C:\Projects\OpenJDK7\langtools\build\bootstrap\classes Created dir: C:\Projects\OpenJDK7\langtools\build\bootstrap\lib Building jar: C:\Projects\OpenJDK7\langtools\build\bootstrap\lib\javac.jar Created dir: C:\Projects\OpenJDK7\langtools\build\bootstrap\bin Copying 1 file to C:\Projects\OpenJDK7\langtools\build\bootstrap\bin build-javac: Created dir: C:\Projects\OpenJDK7\langtools\build\gensrc Created dir: C:\Projects\OpenJDK7\langtools\build\classes Generating 7 resource files to C:\Projects\OpenJDK7\langtools\build\gensrc Copying 1 file to C:\Projects\OpenJDK7\langtools\build\gensrc Generating 1 resource files to C:\Projects\OpenJDK7\langtools\build\gensrc Compiling 8 source files to C:\Projects\OpenJDK7\langtools\build\classes javac: invalid target release: 7 Usage: javac use -help for a list of possible options C:\Projects\OpenJDK7\langtools\make\netbeans\langtools\build.xml:67: The following error occurred while executing this line: C:\Projects\OpenJDK7\langtools\make\build.xml:192: The following error occurred while executing this line: C:\Projects\OpenJDK7\langtools\make\build.xml:424: The following error occurred while executing this line: C:\Projects\OpenJDK7\langtools\make\build.xml:465: The following error occurred while executing this line: C:\Projects\OpenJDK7\langtools\make\build.xml:518: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 23 seconds) Then I tried: target.java.home = C:/Programme/Java/jdk1.7.0 and later: boot.javac.target = 7 ... but nothing helped. -Ulf Am 11.08.2009 02:50, Jonathan Gibbons schrieb: > R?mi , Ulf, > > If you're driving Ant directly, you want to set the Ant property > boot.java.home, > not the Makefile variable ALT_BOOTDIR. > ant -Dboot.java.home=path-to-jdk6or7 more-args.... > > The path should be to the root of the installed JDK, not any of its > subdirectories. > For example, if you've installed JDK 1.7 in C:\opt\jdk\1.7.0 then use > ant -Dboot.java/home=C:/opt/jdk/1.7.0 more-args... > > -- Jon > > > > R?mi Forax wrote: >> Le 11/08/2009 01:58, Ulf Zibis a ?crit : >>> R?mi, thanks. >>> >>> I just tried it, but got errors: >>> >>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>> 6.7.1\java2\ant\bin\ant" >>> Buildfile: build.xml >>> >>> -def-check: >>> >>> -check-boot.java.home: >>> >>> BUILD FAILED >>> C:\Projects\OpenJDK7\langtools\make\build.xml:370: The following >>> error occurred >>> while executing this line: >>> C:\Projects\OpenJDK7\langtools\make\build.xml:737: Cannot locate >>> bootstrap java: >>> please set boot.java.home to its location >>> >>> Total time: 1 second >>> >>> >>> -Ulf >> >> as said, set the bootstrap location, >> with bash: >> export ALT_BOOTDIR=path_to_a_binary_jdk6or7 >> >> R?mi >> >>> >>> >>> Am 04.08.2009 15:17, R?mi Forax schrieb: >>>> Le 04/08/2009 13:07, Ulf Zibis a ?crit : >>>>> Maurizio, >>>>> >>>>> much thanks for the additional info. >>>>> >>>>> I like to avoid going back to b63. >>>>> If the fix will not go into b68, could you please provide a binary >>>>> patch for b67 (or b68) (Windows version)? >>>>> I can wait for release of b68, but not for b69, as I'm on vacation >>>>> until Aug. 10. >>>>> >>>>> Thanks in advance, >>>>> >>>>> -Ulf >>>> >>>> you can do it by yourself, >>>> clone the langtools repository, it can be built with ant, so just >>>> type ant >>>> in the directory "make", it will create a tools.jar. >>>> Now remplace the tools.jar of your binary build by this new one. >>>> >>>> cheers, >>>> R?mi >>>> >>>>> >>>>> >>>>> Am 04.08.2009 12:20, Maurizio Cimadamore schrieb: >>>>>> Ulf Zibis wrote: >>>>>>> Maurizio, >>>>>>> >>>>>>> much thanks for the fast info. >>>>>>> >>>>>>> Will this fix be included in next build b68 ??? >>>>>>> Hopefully ! >>>>>> Not sure if it will make into b68 - but certainly it will go into >>>>>> b69 (depends on the integration process). The fix is already >>>>>> available in the langtools repository used for development >>>>>> (http://hg.openjdk.java.net/jdk7/tl/langtools). >>>>>> >>>>>> Maurizio >>>>>>> >>>>>>> -Ulf >>>>>>> >>>>>>> >>>>>>> Am 04.08.2009 11:08, Maurizio Cimadamore schrieb: >>>>>>>> Ulf Zibis wrote: >>>>>>>>> See: >>>>>>>>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6868135 --> >>>>>>>>> java.lang.NullPointerException from compiler (1.7.0-ea) >>>>>>>>> >>>>>>>>> -Ulf >>>>>>>>> >>>>>>>>> >>>>>>>> Hi Ulf, >>>>>>>> this is a type annotation (JSR 308) bug that has been recently >>>>>>>> fixed - it is a duplicate of 6861837. >>>>>>>> >>>>>>>> Regards >>>>>>>> Maurizio >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> > > From Jonathan.Gibbons at Sun.COM Tue Aug 11 07:49:59 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 07:49:59 -0700 Subject: javac CRASH In-Reply-To: <4A813E03.4000702@univ-mlv.fr> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> Message-ID: <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> R?mi, Thanks for the heads up. I'll check this out. It is still the case that you should only need 1.6 to build langtools. -- Jon On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: > Le 11/08/2009 11:06, Ulf Zibis a ?crit : >> Jonathan, >> >> thanks for additional help. >> >> Now I tried: >> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >> 6.7.1\java2\ant\ >> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 > > I've noticed that. > You have to run ant with jdk7. > > JAVA_HOME=C:/Programme/Java/jdk1.7.0 > ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 > > Jon, it seems the ant build script need be updated because > we are not able to compile with jdk6 anymore. > The bootstrap javac/javap/etc should be built with -source 1.6 - > target 1.6. > > R?mi From forax at univ-mlv.fr Tue Aug 11 02:46:43 2009 From: forax at univ-mlv.fr (=?ISO-8859-1?Q?R=E9mi_Forax?=) Date: Tue, 11 Aug 2009 11:46:43 +0200 Subject: javac CRASH In-Reply-To: <4A813498.3010004@gmx.de> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> Message-ID: <4A813E03.4000702@univ-mlv.fr> Le 11/08/2009 11:06, Ulf Zibis a ?crit : > Jonathan, > > thanks for additional help. > > Now I tried: > C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans > 6.7.1\java2\ant\ > bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 I've noticed that. You have to run ant with jdk7. JAVA_HOME=C:/Programme/Java/jdk1.7.0 ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 Jon, it seems the ant build script need be updated because we are not able to compile with jdk6 anymore. The bootstrap javac/javap/etc should be built with -source 1.6 -target 1.6. R?mi From Ulf.Zibis at gmx.de Tue Aug 11 08:31:52 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Tue, 11 Aug 2009 17:31:52 +0200 Subject: javac CRASH In-Reply-To: <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> Message-ID: <4A818EE8.6030307@gmx.de> Jon, that would be great. I've found out a solution, but I'm not sure, if this is as designed. In path_to_jdk7_sources\langtools\make\build.properties I set: boot.java.home = C:/Programme/Java/jdk1.6.0_14 target.java.home = C:/Programme/Java/jdk1.7.0 javac.source = 6 javac.target = 6 I'm wondering, that there is no ...\make\build.properties file in tl/jdk tree. Maybe you like to have a look on ...\make\netbeans\charset\* in my patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? -Ulf Am 11.08.2009 16:49, Jonathan Gibbons schrieb: > R?mi, > > Thanks for the heads up. I'll check this out. It is still the case > that you should only need 1.6 to build langtools. > > -- Jon > > > > On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: > >> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>> Jonathan, >>> >>> thanks for additional help. >>> >>> Now I tried: >>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>> 6.7.1\java2\ant\ >>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >> >> I've noticed that. >> You have to run ant with jdk7. >> >> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >> >> Jon, it seems the ant build script need be updated because >> we are not able to compile with jdk6 anymore. >> The bootstrap javac/javap/etc should be built with -source 1.6 >> -target 1.6. >> >> R?mi > > From Jonathan.Gibbons at Sun.COM Tue Aug 11 08:59:52 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 08:59:52 -0700 Subject: javac CRASH In-Reply-To: <4A818EE8.6030307@gmx.de> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> Message-ID: Ulf, Your settings for boot.java.home and target.java.home look OK. The intent of the build is that while building the bootstrap compiler, the settings for boot.javac.source and boot.javac.target should be active and these are correctly set to 6 in langtools/make/ build.properties. I will investigate why these might not be in use later today, when I have easy access to a Windows machine. Separately, I also note that the intent is that you should not *need* to edit langtools/make/build.properties, although it is not incorrect to do so. But, it can lead to accidents if you might be committing and pushing changes. To minimize that risk, you can provide/override values in a number of ways: -- on the Ant command line (if you invoke Ant directly) -- in NetBeans, in the Properties box under Tools> Options> Miscellaneous> Ant -- in a new unmanaged file langtools/build.properties (note no make/ component) -- in ${user.home}/.openjdk/langtools-build.properties -- in ${user.home}/.openjdk/build.properties The last two choices allow you to set values to be shared by multiple repositories. There is no make/build.properties in the jdk/ repository because that repository uses "make" instead of "ant" for building. To build the jdk repository, you will need either MKS or Cygwin installed on your system. For more info, see the notes on the OpenJDK web pages. There are NetBeans projects for selected parts of the jdk/ to make it easy to work on small subsystems. However, I don't believe those (NetBeans) projects are being actively maintained at this point. [This does not apply to the langtools/ files. ] -- Jon On Aug 11, 2009, at 8:31 AM, Ulf Zibis wrote: > Jon, > > that would be great. > > I've found out a solution, but I'm not sure, if this is as designed. > In path_to_jdk7_sources\langtools\make\build.properties I set: > boot.java.home = C:/Programme/Java/jdk1.6.0_14 > target.java.home = C:/Programme/Java/jdk1.7.0 > javac.source = 6 > javac.target = 6 > > I'm wondering, that there is no ...\make\build.properties file in tl/ > jdk tree. > > Maybe you like to have a look on ...\make\netbeans\charset\* in my > patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? > > -Ulf > > > > Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >> R?mi, >> >> Thanks for the heads up. I'll check this out. It is still the case >> that you should only need 1.6 to build langtools. >> >> -- Jon >> >> >> >> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >> >>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>> Jonathan, >>>> >>>> thanks for additional help. >>>> >>>> Now I tried: >>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>> 6.7.1\java2\ant\ >>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>> >>> I've noticed that. >>> You have to run ant with jdk7. >>> >>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>> >>> Jon, it seems the ant build script need be updated because >>> we are not able to compile with jdk6 anymore. >>> The bootstrap javac/javap/etc should be built with -source 1.6 - >>> target 1.6. >>> >>> R?mi >> >> > From Jonathan.Gibbons at Sun.COM Tue Aug 11 11:28:38 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 11:28:38 -0700 Subject: javac CRASH In-Reply-To: <4A818EE8.6030307@gmx.de> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> Message-ID: <4A81B856.7000702@sun.com> Ulf, R?mi, I have found an issue in the langtools/make/build.xml file that is likely the cause of the problems you are having. There are references to @{javac.java.home}/bin/javac which look suspect. I suspect they should be javac.exe on Windows. I will post a fix once I have one and have verified it for plain invocation from the Windows command shell and from Cygwin. -- Jon Ulf Zibis wrote: > Jon, > > that would be great. > > I've found out a solution, but I'm not sure, if this is as designed. > In path_to_jdk7_sources\langtools\make\build.properties I set: > boot.java.home = C:/Programme/Java/jdk1.6.0_14 > target.java.home = C:/Programme/Java/jdk1.7.0 > javac.source = 6 > javac.target = 6 > > I'm wondering, that there is no ...\make\build.properties file in > tl/jdk tree. > > Maybe you like to have a look on ...\make\netbeans\charset\* in my > patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? > > -Ulf > > > > Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >> R?mi, >> >> Thanks for the heads up. I'll check this out. It is still the case >> that you should only need 1.6 to build langtools. >> >> -- Jon >> >> >> >> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >> >>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>> Jonathan, >>>> >>>> thanks for additional help. >>>> >>>> Now I tried: >>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>> 6.7.1\java2\ant\ >>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>> >>> I've noticed that. >>> You have to run ant with jdk7. >>> >>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>> >>> Jon, it seems the ant build script need be updated because >>> we are not able to compile with jdk6 anymore. >>> The bootstrap javac/javap/etc should be built with -source 1.6 >>> -target 1.6. >>> >>> R?mi >> >> > From Jonathan.Gibbons at Sun.COM Tue Aug 11 11:51:25 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 11:51:25 -0700 Subject: javac CRASH In-Reply-To: <4A81B856.7000702@sun.com> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> <4A81B856.7000702@sun.com> Message-ID: <4A81BDAD.8050007@sun.com> Removed core-libs-dev. The issue is that in a couple of places a default value for javac.bootclasspath is set that includes -J-Xbootclasspath. When the value is finally used, -J-Xbootclasspath is again included. The fix is to remove the use of -J-Xbootclasspath/p: from the default settings for javac.bootclasspath. -- Jon Jonathan Gibbons wrote: > Ulf, R?mi, > > I have found an issue in the langtools/make/build.xml file that is > likely the cause of the problems you are having. > There are references to @{javac.java.home}/bin/javac which look > suspect. I suspect they should be javac.exe > on Windows. > > I will post a fix once I have one and have verified it for plain > invocation from the Windows command shell and > from Cygwin. > > -- Jon > > > Ulf Zibis wrote: >> Jon, >> >> that would be great. >> >> I've found out a solution, but I'm not sure, if this is as designed. >> In path_to_jdk7_sources\langtools\make\build.properties I set: >> boot.java.home = C:/Programme/Java/jdk1.6.0_14 >> target.java.home = C:/Programme/Java/jdk1.7.0 >> javac.source = 6 >> javac.target = 6 >> >> I'm wondering, that there is no ...\make\build.properties file in >> tl/jdk tree. >> >> Maybe you like to have a look on ...\make\netbeans\charset\* in my >> patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? >> >> -Ulf >> >> >> >> Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >>> R?mi, >>> >>> Thanks for the heads up. I'll check this out. It is still the case >>> that you should only need 1.6 to build langtools. >>> >>> -- Jon >>> >>> >>> >>> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >>> >>>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>>> Jonathan, >>>>> >>>>> thanks for additional help. >>>>> >>>>> Now I tried: >>>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>>> 6.7.1\java2\ant\ >>>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>> >>>> I've noticed that. >>>> You have to run ant with jdk7. >>>> >>>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>> >>>> Jon, it seems the ant build script need be updated because >>>> we are not able to compile with jdk6 anymore. >>>> The bootstrap javac/javap/etc should be built with -source 1.6 >>>> -target 1.6. >>>> >>>> R?mi >>> >>> >> > From Ulf.Zibis at gmx.de Tue Aug 11 14:58:05 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Tue, 11 Aug 2009 23:58:05 +0200 Subject: javac CRASH In-Reply-To: References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> Message-ID: <4A81E96D.5050609@gmx.de> Jon, thanks for 1st clarification. I have bootstrap.jdk=C:/Programme/Java/jdk1.7.0 in ${user.home}/.openjdk/build.properties instead of boot.javac.target. Why 2 different names for the same thing? So I guess, settings for boot.javac.source and boot.javac.target should be better located in ${user.home}/.openjdk/langtools-build.properties, than in ${user.home}/.openjdk/build.properties ? For NetBeans "Clean and Build" settings for boot.javac.source and boot.javac.target in ${user.home}/.openjdk/*build.properties don't seem to be necessary, and regrettably settings for: javac.source = 6 javac.target = 6 don't work, either in make/netbeans/langtools/nbproject/private/langtools.properties. I had to set them in build.properties. I'm not happy to use NetBeans Properties box under Tools> Options> Miscellaneous> Ant, because those settings are for ALL NetBeans projects. IMO best location would be: make/netbeans/langtools/nbproject/private/langtools.properties. In make/netbeans/langtools/build.xml they should be loaded before: Please add NetBeans project specific hints in make/build.properties. ... Am 11.08.2009 17:59, Jonathan Gibbons schrieb: > Ulf, > > Your settings for boot.java.home and target.java.home look OK. > > The intent of the build is that while building the bootstrap compiler, > the settings for boot.javac.source and boot.javac.target should be > active and these are correctly set to 6 in > langtools/make/build.properties. I will investigate why these might > not be in use later today, when I have easy access to a Windows machine. > > Separately, I also note that the intent is that you should not *need* > to edit langtools/make/build.properties, although it is not incorrect > to do so. But, it can lead to accidents if you might be committing and > pushing changes. To minimize that risk, you can provide/override > values in a number of ways: > -- on the Ant command line (if you invoke Ant directly) > -- in NetBeans, in the Properties box under Tools> Options> > Miscellaneous> Ant > -- in a new unmanaged file langtools/build.properties (note no make/ > component) > -- in ${user.home}/.openjdk/langtools-build.properties > -- in ${user.home}/.openjdk/build.properties > The last two choices allow you to set values to be shared by multiple > repositories. Thanks for those valuable hints. I would like to see those explicitly in make/build.properties. -Ulf > > There is no make/build.properties in the jdk/ repository because that > repository uses "make" instead of "ant" for building. To build the > jdk repository, you will need either MKS or Cygwin installed on your > system. For more info, see the notes on the OpenJDK web pages. There > are NetBeans projects for selected parts of the jdk/ to make it easy > to work on small subsystems. However, I don't believe those (NetBeans) > projects are being actively maintained at this point. [This does not > apply to the langtools/ files. ] > > -- Jon > > > > > > On Aug 11, 2009, at 8:31 AM, Ulf Zibis wrote: > >> Jon, >> >> that would be great. >> >> I've found out a solution, but I'm not sure, if this is as designed. >> In path_to_jdk7_sources\langtools\make\build.properties I set: >> boot.java.home = C:/Programme/Java/jdk1.6.0_14 >> target.java.home = C:/Programme/Java/jdk1.7.0 >> javac.source = 6 >> javac.target = 6 >> >> I'm wondering, that there is no ...\make\build.properties file in >> tl/jdk tree. >> >> Maybe you like to have a look on ...\make\netbeans\charset\* in my >> patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? >> >> -Ulf >> >> >> >> Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >>> R?mi, >>> >>> Thanks for the heads up. I'll check this out. It is still the case >>> that you should only need 1.6 to build langtools. >>> >>> -- Jon >>> >>> >>> >>> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >>> >>>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>>> Jonathan, >>>>> >>>>> thanks for additional help. >>>>> >>>>> Now I tried: >>>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>>> 6.7.1\java2\ant\ >>>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>> >>>> I've noticed that. >>>> You have to run ant with jdk7. >>>> >>>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>> >>>> Jon, it seems the ant build script need be updated because >>>> we are not able to compile with jdk6 anymore. >>>> The bootstrap javac/javap/etc should be built with -source 1.6 >>>> -target 1.6. >>>> >>>> R?mi >>> >>> >> > > From Ulf.Zibis at gmx.de Tue Aug 11 15:14:21 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Wed, 12 Aug 2009 00:14:21 +0200 Subject: javac CRASH In-Reply-To: <4A81BDAD.8050007@sun.com> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> <4A81B856.7000702@sun.com> <4A81BDAD.8050007@sun.com> Message-ID: <4A81ED3D.4010204@gmx.de> Sorry for cross-posting. Am 11.08.2009 20:51, Jonathan Gibbons schrieb: > Removed core-libs-dev. > > The issue is that in a couple of places a default value for > javac.bootclasspath is set that includes -J-Xbootclasspath. > When the value is finally used, -J-Xbootclasspath is again included. > The fix is to remove the use of -J-Xbootclasspath/p: > from the default settings for javac.bootclasspath. Will you do that, and commit to langtools forest soon? Otherwise, what should I exactly change in which file ? -Ulf > > -- Jon > > Jonathan Gibbons wrote: >> Ulf, R?mi, >> >> I have found an issue in the langtools/make/build.xml file that is >> likely the cause of the problems you are having. >> There are references to @{javac.java.home}/bin/javac which look >> suspect. I suspect they should be javac.exe >> on Windows. >> >> I will post a fix once I have one and have verified it for plain >> invocation from the Windows command shell and >> from Cygwin. >> >> -- Jon >> >> >> Ulf Zibis wrote: >>> Jon, >>> >>> that would be great. >>> >>> I've found out a solution, but I'm not sure, if this is as designed. >>> In path_to_jdk7_sources\langtools\make\build.properties I set: >>> boot.java.home = C:/Programme/Java/jdk1.6.0_14 >>> target.java.home = C:/Programme/Java/jdk1.7.0 >>> javac.source = 6 >>> javac.target = 6 >>> >>> I'm wondering, that there is no ...\make\build.properties file in >>> tl/jdk tree. >>> >>> Maybe you like to have a look on ...\make\netbeans\charset\* in my >>> patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? >>> >>> -Ulf >>> >>> >>> >>> Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >>>> R?mi, >>>> >>>> Thanks for the heads up. I'll check this out. It is still the case >>>> that you should only need 1.6 to build langtools. >>>> >>>> -- Jon >>>> >>>> >>>> >>>> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >>>> >>>>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>>>> Jonathan, >>>>>> >>>>>> thanks for additional help. >>>>>> >>>>>> Now I tried: >>>>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>>>> 6.7.1\java2\ant\ >>>>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>>> >>>>> I've noticed that. >>>>> You have to run ant with jdk7. >>>>> >>>>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>>>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>>> >>>>> Jon, it seems the ant build script need be updated because >>>>> we are not able to compile with jdk6 anymore. >>>>> The bootstrap javac/javap/etc should be built with -source 1.6 >>>>> -target 1.6. >>>>> >>>>> R?mi >>>> >>>> >>> >> > > From Jonathan.Gibbons at Sun.COM Tue Aug 11 15:23:45 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 15:23:45 -0700 Subject: javac CRASH In-Reply-To: <4A81E96D.5050609@gmx.de> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> <4A81E96D.5050609@gmx.de> Message-ID: <4A81EF71.2030806@sun.com> Ulf Zibis wrote: > Jon, > > thanks for 1st clarification. > > I have > bootstrap.jdk=C:/Programme/Java/jdk1.7.0 > in ${user.home}/.openjdk/build.properties instead of > boot.javac.target. Why 2 different names for the same thing? The NetBeans projects in the jdk/ repository were written by a different person who has since left Sun. As far as I know, no-one is looking after those projects at this point. I cannot speak to their contents. > So I guess, settings for boot.javac.source and boot.javac.target > should be better located in > ${user.home}/.openjdk/langtools-build.properties, than in > ${user.home}/.openjdk/build.properties ? Yes, that would seem best. > > For NetBeans "Clean and Build" settings for boot.javac.source and > boot.javac.target in ${user.home}/.openjdk/*build.properties don't > seem to be necessary, and regrettably settings for: > javac.source = 6 > javac.target = 6 > don't work, either in > make/netbeans/langtools/nbproject/private/langtools.properties. I had > to set them in build.properties. This morning, we identified and fixed an issue with the setting of javac.bootclasspath in the langtools/make/build.xml file. A fix has been pushed to the TL/ family of repositories. This should fix being able to build langtools with JDK 6, so no additional changes to javac.source and javac.target should be necessary. > > > I'm not happy to use NetBeans Properties box under Tools> Options> > Miscellaneous> Ant, because those settings are for ALL NetBeans projects. Noted. I mostly work on copies of the langtools repository so setting values there works OK for me. I accept this may not work for everyone. > IMO best location would be: > make/netbeans/langtools/nbproject/private/langtools.properties. In > make/netbeans/langtools/build.xml they should be loaded before: > This would only work if you are using NetBeans all the time. > Please add NetBeans project specific hints in make/build.properties. > ... There should not need to be any NetBeans project specific hints, because you can configure and use make/build.xml and make/build.properties with Ant directly, without using NetBeans. Please bear in mind that some of this issues you have been fighting have been caused by a mistake in make/build.xml, for which I apologise. For the most part, you should just have to set boot.java.home to build langtools, and target.java.home and jtreg.home if you want to run the tests. -- Jon From Jonathan.Gibbons at Sun.COM Tue Aug 11 15:35:44 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 15:35:44 -0700 Subject: javac CRASH In-Reply-To: <4A81ED3D.4010204@gmx.de> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7@Sun.COM> <4A818EE8.6030307@gmx.de> <4A81B856.7000702@sun.com> <4A81BDAD.8050007@sun.com> <4A81ED3D.4010204@gmx.de> Message-ID: <4A81F240.6090305@sun.com> Ulf, I have pushed changes into http://hg.openjdk.java.net/jdk7/tl/langtools (for JDK7) and into http://hg.openjdk.java.net/jdk6/jdk6/langtools (for JDK6.) With these fixes, I can build langtools on Windows using either the attached build.bat (for Windows shell) for build.sh (for Cygwin.) In both cases I can build with just JDK 6. -- Jon Ulf Zibis wrote: > Sorry for cross-posting. > > Am 11.08.2009 20:51, Jonathan Gibbons schrieb: >> Removed core-libs-dev. >> >> The issue is that in a couple of places a default value for >> javac.bootclasspath is set that includes -J-Xbootclasspath. >> When the value is finally used, -J-Xbootclasspath is again >> included. The fix is to remove the use of -J-Xbootclasspath/p: >> from the default settings for javac.bootclasspath. > > Will you do that, and commit to langtools forest soon? > Otherwise, what should I exactly change in which file ? > > -Ulf > > >> >> -- Jon >> >> Jonathan Gibbons wrote: >>> Ulf, R?mi, >>> >>> I have found an issue in the langtools/make/build.xml file that is >>> likely the cause of the problems you are having. >>> There are references to @{javac.java.home}/bin/javac which look >>> suspect. I suspect they should be javac.exe >>> on Windows. >>> >>> I will post a fix once I have one and have verified it for plain >>> invocation from the Windows command shell and >>> from Cygwin. >>> >>> -- Jon >>> >>> >>> Ulf Zibis wrote: >>>> Jon, >>>> >>>> that would be great. >>>> >>>> I've found out a solution, but I'm not sure, if this is as >>>> designed. In path_to_jdk7_sources\langtools\make\build.properties I >>>> set: >>>> boot.java.home = C:/Programme/Java/jdk1.6.0_14 >>>> target.java.home = C:/Programme/Java/jdk1.7.0 >>>> javac.source = 6 >>>> javac.target = 6 >>>> >>>> I'm wondering, that there is no ...\make\build.properties file in >>>> tl/jdk tree. >>>> >>>> Maybe you like to have a look on ...\make\netbeans\charset\* in my >>>> patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? >>>> >>>> -Ulf >>>> >>>> >>>> >>>> Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >>>>> R?mi, >>>>> >>>>> Thanks for the heads up. I'll check this out. It is still the >>>>> case that you should only need 1.6 to build langtools. >>>>> >>>>> -- Jon >>>>> >>>>> >>>>> >>>>> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >>>>> >>>>>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>>>>> Jonathan, >>>>>>> >>>>>>> thanks for additional help. >>>>>>> >>>>>>> Now I tried: >>>>>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>>>>> 6.7.1\java2\ant\ >>>>>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>>>> >>>>>> I've noticed that. >>>>>> You have to run ant with jdk7. >>>>>> >>>>>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>>>>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>>>> >>>>>> Jon, it seems the ant build script need be updated because >>>>>> we are not able to compile with jdk6 anymore. >>>>>> The bootstrap javac/javap/etc should be built with -source 1.6 >>>>>> -target 1.6. >>>>>> >>>>>> R?mi >>>>> >>>>> >>>> >>> >> >> > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 3710927023.txt Url: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090811/eb79e69c/attachment.txt -------------- next part -------------- A non-text attachment was scrubbed... Name: build.sh Type: application/x-sh Size: 155 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090811/eb79e69c/attachment.sh From Ulf.Zibis at gmx.de Tue Aug 11 16:22:36 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Wed, 12 Aug 2009 01:22:36 +0200 Subject: [Fwd: Re: javac CRASH] Message-ID: <4A81FD3C.9070708@gmx.de> Jon, thanks for your help, but the attachment is broken (see 3710927023.txt). Maybe you better rename it to build.txt. -Ulf -------- Original-Nachricht -------- Betreff: Re: javac CRASH Datum: Tue, 11 Aug 2009 15:35:44 -0700 Von: Jonathan Gibbons An: Ulf Zibis CC: R?mi Forax , Maurizio Cimadamore , nb-projects-dev at openjdk.java.net Referenzen: <4A77F8CB.2070200 at gmx.de> <4A77FAA8.5020101 at sun.com> <4A77FC5F.8020407 at gmx.de> <4A780B67.3080809 at sun.com> <4A781678.4050100 at gmx.de> <4A7834DB.7020708 at univ-mlv.fr> <4A80B40A.8090704 at gmx.de> <4A80BA63.7010606 at univ-mlv.fr> <4A80C049.2020202 at sun.com> <4A813498.3010004 at gmx.de> <4A813E03.4000702 at univ-mlv.fr> <33338629-C8F0-4649-A3AD-A6BCA88631B7 at Sun.COM> <4A818EE8.6030307 at gmx.de> <4A81B856.7000702 at sun.com> <4A81BDAD.8050007 at sun.com> <4A81ED3D.4010204 at gmx.de> Ulf, I have pushed changes into http://hg.openjdk.java.net/jdk7/tl/langtools (for JDK7) and into http://hg.openjdk.java.net/jdk6/jdk6/langtools (for JDK6.) With these fixes, I can build langtools on Windows using either the attached build.bat (for Windows shell) for build.sh (for Cygwin.) In both cases I can build with just JDK 6. -- Jon Ulf Zibis wrote: > Sorry for cross-posting. > > Am 11.08.2009 20:51, Jonathan Gibbons schrieb: >> Removed core-libs-dev. >> >> The issue is that in a couple of places a default value for >> javac.bootclasspath is set that includes -J-Xbootclasspath. >> When the value is finally used, -J-Xbootclasspath is again >> included. The fix is to remove the use of -J-Xbootclasspath/p: >> from the default settings for javac.bootclasspath. > > Will you do that, and commit to langtools forest soon? > Otherwise, what should I exactly change in which file ? > > -Ulf > > >> >> -- Jon >> >> Jonathan Gibbons wrote: >>> Ulf, R?mi, >>> >>> I have found an issue in the langtools/make/build.xml file that is >>> likely the cause of the problems you are having. >>> There are references to @{javac.java.home}/bin/javac which look >>> suspect. I suspect they should be javac.exe >>> on Windows. >>> >>> I will post a fix once I have one and have verified it for plain >>> invocation from the Windows command shell and >>> from Cygwin. >>> >>> -- Jon >>> >>> >>> Ulf Zibis wrote: >>>> Jon, >>>> >>>> that would be great. >>>> >>>> I've found out a solution, but I'm not sure, if this is as >>>> designed. In path_to_jdk7_sources\langtools\make\build.properties I >>>> set: >>>> boot.java.home = C:/Programme/Java/jdk1.6.0_14 >>>> target.java.home = C:/Programme/Java/jdk1.7.0 >>>> javac.source = 6 >>>> javac.target = 6 >>>> >>>> I'm wondering, that there is no ...\make\build.properties file in >>>> tl/jdk tree. >>>> >>>> Maybe you like to have a look on ...\make\netbeans\charset\* in my >>>> patch for https://bugs.openjdk.java.net/show_bug.cgi?id=100098 ? >>>> >>>> -Ulf >>>> >>>> >>>> >>>> Am 11.08.2009 16:49, Jonathan Gibbons schrieb: >>>>> R?mi, >>>>> >>>>> Thanks for the heads up. I'll check this out. It is still the >>>>> case that you should only need 1.6 to build langtools. >>>>> >>>>> -- Jon >>>>> >>>>> >>>>> >>>>> On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: >>>>> >>>>>> Le 11/08/2009 11:06, Ulf Zibis a ?crit : >>>>>>> Jonathan, >>>>>>> >>>>>>> thanks for additional help. >>>>>>> >>>>>>> Now I tried: >>>>>>> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >>>>>>> 6.7.1\java2\ant\ >>>>>>> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>>>> >>>>>> I've noticed that. >>>>>> You have to run ant with jdk7. >>>>>> >>>>>> JAVA_HOME=C:/Programme/Java/jdk1.7.0 >>>>>> ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 >>>>>> >>>>>> Jon, it seems the ant build script need be updated because >>>>>> we are not able to compile with jdk6 anymore. >>>>>> The bootstrap javac/javap/etc should be built with -source 1.6 >>>>>> -target 1.6. >>>>>> >>>>>> R?mi >>>>> >>>>> >>>> >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090812/6b21c717/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 3710927023.txt Url: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090812/6b21c717/attachment.txt -------------- next part -------------- A non-text attachment was scrubbed... Name: build.sh Type: application/x-sh Size: 156 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090812/6b21c717/attachment.sh From Jonathan.Gibbons at Sun.COM Tue Aug 11 16:37:03 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 16:37:03 -0700 Subject: [Fwd: Re: javac CRASH] In-Reply-To: <4A81FD3C.9070708@gmx.de> References: <4A81FD3C.9070708@gmx.de> Message-ID: <4A82009F.4010809@sun.com> Ulf Zibis wrote: > Jon, > > thanks for your help, but the attachment is broken (see 3710927023.txt). > Maybe you better rename it to build.txt. > > -Ulf > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: build.bat.txt Url: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090811/565e8998/attachment.txt -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: build.sh.txt Url: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20090811/565e8998/attachment-0001.txt From Ulf.Zibis at gmx.de Tue Aug 11 17:49:05 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Wed, 12 Aug 2009 02:49:05 +0200 Subject: [Fwd: Re: javac CRASH] In-Reply-To: <4A82009F.4010809@sun.com> References: <4A81FD3C.9070708@gmx.de> <4A82009F.4010809@sun.com> Message-ID: <4A821181.4020101@gmx.de> John, thanks for your files. (1) Do you like to update make/build.properties? : ... # boot.java.home = /opt/jdk/1.6.0 ... # target.java.home = /opt/jdk/1.7.0 (2) Your script builds separate javac.jar etc. Can you add script to build complete tools.jar? -Ulf Am 12.08.2009 01:37, Jonathan Gibbons schrieb: > Ulf Zibis wrote: >> Jon, >> >> thanks for your help, but the attachment is broken (see 3710927023.txt). >> Maybe you better rename it to build.txt. >> >> -Ulf >> > From Jonathan.Gibbons at Sun.COM Tue Aug 11 18:17:09 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Tue, 11 Aug 2009 18:17:09 -0700 Subject: [Fwd: Re: javac CRASH] In-Reply-To: <4A821181.4020101@gmx.de> References: <4A81FD3C.9070708@gmx.de> <4A82009F.4010809@sun.com> <4A821181.4020101@gmx.de> Message-ID: <4A821815.8030500@sun.com> Ulf Zibis wrote: > John, > > thanks for your files. > > (1) > Do you like to update make/build.properties? : > ... > # boot.java.home = /opt/jdk/1.6.0 > ... > # target.java.home = /opt/jdk/1.7.0 Yes, they're only comments, but updating them makes sense. > > (2) > Your script builds separate javac.jar etc. > Can you add script to build complete tools.jar? That I can't do, not the way you probably would want. tools.jar contains more than the aggregate contents of the langtools repository. langtools just contains "the language tools", javac, javadoc, javah, javap, and apt. tools.jar is built as part of building the main jdk/ repository, so to build tools.jar you need to bring over the jdk/ repository and build that. For that, you'll need to have MKS or Cygwin installed and run "make" in that repository. This will generate a jdk image containing tools.jar. There is no easy short cut. Sorry. For full details on building jdk/ see the OpenJDK web pages. We are looking at the possibility of adding an optional target to the langtools/make/build.xml file that would allow you to create a patched version of an existing tools.jar. Perhaps that would be sufficient to your needs. -- Jon > > -Ulf > > > > Am 12.08.2009 01:37, Jonathan Gibbons schrieb: >> Ulf Zibis wrote: >>> Jon, >>> >>> thanks for your help, but the attachment is broken (see >>> 3710927023.txt). >>> Maybe you better rename it to build.txt. >>> >>> -Ulf >>> >> > From Ulf.Zibis at gmx.de Tue Aug 11 23:19:50 2009 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Wed, 12 Aug 2009 08:19:50 +0200 Subject: [Fwd: Re: javac CRASH] In-Reply-To: <4A821815.8030500@sun.com> References: <4A81FD3C.9070708@gmx.de> <4A82009F.4010809@sun.com> <4A821181.4020101@gmx.de> <4A821815.8030500@sun.com> Message-ID: <4A825F06.4050708@gmx.de> Am 12.08.2009 03:17, Jonathan Gibbons schrieb: > Ulf Zibis wrote: >> John, >> >> thanks for your files. >> >> (1) >> Do you like to update make/build.properties? : >> ... >> # boot.java.home = /opt/jdk/1.6.0 >> ... >> # target.java.home = /opt/jdk/1.7.0 > > Yes, they're only comments, but updating them makes sense. > >> >> (2) >> Your script builds separate javac.jar etc. >> Can you add script to build complete tools.jar? > > That I can't do, not the way you probably would want. tools.jar > contains more than the aggregate contents of the langtools > repository. langtools just contains "the language tools", javac, > javadoc, javah, javap, and apt. > > tools.jar is built as part of building the main jdk/ repository, so to > build tools.jar you need to bring over the jdk/ repository and build > that. For that, you'll need to have MKS or Cygwin installed and run > "make" in that repository. This will generate a jdk image containing > tools.jar. There is no easy short cut. Sorry. For full details on > building jdk/ see the OpenJDK web pages. > > We are looking at the possibility of adding an optional target to the > langtools/make/build.xml file that would allow you to create a patched > version of an existing tools.jar. Perhaps that would be sufficient to > your needs. > > -- Jon > Sounds good. Yesterday I found smart tutorial/sample from NetBeans weekly newsletter: http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/ -Ulf From Jonathan.Gibbons at Sun.COM Wed Aug 12 18:23:56 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Wed, 12 Aug 2009 18:23:56 -0700 Subject: javac CRASH In-Reply-To: <4A813E03.4000702@univ-mlv.fr> References: <4A77F8CB.2070200@gmx.de> <4A77FAA8.5020101@sun.com> <4A77FC5F.8020407@gmx.de> <4A780B67.3080809@sun.com> <4A781678.4050100@gmx.de> <4A7834DB.7020708@univ-mlv.fr> <4A80B40A.8090704@gmx.de> <4A80BA63.7010606@univ-mlv.fr> <4A80C049.2020202@sun.com> <4A813498.3010004@gmx.de> <4A813E03.4000702@univ-mlv.fr> Message-ID: <70CEC2FE-54C3-4DF6-B288-1A577EAFAFA5@Sun.COM> This thread continued on a subset of the to: list, but to summarize the net result here, we identified and fixed a problem with the langtools make/build.xml file that was causing bootclasspath problems on WIndows. This problem has been fixed, and changesets have been pushed to jdk6/jdk6 and jdk7/tl. Thanks , R?mi and Ulf, for helping to point out the problem. -- Jon On Aug 11, 2009, at 2:46 AM, R?mi Forax wrote: > Le 11/08/2009 11:06, Ulf Zibis a ?crit : >> Jonathan, >> >> thanks for additional help. >> >> Now I tried: >> C:\Projects\OpenJDK7\langtools\make>"C:\Programme\Java\NetBeans >> 6.7.1\java2\ant\ >> bin\ant" -Dboot.java/home=C:/Programme/Java/jdk1.7.0 > > I've noticed that. > You have to run ant with jdk7. > > JAVA_HOME=C:/Programme/Java/jdk1.7.0 > ant -Dboot.java/home=C:/Programme/Java/jdk1.7.0 > > Jon, it seems the ant build script need be updated because > we are not able to compile with jdk6 anymore. > The bootstrap javac/javap/etc should be built with -source 1.6 - > target 1.6. > > R?mi