Is it possible to build only rt.jar without first building the entire JDK?
I guess the only way to build my rt.jar is to replace the old ".class" files with the new ones using for example Ant's JAR task with the update flag set to true.
So far that is what I would do:
- execute the Ant script in /src/j2se/make/sun/javac/ant
- create an Ant script that takes the generated code and updates the rt.jar with the new Java classes
As soon as I have that script done I will post it here.
Thanx - Andy
Some of the Java sources that make up rt.jar are generated during the build process, from scripts and other means. Some of the properties files are also generated this way, and some of the properties files are turned into Java source that also contributes to rt.jar.
So without doing a complete build first and populating the 'gensrc' directory, you won't have all the sources that make up rt.jar.
The recommendation of just building the classes of interest and placing them in the bootclasspath before rt.jar is a good one.
John, why don't you just use a Java IDE and put the output path into the bootclasspath?
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.