Is it possible to package a complete Java Application in CD for Comm. Distr

Good morning or evening to all:

I am interested in finishing a complete application to the point where its ready to be packaged as a commerical product off the shelf, in very much the same way you would write an Windows executable application with installation setup package. I know the Java is the warm fuzzy choice of the business, and that's what I have been trained in. Anyway, I am in the process of developing an education program from my children's school district on my own (Free), and I would like to finish the application where I could put it on disk and hand it to the system administrator to install on their systems. How do I put my java application in a finished state where no can see or edit the program code?

[741 byte] By [preston@largea] at [2007-11-27 1:39:48]
# 1

> Good morning or evening to all:

>

> I am interested in finishing a complete application

> to the point where its ready to be packaged as a

> commerical product off the shelf, in very much the

> same way you would write an Windows executable

> application with installation setup package.

Not really Java's core strength. I know that commercial products like InstallShield can do it. You might check source forge for an open source version. Java web start may also be an option. Depends if it is a standalone application or a web application and if you have a server involved as well. Hard to say.

> I know

> the Java is the warm fuzzy choice of the business,

> and that's what I have been trained in. Anyway, I am

> in the process of developing an education program

> from my children's school district on my own (Free),

> and I would like to finish the application where I

> could put it on disk and hand it to the system

> administrator to install on their systems. How do I

> put my java application in a finished state where no

> can see or edit the program code?

This can be done, but as byte-code (class files) is trivial to reverse engineer, even with obfuscation, it will be hard to 'protect' your code unless you also have a server somewhere that is doing some kind of key exchange to decrypt your class files on the fly. It is a decent amount of work using several different technologies, and in the end, someone can still see your code 'in the clear' in memory.

- Saish

Saisha at 2007-7-12 0:53:17 > top of Java-index,Java Essentials,Java Programming...
# 2
If the JVM is already on the computers this will be installed in then a simple jar file with a batch file that will copy it to the hardisk will do it. For that matter - if it's independant - it could just be run directly from the CD. Suppose you want fancy though ;o)
abillconsla at 2007-7-12 0:53:17 > top of Java-index,Java Essentials,Java Programming...
# 3

Borland, Jetbrains, Oracle, IBM, Sun, and many others have been able to do it...

Of course your REAL question is the usual "I want to compile Java to native Windows code and prevent anyone from decompiling it because my code is brillant and top secret", to which the answer can only be "if you really have such a requirement you don't have to ask that question as you'd have been in this line of work long enough to figure it out for yourself".

jwentinga at 2007-7-12 0:53:17 > top of Java-index,Java Essentials,Java Programming...
# 4
Disregarding the last sentence of your post, Java Web Start can do all of the rest. Install from CD, etc.
ChuckBinga at 2007-7-12 0:53:17 > top of Java-index,Java Essentials,Java Programming...