javac CRASH

Ulf Zibis Ulf.Zibis at gmx.de
Tue Aug 11 02:06:32 PDT 2009


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 <options> <source files>
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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>
>




More information about the compiler-dev mailing list