+ 10

Can i make an execuatable (.exe) file from the .java or .class files?

I need to make a completely independent execuatable file from my code, is there anyway for that?

25th Apr 2019, 8:23 PM
Abdol Hashimi
Abdol Hashimi - avatar
7 Respostas
+ 9
There have been many tools made to do this. The developers will often abandon the project after a short time, so I'm not whats still maintained. This should give you some places to look: https://stackoverflow.com/questions/2011664/compiling-a-java-program-into-an-executable You could also use the java to Kotlin convertor, Then use Kotlin native compiler to build 64 bit win exe. It is usually less desirable and messy to pass code through a transpiler before compiling, but the tools from JetBrains are very good. https://kotlinlang.org/
25th Apr 2019, 9:14 PM
Jared Bird
Jared Bird - avatar
+ 15
Yes, but you'll need a tool like launch4j or some other tool else for it. I would recommend to use a build tool like Maven and a corresponding plugin to automate the packing process.
25th Apr 2019, 9:04 PM
Tashi N
Tashi N - avatar
+ 10
You can covert to jar file to exe.
26th Apr 2019, 10:23 AM
Nasir❤
Nasir❤ - avatar
26th Apr 2019, 5:48 PM
WOT BY THANKS
WOT BY THANKS - avatar
0
Привет
26th Apr 2019, 5:47 PM
WOT BY THANKS
WOT BY THANKS - avatar
0
Как дела у прагломистов?
26th Apr 2019, 5:48 PM
WOT BY THANKS
WOT BY THANKS - avatar