Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

launch4j issue

 
Greenhorn
Posts: 24
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sir I am using Netbeans 12 for java 15 desktop maven project

I want to build project so I am trying to install launch4j
So I download it from this link
https://sourceforge.net/projects/launch4j/

When I try to install it then it says:

---------------------------
launch4j
---------------------------
This application requires a Java Runtime Environment 1.6.0 - 1.8.9
The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.
---------------------------
OK  
---------------------------

Is it necessary to install JRE or this is path issue?

Java installation folder has following structure

https://imgur.com/a/QmWdEM8

Please






 
Rancher
Posts: 4739
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try passing this to Google for lots of suggestions:   Java Runtime Environment 1.6.0 - 1.8.9
 
Saloon Keeper
Posts: 13851
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
run4j uses register keys set by the Oracle JRE installer to determine the location of a JRE to use.

Either install the Java 8 JRE from Oracle, or if you prefer to use OpenJDK, you need to set the register keys yourself. You can easily find them on the Oracle website if you Google.
 
Rancher
Posts: 209
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although this may be off-topic: I question the error message for two things:

a) it mentions 1.6.0 to 1.8.9 specifically
Someboy may correct me, but was there ever any version that made use of the 3rd minor? As far as I recall the format was and still is 1.X.0 where X is the Java version. I only recall very early versions up to 1.4.2 using all 3 digits, but at least since Java 5(.0) the last digit was always set to 0.

b) it has an upper maximum version
I'm not sure what 1.8.9 is supposed to mean - this isn't a Minecraft version - and although Java 9 broke a lot of codes this shouldn't be true for Launch4J, as all it does is combine a jar with a windows executable PE header.
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic