Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to update VM argument to point to java.exe?
How to update VM argument to point to java.exe? [message #460372] Wed, 20 December 2006 20:12 Go to next message
Eclipse UserFriend
In the "Launcher" editor (or config.ini), how do I set the VM arguments so
that my exported binary picks up "java.exe" (rather than javaw.exe) from the
installed JRE? I don't want to hard-code the path to the installed java.exe
on my hard drive as the VM argument, and am hoping there is an environment
variable I can use.

Thx!
Re: How to update VM argument to point to java.exe? [message #460487 is a reply to message #460372] Thu, 21 December 2006 10:17 Go to previous messageGo to next message
Eclipse UserFriend
probably -vm /path/to/other/bin/java in the eclipse.ini somewhere.

Later,
PW
Re: How to update VM argument to point to java.exe? [message #460538 is a reply to message #460487] Thu, 21 December 2006 14:46 Go to previous messageGo to next message
Eclipse UserFriend
I'm guessing /path/to/other/bin/java is the absolute hard-coded path. Any
chance that we could determine this at runtime (in case user has installed
jre to a different path)?

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:eme8k5$9oq$3@utils.eclipse.org...
> probably -vm /path/to/other/bin/java in the eclipse.ini somewhere.
>
> Later,
> PW
Re: How to update VM argument to point to java.exe? [message #460593 is a reply to message #460538] Fri, 22 December 2006 10:09 Go to previous messageGo to next message
Eclipse UserFriend
If you want something that's going to pull out variables from an environment, write a batch file or shell script that will do it for you.

@echo off
eclipse -vm %JAVA_HOME%\bin\javaw.exe


#!/bin/sh
eclipse -vm $JAVA_HOME/bin/java


Alex.
Re: How to update VM argument to point to java.exe? [message #460605 is a reply to message #460593] Fri, 22 December 2006 13:08 Go to previous message
Eclipse UserFriend
I see. No way from within the environment. Thx!

"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:15549826.1166800185865.JavaMail.root@cp1.javalobby.org...
> If you want something that's going to pull out variables from an
> environment, write a batch file or shell script that will do it for you.
>
>
> @echo off
> eclipse -vm %JAVA_HOME%\bin\javaw.exe
> 

>
>
> #!/bin/sh
> eclipse -vm $JAVA_HOME/bin/java
> 

>
> Alex.
Previous Topic:summarize toolbar actions
Next Topic:How to display a View defined in another plug-in?
Goto Forum:
  


Current Time: Thu Mar 27 23:44:35 EDT 2025

Powered by FUDForum. Page generated in 0.06969 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top