Building javac on Netbeans and windows
jonathan.gibbons at oracle.com
Sun Feb 6 19:45:00 UTC 2011
I suggest you pull a copy of the langtools repository, and use the
NetBeans project in langtools/make/netbeans/langtools.
NetBeans may show a compile-time error for some imports of API which is
new to JDK 7. The errors should go away if you run NetBeans using JDK
7, but equally, the errors can be ignored for the most part, because
they are in an "optional" part of javac. The Ant file in
langtools/make/build.xml knows how to deal with these files. There are
three important parameters that you need to consider passing to ant to
build langtools by itself,
boot.java.home This copy of JDK will be used to build langtools.
It is typically JDK 6.
target.java.home (optional) If you use Ant targets that will
run javac, this is the copy of JDK that will be used. It must be JDK 7.
import.jdk (optional) This will be used to compile those files
that depend on JDK 7 API. It should either point to a copy of JDK 7, or
it may point to a jdk/ repository containing the main JDK source code.
On 02/06/2011 03:48 AM, Omkar Raut wrote:
> I am trying to setup a development environment for langtools project
> in openjdk7.
> I am new to netbeans. I am trying to build the langtools project in
> Netbeans with manually copied sources. I am getting compile error in
> the import statement of "java.nio.File.Attributes" & some other
> packages in some classes. I suspect that I am missing some other
> projects which are needed by langtools in build path. How do I know
> which projects contain these classes? Is there a simpler way of
> setting a development environment with openjdk7 (specifically
> langtools/javac project) on Netbeans on windows?
> Any help appreciated!
> Thank you,
> Omkar Raut
> Student, UC Irvine
More information about the build-dev