Hi, Please remember to exclude you .java files on your compiled .jar executable file. How ever, you customers can de compile your .class files to see your .java file. I am still looking for a way to hide everything. Any idea?
On 11/24/10, Mihai DINCA <mihai.di...@free.fr> wrote: > Hi Bruno > > There is the "exe" way to do it and the "java" way to do it. > > 1. The "exe" way: > Try download the GNU compiler (http://gcc.gnu.org/releases.html). It > includes a Java compiler (i.e. ".java" to ".obj" to ".exe"). > > It might create a .exe (it accepts a subset of Java - not everything) > that can execute only on the OS for which it is compiled. > > 2. The "java" way: > You can do it "by hand", but easier using NetBeans: generate a ".jar" > file. (NetBeans automatically generates the .jar file on compiling. For > e.g. if your project is called MyProject then it will create the > MyProject.jar file.) > > Than send the .jar file on CD (for e.g. the file "MyProject.jar"). When > your customer doubleclicks the file (on Windows and other GUI based > systems), then the program executes as any .exe file (as long as Java is > installed on his/her system - usually it is). If He/she has problems, > then he/she must use the command line "java -jar MyProject.jar" (if the > java or java.exe can be found in the $PATH or %PATH% and MyProject.jar > is in the current directory). > > Hope it helps > Mihai > > > > Le 24/11/2010 18:56, victor bruno a écrit : >> Hi fellows: >> >> Do you have any idea on how to create executable files for java programs? >> For instance, if my program is called GM,how can I created gm.exe,so >> as to copy it to a disc and handle to the buyer? >> >> Thanks, >> >> victor Bruno >> -- >> To post to this group, send email to >> javaprogrammingwithpassion@googlegroups.com >> To unsubscribe from this group, send email to >> javaprogrammingwithpassion+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/javaprogrammingwithpassion?hl=en > > -- > To post to this group, send email to > javaprogrammingwithpassion@googlegroups.com > To unsubscribe from this group, send email to > javaprogrammingwithpassion+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/javaprogrammingwithpassion?hl=en -- Sent from my mobile device -- To post to this group, send email to javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en