#61 Add a new special variable JREHOMEDIR

launch4j 3.8
closed
None
9
2015-05-09
2011-04-20
No

To run a java application on Win32 platform with a huge amount of java libraries, we use the -Djava.ext.dirs system property to put all jars of one directory into the classpath.
But we need the Java Cryptography APIs as well in this property to use SSL protocol. So we need to setup a java.ext.dirs property which consist of a custom directory and the default /lib/ext directory of the JRE. To define this property we need to know the JRE home directory which is detected by lauch4j.
With the special variable JREHOMEDIR which is resolved by launch4j, we can configure the property in the <jre> section like this:
<opt>-Djava.ext.dirs=lib;&quot;%JREHOMEDIR%&quot;/lib/ext</opt>
Attached is a changed head.c which supports this new special variable.

Regards

Discussion

  • Stefan Knoefel

    Stefan Knoefel - 2011-04-20
     
  • Olive

    Olive - 2014-04-15

    I would like to add the JavaFX runtime library for Java > 1.7.0_06 to the classpath, and this special variable would enable adding to the configuation:

    <cp>%JREHOMEDIR%\lib\jfxrt.jar</cp>
    
     
  • Grzegorz Kowal

    Grzegorz Kowal - 2014-04-15
    • assigned_to: Grzegorz Kowal
    • Group: --> Next Release
    • Priority: 5 --> 9
     
  • Grzegorz Kowal

    Grzegorz Kowal - 2014-04-15

    OK, planned for next release.

    Grzegorz

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2014-04-16
     
  • Grzegorz Kowal

    Grzegorz Kowal - 2014-04-16

    Added to repo.

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2014-04-16
    • status: open --> closed
     
  • Grzegorz Kowal

    Grzegorz Kowal - 2015-05-09
    • Group: Future --> launch4j 3.8
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks