Tuesday, June 5, 2001 02:20 PM
1 - Use JNI to start the Java VM and load your startup class (wrote in C). Write a NT Service.
2 - In the "loader" (it's a NT Service), specify the dependencies for your Service.
1,2,3 - If you look the file src.jar (Winzip can open), in JDK, exists a file named java.c, that can be an example how to load a java class in C using JNI.
3 - If you don't want DOS box, use a Win32 App e not Win32 Console App.
4 - To make a java to exe: you will use gcc (GCJ
) to convert java to native, or use JNI to load JVM and your class.