commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <dirk.verbe...@pandora.be>
Subject Re: Java Launcher unable to create JVM
Date Tue, 24 Aug 2004 21:17:43 GMT
Is the example working?
What's your environment? (environment variables, JVM version, ...)

-- Dirk

Minearo, Peter wrote:
> I am trying to use the Commons Launcher for the first time and I am getting a dialog
box popping up stating that the Java Virtual Machine can not be created.  I run the 'bat'
file listed below, and after a couple of seconds, the dialog box pops up.  Is there something
I am missing for the Launcher?  I looked at the example and read the API documentation, but
I do not see what is wrong.  Can anyone help?
> 
> Thanks,
> 
> Peter
> 
> 
> launcher-ams.bat
> 
> @echo off
> if "%OS%" == "Windows_NT" setlocal
> 
> rem Execute the Launcher using the "ant" target
> "%JAVA_HOME%\bin\java.exe" -classpath . LauncherBootstrap -verbose ams_launcher
> 
> :end
> 
> 
> 
> launcher.xml
> 
> <project name="Ant Launcher" default="ams_launcher" basedir=".">
> 
>     <property name="app.home" location="${basedir}/../.."/>
>     <property name="lib.dir" location="${app.home}/../../lib"/>
>     <property name="config.dir" location="${app.home}/config"/>
> 
>     <path id="base.class.path">
>         <fileset dir="${basedir}/../lib" includes="*.jar"/>
>         <fileset dir="${app.home}/lib" includes="*.jar"/>
>         <fileset dir="${config.dir}"/>
>     </path>
> 
>     <jvmargset id="base.jvm.args">
>         <jvmarg value="-appFrame"/>
>         <jvmarg value="${config.dir}\ApplicationConfigurators.xml"/>
>         <jvmarg value="${config.dir}\webApplication\"/>
>         <jvmarg value="${config.dir}\JNI\"/>
>     </jvmargset>
> 
>     <target name="ams_launcher" description="Execute AMS using the Launcher" >
>         <launch classname="[package].TestLauncher"
>             waitforchild="${wait}"
>             print="${print}"
>             requiretools="true"
>             redirectoutput="false"
>             displayMinimizedWindow="true"
>             disposeMinimizedWindow="true"
>             minimizedWindowTitle="AMS Launcher">
>             <jvmargset refid="base.jvm.args"/>
>             <classpath refid="base.class.path"/>
>         </launch>
>     </target>
> 
> </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message