Make target for compiling java classes only?
Roman Kennke
roman.kennke at aicas.com
Thu Jan 10 12:30:38 UTC 2008
Hi,
> What do you mean by "the Java classes of OpenJDK".
> Every subproject contains some Jaca classes, so I'm afraid it's
> not possible to build only all the Java classses from OpenJDK with
> one build target.
>
> If you are refering to the JDK Java classes you can get near that
> by only building the JDK target. This will still build the native parts
> of the Java classes, but I think that's not an issue (concerning the time
> consumption) if you build the whole JDK part anyway.
What I want is to build the Java classes without the native code. This
is not for a normal build of OpenJDK, but for a hybrid project that uses
and builds its own native code. What I'm doing now is to compile all the
Java classes myself, in one go, but this uses >1G memory and easily
swaps on weaker machines. I see that the OpenJDK build compiles the Java
classes in smaller chunks and would like to make use of this if
possible. However, if the OpenJDK build machinery can only build the
Java classes together with their native parts, this is not an option.
Any other ideas? (FYI: I am working on a tool right now that
automatically splits up the list of Java sources into smaller parts that
are compilable indedepently).
/Roman
>
> In general you can build as follows:
>
> make BUILD_DEPLOY=false BUILD_INSTALL=false BUILD_HOTSPOT=false
> BUILD_LANGTOOLS=false BUILD_JDK=true BUILD_JAXP=false
> BUILD_JAXWS=false BUILD_CORBA=false NO_IMAGES=true
>
> You can choose which subprojets to build by setting the variables
> appropriately. Notice that you should do a clean "make all" build
> to the same build location at the beginning, before you try to build
> single subprojects, otherwise you may have to set certain variables
> like ALT_JDK_IMPORT_PATH or ALT_HOTSPOT_IMPORT_PATH that
> point to a previous full build.
>
> You may also consult jdk/README for how to build only the JDK and you
> can also try the makefiles in the jdk/make subdirectories (e.g.
> jdk/make/java/Makefile will only build the "java" classes like "java.lang",
> "java.utils" and so on). However you'll probably also need to do a full
> build before you can use them.
>
> Regards,
> Volker
>
>
> On 1/10/08, Roman Kennke <roman.kennke at aicas.com> wrote:
> > Hi there,
> >
> > I'm looking for a make target, that compiles only the Java classes of
> > OpenJDK. Is there a way to do that? Thanks,
> >
> > /Roman
> >
> > --
> > http://kennke.org/blog/
> > --
> > Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
> > aicas Allerton Interworks Computer Automated Systems GmbH
> > Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
> > http://www.aicas.com * Tel: +49-721-663 968-0
> > USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
> > Geschäftsführer: Dr. James J. Hunt
> >
> >
--
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com * Tel: +49-721-663 968-0
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt
More information about the build-dev
mailing list