diff options
author | Andrew Niefer | 2006-11-29 20:20:45 +0000 |
---|---|---|
committer | Andrew Niefer | 2006-11-29 20:20:45 +0000 |
commit | c1e46cce1658bf3434fcf28d64d7f91ab7817510 (patch) | |
tree | 474aa3275ad7c924e5a8626a6a3b0dcc16de852a | |
parent | a6880d1931f4c77e49503cb0f690068ce80e1419 (diff) | |
download | rt.equinox.framework-c1e46cce1658bf3434fcf28d64d7f91ab7817510.tar.gz rt.equinox.framework-c1e46cce1658bf3434fcf28d64d7f91ab7817510.tar.xz rt.equinox.framework-c1e46cce1658bf3434fcf28d64d7f91ab7817510.zip |
Still need to look for the library when the vm is shipped
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/library/eclipse.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/library/eclipse.c b/bundles/org.eclipse.equinox.launcher/library/eclipse.c index 26f95d8fd..7bdfdc089 100644 --- a/bundles/org.eclipse.equinox.launcher/library/eclipse.c +++ b/bundles/org.eclipse.equinox.launcher/library/eclipse.c @@ -385,20 +385,20 @@ int run(int argc, _TCHAR* argv[], _TCHAR* vmArgs[]) /* Either verify the VM specified by the user or attempt to find the VM in the user's PATH. */ javaVM = findCommand( vmName ); - javaVM = findVMLibrary( javaVM ); - - /* If the VM was not found, display a message and exit. */ - if (javaVM == NULL) - { - if (vmSearchPath != NULL) vmName = vmSearchPath; /* used default VM searching */ - errorMsg = malloc( (_tcslen(noVMMsg) + _tcslen(officialName) + _tcslen(vmName) + 10) * sizeof(_TCHAR) ); - _stprintf( errorMsg, noVMMsg, officialName, vmName ); - displayMessage( officialName, errorMsg ); - free( errorMsg ); - exit(1); - } } + javaVM = findVMLibrary( javaVM ); + /* If the VM was not found, display a message and exit. */ + if (javaVM == NULL) + { + if (vmSearchPath != NULL) vmName = vmSearchPath; /* used default VM searching */ + errorMsg = malloc( (_tcslen(noVMMsg) + _tcslen(officialName) + _tcslen(vmName) + 10) * sizeof(_TCHAR) ); + _stprintf( errorMsg, noVMMsg, officialName, vmName ); + displayMessage( officialName, errorMsg ); + free( errorMsg ); + exit(1); + } + /* Find the startup.jar */ jarFile = findStartupJar(); if(jarFile == NULL) { |