Java Launcher
-
I am trying to build a Java launcher for a Java Product. Executing a Java application with a Batch file looks akward. I want a write code so that a native application written in VC++ can launch the Java application. The batch file of the application looks like this --------------------------------------------------------------------------------------------------- set path=%PATH%;.\java\j2re1.4.2_07\bin;.\java\j2re1.4.2_07\lib;.\JMF2.1.1e\bin; set classpath=.\JMF2.1.1e\lib\sound.jar;.\JMF2.1.1e\lib\jmf.jar; java -classpath Sample.jar;%CLASSPATH%;%JMFHOME% -Djava.library.path=./Samplelib NrthSample.SampleMainApplication --------------------------------------------------------------------------------------------------- Is there any way to lauch the Java application straight for the native application without the batch file? Can someone tell me which functions to use?? Regards.
-
I am trying to build a Java launcher for a Java Product. Executing a Java application with a Batch file looks akward. I want a write code so that a native application written in VC++ can launch the Java application. The batch file of the application looks like this --------------------------------------------------------------------------------------------------- set path=%PATH%;.\java\j2re1.4.2_07\bin;.\java\j2re1.4.2_07\lib;.\JMF2.1.1e\bin; set classpath=.\JMF2.1.1e\lib\sound.jar;.\JMF2.1.1e\lib\jmf.jar; java -classpath Sample.jar;%CLASSPATH%;%JMFHOME% -Djava.library.path=./Samplelib NrthSample.SampleMainApplication --------------------------------------------------------------------------------------------------- Is there any way to lauch the Java application straight for the native application without the batch file? Can someone tell me which functions to use?? Regards.
vyjesh wrote: Is there any way to lauch the Java application straight for the native application without the batch file? Can someone tell me which functions to use?? Yes. Google for 'Java launcher' ;)