Menu

#146 version check

3.x
closed-fixed
None
5
2016-07-20
2016-05-19
No

The check for min java version fails for java updates greater than 99, e.g. 1.7.0_100.
When I created an exe with minVersion 1.7.0_40 and had java 1.7.0_101 installed it couldn't be started due to that the java version was to old according to launch4j.

The problem might be in head.c, function regSearch, where srtcmp() is used to compare versions?
Haven't made a build, just looked in the code.

Related

Bugs: #146

Discussion

  • Grzegorz Kowal

    Grzegorz Kowal - 2016-05-19
    • assigned_to: Grzegorz Kowal
     
  • Grzegorz Kowal

    Grzegorz Kowal - 2016-05-19

    Hi, yes, thanks for reporting.

     
  • Jakub Ćwik

    Jakub Ćwik - 2016-05-31

    I have a similar problem:

    After installing any Java 9 build after introducing JEP 223 (http://openjdk.java.net/jeps/223), the lauch4j cannot properly detect it (which now introduce it's version as 9, not 1.9). Like in above case, I'm recieving the window that Java 1.x is required, and then I have Java download website opened.

     
    • Chris Mason

      Chris Mason - 2016-06-26

      I have the same problem - when I try and launch a Java app created with Launch4j, it is unable to detect a JRE if I am using Java 9 :(

       
  • Grzegorz Kowal

    Grzegorz Kowal - 2016-06-01

    The problem with 3 digit update (over 99) is fixed. The case with Java 9 is different, I'll investigate later.

    Grzegorz

     
    • hans mlcraft

      hans mlcraft - 2016-06-02

      Great, thanks! Looking forward to next release.
      Den 1 juni 2016 23:22 skrev "Grzegorz Kowal" grzegok@users.sf.net:

      The problem with 3 digit update (over 99) is fixed. The case with Java 9
      is different, I'll investigate later.

      Grzegorz

      Status: open
      Group: 3.x
      Created: Thu May 19, 2016 11:19 AM UTC by hans mlcraft
      Last Updated: Tue May 31, 2016 11:12 AM UTC
      Owner: Grzegorz Kowal

      The check for min java version fails for java updates greater than 99,
      e.g. 1.7.0_100.
      When I created an exe with minVersion 1.7.0_40 and had java 1.7.0_101
      installed it couldn't be started due to that the java version was to old
      according to launch4j.

      The problem might be in head.c, function regSearch, where srtcmp() is used
      to compare versions?
      Haven't made a build, just looked in the code.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/launch4j/bugs/146/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #146

    • Code Buddy

      Code Buddy - 2016-07-20

      Hi Grzegorz,

      Java 8 update 101 was released yesterday (July 19, 2016) which is going to really highlight this one. Do you have an ETA on when this fix might be availble? or know of any possilble workaround?

      Cheers

      Liam

       
  • Grzegorz Kowal

    Grzegorz Kowal - 2016-07-20

    Hi Liam,

    I'm working on the release, yesterday I've made the last changes in the docs and plan to release launch4j 3.9 today. If for some reason this doesn't work out I'll release it tomorrow.

    Cheers,
    Grzegorz

     
    • Code Buddy

      Code Buddy - 2016-07-20

      Great stuff Grzegorz, I've just downloaded and it works perfectly! Cheers, much apprecaited!

       
  • Grzegorz Kowal

    Grzegorz Kowal - 2016-07-20

    3.9 released.

    I moved the Java 9 detection problem to a feature request: Support Java 9.
    The problem is that this version is not added to the registry as the previous ones so launch4j cannot detect it, it's not just a matter of the versioning scheme. We'll if this changes with official release or the search has to be completely changed.

    Grzegorz

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2016-07-20
    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.