Matthias
Apr 23, 2004 1:52:41 PM

could not start java vm using launchanywhere

If I try to start winsql for jdbc using the exe file WinSQLLite4JDBC.exe on Win2K I receive an error message - 'could not create java vm'. After adapting runLite.bat winsql is startable using the bat file. Attached you'll find runLite.bat and WinSQLLite4JDBC.lax. Does anyone had same problems and how to solve it. Thanks in advance - Matthias contents of WinSQLLite4JDBC.lax: # LaunchAnywhere (tm) Executable Properties File - Zero G Software, Inc. # LAX.APPLICATION.NAME # -------------------- # the default name of this executable -- do not edit lax.application.name=WinSQLLite4JDBC.exe # LAX.CLASS.PATH # -------------- # the Java classpath necessary to run this application # Can be separated by colons (Mac OS/Unix) or semicolons (Windows) lax.class.path=lib/log4j-1.2.6.jar;lib/WinSQLLite.jar;lax.jar # LAX.COMMAND.LINE.ARGS # --------------------- # what will be passed to the main method -- be sure to quote arguments with spaces in them lax.command.line.args=$CMD_LINE_ARGUMENTS$ # LAX.DIR # ------- # path to directory holding LaunchAnywhere's native launcher lax.dir=C:\\Program files\\WinSQLLite4Jdbc\\ # LAX.MAIN.CLASS # -------------- # the class that contains the main method for the application lax.main.class=com.synametrics.gui.WinSQLApp # LAX.MAIN.METHOD # --------------- # the method in the main class that will be invoked lax.main.method=main # LAX.NL.CURRENT.VM # ----------------- # the VM to use for the next launch lax.nl.current.vm=d:\\j2sdk1.4.2_02\\bin\\java.exe # LAX.NL.JAVA.LAUNCHER.MAIN.CLASS # ------------------------------- # main class of LaunchAnywhere's java launcher -- do not adjust lax.nl.java.launcher.main.class=com.zerog.lax.LAX # LAX.NL.JAVA.LAUNCHER.MAIN.METHOD # -------------------------------- # main method of LaunchAnywhere's java launcher -- do not adjust lax.nl.java.launcher.main.method=main # LAX.NL.JAVA.OPTION.ADDITIONAL # ----------------------------- # Maximum heap size set to 512 MB lax.nl.java.option.additional=-Xmx512mb # LAX.NL.VALID.VM.LIST # -------------------- # a string containing one or more of [ ALL JDK JRE J1 J2 JRE_J1 JDK_J1 JRE_J2 JDK_J2 MSJ MRJ ] # delimited by spaces or commas. If the native launcher cannot find the current vm, # it will search for ones in this list lax.nl.valid.vm.list=J2 J1 MSJ MRJ # LAX.NL.WIN32.MICROSOFTVM.MIN.VERSION # ------------------------------------ # The minimum version of Microsoft's VM this application will run against lax.nl.win32.microsoftvm.min.version=2750 # LAX.ROOT.INSTALL.DIR # -------------------- # path to the installdir magic folder lax.root.install.dir=C:\\Program files\\WinSQLLite4Jdbc # LAX.STDERR.REDIRECT # ------------------- # leave blank for no output, "console" to send to a console window, # and any path to a file to save to the file lax.stderr.redirect= # LAX.STDIN.REDIRECT # ------------------ # leave blank for no input, "console" to read from the console window, # and any path to a file to read from that file lax.stdin.redirect= # LAX.STDOUT.REDIRECT # ------------------- # leave blank for no output, "console" to send to a console window, # and any path to a file to save to the file lax.stdout.redirect= # LAX.USER.DIR # ------------ # left blank, this property will cause the native launcher to not # alter the platform default behavior for setting the user dir. # To override this you may set this property to a relative or absolute path. # Relative paths are relative to the launcher. lax.user.dir=. # LAX.VERSION # ----------- # version of LaunchAnywhere that created this properties file lax.version=5.0 content of runLite.bat: @echo off setlocal SET JPATH=d:\j2sdk1.4.2_02\bin\ if exist jre\bin SET JPATH=jre\bin\ echo %JPATH% rem ----------------------------------------------------------------------------- ---------------------- rem If you like to use a custom look and feel, add the appropriate jar file in CLASSPATH rem and add a -DCustomLookAndFeel parameter for JVM parameter. rem Example: rem rem set _CP=CustomLookAndFeel.jar;%_CP% rem %JPATH%java -Xmx512m -cp %_CP% -DCustomLookAndFeel=com.foo.lookandfeel com.synametrics.gui.WinSQLApp rem rem ----------------------------------------------------------------------------- ---------------------- set _CP=.\lib\WinSQLLite.jar;.\lib\log4j-1.2.6.jar echo %JPATH%java -Xmx512m -classpath %_CP% com.synametrics.gui.WinSQLApp %JPATH%java -Xmx512m -classpath %_CP% com.synametrics.gui.WinSQLApp :end endlocal


