1

How would I make a .JAR file open up when I make another file as .EXE?

I have tried many things, but they don't work.

I want this for another way to protect my source code. Kind of like what Minecraft does. You open a .EXE, and somehow the .EXE opens up the .JAR file.

Anyone have any ideas?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Dylan Wheeler
  • 6,928
  • 14
  • 56
  • 80

2 Answers2

1

To convert to exe, I use JAR2EXE.

However obfuscating your code can deter people who want to access your code. But a determined person would still access it. You can use proguard to obfuscate your code.\

ProGuard

Mob
  • 10,958
  • 6
  • 41
  • 58
0

You want something like this:

-> http://en.wikipedia.org/wiki/Obfuscated_code

You can access the MineCraft.jar but the code is obfuscated.

Tobias
  • 9,170
  • 3
  • 24
  • 30