A
A
Alexander Interesting2021-09-24 19:00:45
Java
Alexander Interesting, 2021-09-24 19:00:45

How to compile jar to exe without being able to open file as archive?

As we all know - jar files are archives that you can open and understand that the program is written in java, how can you compile jar into exe but not into an archive? The idea is not urgent but INCREDIBLY interesting

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Mirilaczvili, 2021-09-24
@2ord

Excelsior JET once solved this problem.

V
Vasily Bannikov, 2021-09-24
@vabka

graalvm?
https://www.graalvm.org/
Of course, after a deep examination, it will be possible to understand that the application is made in Java, but it will be difficult to decompile

V
Vladimir Korotenko, 2021-09-25
@firedragon

Should be clarified. There are 2 approaches:
1. SFX like
2. A loader that reads directly from file sections
The first one contains a stub that unpacks the jvm and your application into a separate directory for the duration of the program execution, where you can actually see everything. Plus, if you dig into the executable, you can cut out the desired section and unpack
it. The second one does not create garbage and works by broadcasting requests, it’s more difficult to get there, but your application is still in memory.
In general, it all depends on the persistence of the reverser.
For your part, at some point it is easier to hide behind a license agreement instead of wasting efforts on protection

I
Igor Maznitsa, 2021-09-27
@raydac

launch4j has a mode when jar is packed into an exe file and does not lie separately

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question