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

Attachment: build.sh
Description: Bourne shell script

Reply via email to