I was wondering if there is any way to make an .exe file from my java programs? I'm using Visual Cafe' to write my code right now, but cant figure out if it's possible to make an .exe file with it or not.
Any suggestions will help.
Thanks,
Although there are cross compilers which produce windows executables I would not recommend that because they will not support all java features. I depends on the needs your program will address.
Its against priciples of java to create exe.This is to ensure cross-platform compatibility. The compilation process creates a byte code ( class file). WHen u run this class file, the JVM interprets this class. The equivalent of exe would be to create a batch file that has
"java yourclassfile".
Hope this helps
National
I've tried jtoexe, it worked fine, with one minor exception. The exe didn't display my image icons. I even tried making the exe from a zip file, with all the gifs in it.
Hello tixmix,
I too thought that of making the .exe in begining to run the java programs.But then i realized if i am to write and .exe files why should i go for java ? A WORA(write once run anywhere) concept.Then i would have fixed to same old "c" to do all this.
But then i slowly understand the features of java and left that idea.
See, tix java is developed mainly to run it across the platforms.the class files we generate can run on any platform with a simple JRE in that machine.We don't require any thing else.I accept that you and the person who use java might be working on the same platform.But use the java features to full extent.
To solve your problem as suggested by others create a batch file to run your java programs for other to run
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.