M
M
MaikShamrock2014-10-30 07:10:55
Java
MaikShamrock, 2014-10-30 07:10:55

Building a java program for windows, protecting the program?

Hi all! The following question arose: is there a Java program that is assembled into a .jar executable, what other options are there for creating an executable file of a Java program for windows?
The question is that I have never seen distributions of commercial programs that would start with .jar.
The second question is: what can be done to protect Java code from code diggers? What are the methods, programs?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ix_Didicus, 2014-10-30
@Ix_Didicus

As far as I understand, in the same Eclipse, NetBeans, etc., an exe file is nothing more than a launcher, JAR nicknames are simply hidden from the user's eyes in the program directories, so the JRE is still required to run program, the exe-file takes over the search for the Java machine, connects the JAR-nicknames to the classpath and launches the program with all the keys necessary for its operation. With the same success, you can use even the simplest (or not so) batch file or shell script (you can peep examples in the bin / Ceylon folder).
If the goal is to rid the user of the need to download the JRE, look towards Avian: oss.readytalk.com/avian
As for the second question - as far as I know, the most common method of protection against source code scrutiny in the Java world is obfuscation. For example, it was used in Minecraft. Unfortunately (or fortunately), this is not a very reliable method.

D
Dmitry Stepanov, 2014-10-30
@stepanovD

To compile exe files there is Launch4j .
Regarding protection: one , two .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question