How to run (exe) java-8 application in java-11
I have made a java application using jdk 8 and then made an executable file from the jar.
Then I updated my system to java 11, and deleted all older java versions from my system, and when I run this app from exe file it can't run and takes me to web browser and asks me to download java 8. But if I run the jar using java -jar app.jar
it runs normally on java 11.
I've used launch4j to make an exe out of jar, and there is no possibility to pick java 11 as the newest version.
So how can I make this exe run on java 11?
java java-11 launch4j
add a comment |
I have made a java application using jdk 8 and then made an executable file from the jar.
Then I updated my system to java 11, and deleted all older java versions from my system, and when I run this app from exe file it can't run and takes me to web browser and asks me to download java 8. But if I run the jar using java -jar app.jar
it runs normally on java 11.
I've used launch4j to make an exe out of jar, and there is no possibility to pick java 11 as the newest version.
So how can I make this exe run on java 11?
java java-11 launch4j
1
@nullpointer It seems that newest version of launch4j and not specifying the maximum version of jre solved the problem, I just want to wait for the client to test it on his machine.
– wdc
Jan 2 at 15:16
add a comment |
I have made a java application using jdk 8 and then made an executable file from the jar.
Then I updated my system to java 11, and deleted all older java versions from my system, and when I run this app from exe file it can't run and takes me to web browser and asks me to download java 8. But if I run the jar using java -jar app.jar
it runs normally on java 11.
I've used launch4j to make an exe out of jar, and there is no possibility to pick java 11 as the newest version.
So how can I make this exe run on java 11?
java java-11 launch4j
I have made a java application using jdk 8 and then made an executable file from the jar.
Then I updated my system to java 11, and deleted all older java versions from my system, and when I run this app from exe file it can't run and takes me to web browser and asks me to download java 8. But if I run the jar using java -jar app.jar
it runs normally on java 11.
I've used launch4j to make an exe out of jar, and there is no possibility to pick java 11 as the newest version.
So how can I make this exe run on java 11?
java java-11 launch4j
java java-11 launch4j
edited Jan 2 at 14:42


Usagi Miyamoto
4,57411125
4,57411125
asked Jan 2 at 14:29
wdcwdc
1,0861721
1,0861721
1
@nullpointer It seems that newest version of launch4j and not specifying the maximum version of jre solved the problem, I just want to wait for the client to test it on his machine.
– wdc
Jan 2 at 15:16
add a comment |
1
@nullpointer It seems that newest version of launch4j and not specifying the maximum version of jre solved the problem, I just want to wait for the client to test it on his machine.
– wdc
Jan 2 at 15:16
1
1
@nullpointer It seems that newest version of launch4j and not specifying the maximum version of jre solved the problem, I just want to wait for the client to test it on his machine.
– wdc
Jan 2 at 15:16
@nullpointer It seems that newest version of launch4j and not specifying the maximum version of jre solved the problem, I just want to wait for the client to test it on his machine.
– wdc
Jan 2 at 15:16
add a comment |
1 Answer
1
active
oldest
votes
Unless you have compiled EXE with latest launch4j 3.12 you are most likely stuck on Java 8. Support for newer JDK was added in ticket #177 Launch4J doesn't accept Java 9 JDK.
The solution would be to recompile EXE with latest launch4j and hope it works with Java 11. Alternatively you could create a BAT file running java -jar app.jar
but that goes against the whole point of launch4j.
2
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54008114%2fhow-to-run-exe-java-8-application-in-java-11%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Unless you have compiled EXE with latest launch4j 3.12 you are most likely stuck on Java 8. Support for newer JDK was added in ticket #177 Launch4J doesn't accept Java 9 JDK.
The solution would be to recompile EXE with latest launch4j and hope it works with Java 11. Alternatively you could create a BAT file running java -jar app.jar
but that goes against the whole point of launch4j.
2
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
add a comment |
Unless you have compiled EXE with latest launch4j 3.12 you are most likely stuck on Java 8. Support for newer JDK was added in ticket #177 Launch4J doesn't accept Java 9 JDK.
The solution would be to recompile EXE with latest launch4j and hope it works with Java 11. Alternatively you could create a BAT file running java -jar app.jar
but that goes against the whole point of launch4j.
2
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
add a comment |
Unless you have compiled EXE with latest launch4j 3.12 you are most likely stuck on Java 8. Support for newer JDK was added in ticket #177 Launch4J doesn't accept Java 9 JDK.
The solution would be to recompile EXE with latest launch4j and hope it works with Java 11. Alternatively you could create a BAT file running java -jar app.jar
but that goes against the whole point of launch4j.
Unless you have compiled EXE with latest launch4j 3.12 you are most likely stuck on Java 8. Support for newer JDK was added in ticket #177 Launch4J doesn't accept Java 9 JDK.
The solution would be to recompile EXE with latest launch4j and hope it works with Java 11. Alternatively you could create a BAT file running java -jar app.jar
but that goes against the whole point of launch4j.
edited Jan 2 at 14:59
answered Jan 2 at 14:52


Karol DowbeckiKarol Dowbecki
25k93759
25k93759
2
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
add a comment |
2
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
2
2
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Was about to share the same here launch4j.sourceforge.net/changelog.html. It's worth highlighting the change Ticket #177 Launching on Java 9 JDK and newer is now possible (not just JRE) in the answer.
– Naman
Jan 2 at 14:57
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
Latest Launch4j and not specifying the maximum jre version solved the problem.
– wdc
Jan 3 at 15:06
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54008114%2fhow-to-run-exe-java-8-application-in-java-11%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
@nullpointer It seems that newest version of launch4j and not specifying the maximum version of jre solved the problem, I just want to wait for the client to test it on his machine.
– wdc
Jan 2 at 15:16