Hi guys New to this forum and this is my first post. I Got 2 questions.
- Can a Java application run standalone ? I mean can it be converted to an .exe file for running. I'm planning to write a commercial application and because I assume lots of newbies wont know how to run java files and wont like to mess with it thats why I'm investigating if such an application could be converted to a .exe.
- Can a Java application use .dll files ? If the answer is yes then how...
Thanks in advanced guys [ December 18, 2004: Message edited by: The Matrix ]
Option 1 (Easy) Make a jar and a .bat file with a customized ICO icon to look like .exe app and include commands to load it. e.g: >echo off >java -jar <myapp.jar>
Option 2 (Tricky) Make an .exe file using another Windows-Based language (VB,Delphi,C++) whose only job would be to execute the necessary commands in shell (e.g. shell("c:\jdk\java.exe -jar c:\myapp\myapp.jar")). So the user thinks it's an .exe (i also think that J2exe does the same thing!)
To make it more complete (in a professional way) you could also use the included Installation Wizards that VB or Delphi have to deploy your apps using a CD and prepare the necessary .bat file. In that case I would suggest including the \bin directory of your JRE version to avoid installing JRE on clients machine.
It takes some work done but it gets as standalone as possible and once done, you can use it for all your apps and if using the System UI skin (included in Java) they will never know it's Java!!!
Hope that helped
.: A few years ago, I discovered the meaning of life, but forgot to write it down... :.
subject: Can Java run standalone / Can just load dlls ?