Java secure code

Posted on 2011-10-13
Last Modified: 2012-05-12
I want to sell a Java application that can not be cracked...what technology to use? I have it now in SWING but it is not safe. Should I use JNLP or JAVA FX (I never used them)? or what?
Question by:ionutcib
    LVL 86

    Expert Comment

    You can only secure an app by keeping it server-side, ie making it a web app. All you can do otherwise is make it more or less difficult to crack, but it will be crackable

    Author Comment

    So JNLP and JavaFx are not a solution to my problem?
    LVL 86

    Expert Comment

    I'm not sure about JavaFx, but definitely not JNLP - that's client side code and is equivalent to your giving someone an app in a jar to run on their machine (which is actually what you *are* doing ;))
    LVL 47

    Expert Comment


    Read about code obfuscation - that could make your code more difficult to crack.
    There is scertainly no 100% solution; if some knowledgeable person makes it a point
    to crack your code - they will do it.
    Just hope that they will choose other targets.
    LVL 47

    Accepted Solution


    I was recently looking at this book (very cheap at amazon):

    I think if you are concerned abiout these issues, if you look through this book, you'll get some good
    ideas how to reduce the risk for your code. Of course, nothing will give the guarantee. though.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    squareUp  challenge 22 83
    scores100 challenge 3 68
    sumHeights2  challenge 7 52
    countHi challenge 25 63
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now