|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[Fwd: Re: javac CRASH]
Jon,
thanks for your help, but the attachment is broken (see 3710927023.txt). Maybe you better rename it to build.txt. -Ulf -------- Original-Nachricht --------
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 >>>>> >>>>> >>>> >>> >> >> > The original attachment - build.bat - has been removed from this message, as it is a type of file which has recently been used to carry viruses and other malicious software. The following extensions are no longer supported as valid email attachments and will be removed since they are primarily used to carry viruses and other malicious software: asp bas bat chm cmd com exe hlp hta inf isp js jse lnk msi mst pcd pif reg scr url vbe vbs ws wsh sun.com.zip |
||||||||||||
|
|
Re: [Fwd: Re: javac CRASH]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 > c:/opt/ant/1.7.1/bin/ant -f make/build.xml -Dboot.java.home=C:/opt/jdk/1.6.0 build-all-tools #!/bin/sh PATH=/cygdrive/c/opt/jdk/1.6.0/bin:/cygdrive/c/opt/ant/1.7.1/bin:$PATH ant -f make/build.xml -Dboot.java.home=C:/opt/jdk/1.6.0 build-all-tools |
||||||||||||
|
|
Re: [Fwd: Re: javac CRASH]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 >> > |
||||||||||||
|
|
Re: [Fwd: Re: javac CRASH]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 >>> >> > |
||||||||||||
|
|
Re: [Fwd: Re: javac CRASH]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 |
| Free embeddable forum powered by Nabble | Forum Help |