• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Security of Java Jar file

 
Ranch Hand
Posts: 79
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 15529
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 43
Eclipse IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic