#61 Add a new special variable JREHOMEDIR

Next Release
closed
None
9
3 days ago
2011-04-20
Stefan Knoefel
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

     
    Attachments
  • Olive
    Olive
    4 days ago

    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
    4 days ago

    • assigned_to: Grzegorz Kowal
    • Group: --> Next Release
    • Priority: 5 --> 9
     
  • Grzegorz Kowal
    Grzegorz Kowal
    4 days ago

    OK, planned for next release.

    Grzegorz

     
  • Grzegorz Kowal
    Grzegorz Kowal
    3 days ago

     
  • Grzegorz Kowal
    Grzegorz Kowal
    3 days ago

    Added to repo.

     
  • Grzegorz Kowal
    Grzegorz Kowal
    3 days ago

    • status: open --> closed