Marra
Jul 25, 2004 2:04:45 AM

could not start java vm using launchanywhere

I have the same problem. I installed the package without the JVM included (I have Sun 1.4.2 SDK already installed). When I launch the WinSQLLite4JDBC.exe I get "Can't launch executable. Could not create a Java VM. LaunchAnywhere Error" however runLite.bat works fine.


Anonymous
Jul 25, 2004 2:18:06 AM

could not start java vm using launchanywhere

The LaunchAnywhere is a part of InstallAnywhere from Zero G; I found this on the Zero G support forum (http://gamma.zerog.com/devnet_l/uT.jsp?page=kb/viewKB.jsp&itemID=278) ---QUOTE---- Error: When I run my installer I recive an error "Cannot find jvm.dll" or similar Cause: Installer is running against JRE 1.4 on windows. Installers built with versions of InstalAnywhere prior to InstallAnywhere 4.5.3 do not support the JRE or JDK 1.4. With this release, Sun moved a few files vital to InstallAnywhere's LaunchAnywhere technology - specificaly the jvm.dll mentioned in the error. This was resolved with a modification to LaunchAnywhere that premiered in the InstallAnywhere 4.5.3 release, and is availble in all releases from that point on. Resolution: Either bundled a JRE 1.3.1 or earlier, or upgrade to InstallAnywhere 4.5.3 or later.


sonzymahn
Aug 10, 2007 4:31:19 AM

could not start java vm using launchanywhere

>If I try to start winsql for jdbc using the exe file WinSQLLite4JDBC.exe on Win2K >I receive an error message - 'could not create java vm'. After adapting runLite.bat >winsql is startable using the bat file. Attached you'll find runLite.bat and WinSQLLite4JDBC.lax. >Does anyone had same problems and how to solve it. Thanks in advance - Matthias > >contents of WinSQLLite4JDBC.lax: ># LaunchAnywhere (tm) Executable Properties File - Zero G Software, Inc. > ># LAX.APPLICATION.NAME ># -------------------- ># the default name of this executable -- do not edit > >lax.application.name=WinSQLLite4JDBC.exe > > ># LAX.CLASS.PATH ># -------------- ># the Java classpath necessary to run this application ># Can be separated by colons (Mac OS/Unix) or semicolons (Windows) > >lax.class.path=lib/log4j-1.2.6.jar;lib/WinSQLLite.jar;lax.jar > > ># LAX.COMMAND.LINE.ARGS ># --------------------- ># what will be passed to the main method -- be sure to quote arguments with spaces >in them > >lax.command.line.args=$CMD_LINE_ARGUMENTS$ > > ># LAX.DIR ># ------- ># path to directory holding LaunchAnywhere's native launcher > >lax.dir=C:\\Program files\\WinSQLLite4Jdbc\\ > > ># LAX.MAIN.CLASS ># -------------- ># the class that contains the main method for the application > >lax.main.class=com.synametrics.gui.WinSQLApp > > ># LAX.MAIN.METHOD ># --------------- ># the method in the main class that will be invoked > >lax.main.method=main > > ># LAX.NL.CURRENT.VM ># ----------------- ># the VM to use for the next launch > >lax.nl.current.vm=d:\\j2sdk1.4.2_02\\bin\\java.exe > > ># LAX.NL.JAVA.LAUNCHER.MAIN.CLASS ># ------------------------------- ># main class of LaunchAnywhere's java launcher -- do not adjust > >lax.nl.java.launcher.main.class=com.zerog.lax.LAX > > ># LAX.NL.JAVA.LAUNCHER.MAIN.METHOD ># -------------------------------- ># main method of LaunchAnywhere's java launcher -- do not adjust > >lax.nl.java.launcher.main.method=main > > ># LAX.NL.JAVA.OPTION.ADDITIONAL ># ----------------------------- ># Maximum heap size set to 512 MB > >lax.nl.java.option.additional=-Xmx512mb > > ># LAX.NL.VALID.VM.LIST ># -------------------- ># a string containing one or more of [ ALL JDK JRE J1 J2 JRE_J1 JDK_J1 JRE_J2 JDK_J2 >MSJ MRJ ] ># delimited by spaces or commas. If the native launcher cannot find the current >vm, ># it will search for ones in this list > >lax.nl.valid.vm.list=J2 J1 MSJ MRJ > > ># LAX.NL.WIN32.MICROSOFTVM.MIN.VERSION ># ------------------------------------ ># The minimum version of Microsoft's VM this application will run against > >lax.nl.win32.microsoftvm.min.version=2750 > > ># LAX.ROOT.INSTALL.DIR ># -------------------- ># path to the installdir magic folder > >lax.root.install.dir=C:\\Program files\\WinSQLLite4Jdbc > > ># LAX.STDERR.REDIRECT ># ------------------- ># leave blank for no output, "console" to send to a console window, ># and any path to a file to save to the file > >lax.stderr.redirect= > > ># LAX.STDIN.REDIRECT ># ------------------ ># leave blank for no input, "console" to read from the console window, ># and any path to a file to read from that file > >lax.stdin.redirect= > > ># LAX.STDOUT.REDIRECT ># ------------------- ># leave blank for no output, "console" to send to a console window, ># and any path to a file to save to the file > >lax.stdout.redirect= > > ># LAX.USER.DIR ># ------------ ># left blank, this property will cause the native launcher to not ># alter the platform default behavior for setting the user dir. ># To override this you may set this property to a relative or absolute path. ># Relative paths are relative to the launcher. > >lax.user.dir=. > > ># LAX.VERSION ># ----------- ># version of LaunchAnywhere that created this properties file > >lax.version=5.0 > >content of runLite.bat: >@echo off >setlocal >SET JPATH=d:\j2sdk1.4.2_02\bin\ >if exist jre\bin SET JPATH=jre\bin\ >echo %JPATH% >rem ---------------------------------------------------------------------------- >---------------------- >rem If you like to use a custom look and feel, add the appropriate jar file in CLASSPATH >rem >and add a -DCustomLookAndFeel parameter for JVM parameter. >rem Example: >rem >rem set _CP=CustomLookAndFeel.jar;%_CP% >rem %JPATH%java -Xmx512m -cp %_CP% -DCustomLookAndFeel=com.foo.lookandfeel com.synametrics.gui.WinSQLApp >rem > >rem ----------------------------------------------------------------------------- >---------------------- >set _CP=.\lib\WinSQLLite.jar;.\lib\log4j-1.2.6.jar >echo %JPATH%java -Xmx512m -classpath %_CP% com.synametrics.gui.WinSQLApp >%JPATH%java -Xmx512m -classpath %_CP% com.synametrics.gui.WinSQLApp >:end >endlocal


floe
Aug 23, 2009 11:37:57 PM

could not start java vm using launchanywhere

lax.nl.java.option.additional=-Xmx512mb should be lax.nl.java.option.additional=-Xmx512m >If I try to start winsql for jdbc using the exe file WinSQLLite4JDBC.exe on Win2K >I receive an error message - 'could not create java vm'. After adapting runLite.bat >winsql is startable using the bat file. Attached you'll find runLite.bat and WinSQLLite4JDBC.lax. >Does anyone had same problems and how to solve it. Thanks in advance - Matthias > >contents of WinSQLLite4JDBC.lax: ># LaunchAnywhere (tm) Executable Properties File - Zero G Software, Inc. > ># LAX.APPLICATION.NAME ># -------------------- ># the default name of this executable -- do not edit > >lax.application.name=WinSQLLite4JDBC.exe > > ># LAX.CLASS.PATH ># -------------- ># the Java classpath necessary to run this application ># Can be separated by colons (Mac OS/Unix) or semicolons (Windows) > >lax.class.path=lib/log4j-1.2.6.jar;lib/WinSQLLite.jar;lax.jar > > ># LAX.COMMAND.LINE.ARGS ># --------------------- ># what will be passed to the main method -- be sure to quote arguments with spaces >in them > >lax.command.line.args=$CMD_LINE_ARGUMENTS$ > > ># LAX.DIR ># ------- ># path to directory holding LaunchAnywhere's native launcher > >lax.dir=C:\\Program files\\WinSQLLite4Jdbc\\ > > ># LAX.MAIN.CLASS ># -------------- ># the class that contains the main method for the application > >lax.main.class=com.synametrics.gui.WinSQLApp > > ># LAX.MAIN.METHOD ># --------------- ># the method in the main class that will be invoked > >lax.main.method=main > > ># LAX.NL.CURRENT.VM ># ----------------- ># the VM to use for the next launch > >lax.nl.current.vm=d:\\j2sdk1.4.2_02\\bin\\java.exe > > ># LAX.NL.JAVA.LAUNCHER.MAIN.CLASS ># ------------------------------- ># main class of LaunchAnywhere's java launcher -- do not adjust > >lax.nl.java.launcher.main.class=com.zerog.lax.LAX > > ># LAX.NL.JAVA.LAUNCHER.MAIN.METHOD ># -------------------------------- ># main method of LaunchAnywhere's java launcher -- do not adjust > >lax.nl.java.launcher.main.method=main > > ># LAX.NL.JAVA.OPTION.ADDITIONAL ># ----------------------------- ># Maximum heap size set to 512 MB > >lax.nl.java.option.additional=-Xmx512mb > > ># LAX.NL.VALID.VM.LIST ># -------------------- ># a string containing one or more of [ ALL JDK JRE J1 J2 JRE_J1 JDK_J1 JRE_J2 JDK_J2 >MSJ MRJ ] ># delimited by spaces or commas. If the native launcher cannot find the current >vm, ># it will search for ones in this list > >lax.nl.valid.vm.list=J2 J1 MSJ MRJ > > ># LAX.NL.WIN32.MICROSOFTVM.MIN.VERSION ># ------------------------------------ ># The minimum version of Microsoft's VM this application will run against > >lax.nl.win32.microsoftvm.min.version=2750 > > ># LAX.ROOT.INSTALL.DIR ># -------------------- ># path to the installdir magic folder > >lax.root.install.dir=C:\\Program files\\WinSQLLite4Jdbc > > ># LAX.STDERR.REDIRECT ># ------------------- ># leave blank for no output, "console" to send to a console window, ># and any path to a file to save to the file > >lax.stderr.redirect= > > ># LAX.STDIN.REDIRECT ># ------------------ ># leave blank for no input, "console" to read from the console window, ># and any path to a file to read from that file > >lax.stdin.redirect= > > ># LAX.STDOUT.REDIRECT ># ------------------- ># leave blank for no output, "console" to send to a console window, ># and any path to a file to save to the file > >lax.stdout.redirect= > > ># LAX.USER.DIR ># ------------ ># left blank, this property will cause the native launcher to not ># alter the platform default behavior for setting the user dir. ># To override this you may set this property to a relative or absolute path. ># Relative paths are relative to the launcher. > >lax.user.dir=. > > ># LAX.VERSION ># ----------- ># version of LaunchAnywhere that created this properties file > >lax.version=5.0 > >content of runLite.bat: >@echo off >setlocal >SET JPATH=d:\j2sdk1.4.2_02\bin\ >if exist jre\bin SET JPATH=jre\bin\ >echo %JPATH% >rem ---------------------------------------------------------------------------- >---------------------- >rem If you like to use a custom look and feel, add the appropriate jar file in CLASSPATH >rem >and add a -DCustomLookAndFeel parameter for JVM parameter. >rem Example: >rem >rem set _CP=CustomLookAndFeel.jar;%_CP% >rem %JPATH%java -Xmx512m -cp %_CP% -DCustomLookAndFeel=com.foo.lookandfeel com.synametrics.gui.WinSQLApp >rem > >rem ----------------------------------------------------------------------------- >---------------------- >set _CP=.\lib\WinSQLLite.jar;.\lib\log4j-1.2.6.jar >echo %JPATH%java -Xmx512m -classpath %_CP% com.synametrics.gui.WinSQLApp >%JPATH%java -Xmx512m -classpath %_CP% com.synametrics.gui.WinSQLApp >:end >endlocal

Navigation

Social Media

Powered by 10MinutesWeb.com