Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security of Java Jar file

 
Gursewak Singh
Ranch Hand
Posts: 79
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we know that we can extract a jar file and these class files can be decompiled
then how can we secure a jar file.

i also want to know how make a setup or exe of jar file in JAVA
 
Stephan van Hulst
Bartender
Posts: 6323
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would you call secure? Given enough dedication, it's *always* possible for someone to reverse engineer your code.

For installers I can recommend install4j. It can bundle a JVM with your Java program, saving the user the effort of downloading it themselves.
 
Gursewak Singh
Ranch Hand
Posts: 79
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok sir,
Please tell how to made a setup or .exe
so that it need to be install like other softwares..
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15484
43
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a list of Java installer generators. I've used IzPack myself in the past.

If you really want to make it impossible for anyone to reverse engineer your code, then you could make it a web application that runs on a server. People using the web app through their browsers will not be able to get at the code that is running on the server.

If it has to be code running on the client's computer, then there is no way to 100% guarantee that nobody can get at the code. There are some products, called obfuscators, that make the code harder to read, but someone who really wants to could in principle still reverse engineer it.
 
Joydeep Ghatak
Ranch Hand
Posts: 43
Eclipse IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gursewak,

You can use "InstallAnywhere" software which I had used long back.
It was good and easy to use.

you can have some more information on that as follows,
http://en.wikipedia.org/wiki/InstallAnywhere

Also you need to make sure what will be your usage ambit, "commercial" or "personal", before using one free version of any software.

On "secure code", I think other members had provided the valuable information already.

~ Joydeep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic