Skip to main content

[jsr363-experts] Re: "External" JAR compiling

  • From: Martin Desruisseaux < >
  • To:
  • Subject: [jsr363-experts] Re: "External" JAR compiling
  • Date: Tue, 03 Feb 2015 00:56:27 +0100
  • Organization: Geomatys

Le 03/02/15 00:50, Leonardo Lima a écrit :

> Yes!
>
> Using a specific .jar instead of the default "rt.jar" from the JDK.

with javac?

If this is about using an other "rt.jar" file when compiling the code
with javac, then you want to set the "bootstrap classpath". This can be
done in Maven with a profile like below:

  <profiles>
    <profile>
      <activation>
        <property>
          <name>bootclasspath</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <compilerArgs>
                <arg>-bootclasspath</arg>
                <arg>${bootclasspath}</arg>
              </compilerArgs>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

Then, when launching Maven, just pass the
-Dbootclasspath=/path/to/your/rt.jar option to Maven.

    Martin



[jsr363-experts] "External" JAR compiling

Leonardo Lima 02/02/2015

[jsr363-experts] Re: "External" JAR compiling

Martin Desruisseaux 02/02/2015

[jsr363-experts] Re: "External" JAR compiling

Leonardo Lima 02/02/2015

[jsr363-experts] Re: "External" JAR compiling

Martin Desruisseaux 02/02/2015

[jsr363-experts] Re: "External" JAR compiling

Werner Keil 02/03/2015

[jsr363-experts] Re: "External" JAR compiling

Werner Keil 02/04/2015

[jsr363-experts] Re: "External" JAR compiling

Werner Keil 02/09/2015

[jsr363-experts] Re: "External" JAR compiling

Martin Desruisseaux 02/09/2015

[jsr363-experts] Re: "External" JAR compiling

Werner Keil 02/09/2015
 
 
Close
loading
Please Confirm
Close