Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » -vm confusion
-vm confusion [message #243015] Thu, 13 December 2007 18:09 Go to next message
Eric Kolotyluk is currently offline Eric KolotylukFriend
Messages: 35
Registered: July 2009
Member
OK, so I'm running Eclipse on Windows

In the shortcut that I use to start Eclipse I put

-vm "c:\Program Files\Java\jre1.6.0_03\bin\javaw"

and Eclipse starts just fine. However when I put the following in the
eclipse.ini file

-vm
c:\Program Files\Java\jre1.6.0_03\bin\javaw

I get

Java Virtual Machine Launcher
Could not fine the main class. Program will exit.

and it then opens a window listing all the program arguments. According to
the on-line help this is the correct way to specify the JVM.

I suspect the problem is because there is a space in "Program Files" and
that this has exposed a bug in the Eclipse startup.

Does anyone know how to get around this bug?

Cheers, Eric
Re: -vm confusion [message #243016 is a reply to message #243015] Thu, 13 December 2007 19:03 Go to previous messageGo to next message
Eric Kolotyluk is currently offline Eric KolotylukFriend
Messages: 35
Registered: July 2009
Member
OK, now I'm questioning my sanity.

The eclipse.ini file is now working correctly with the following

-vm
c:\Program Files\Java\jre1.6.0_03\bin\javaw

I have no explanation - it just started working for no reason.

Cheers, Eric
Re: -vm confusion [message #243017 is a reply to message #243015] Thu, 13 December 2007 19:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Eric Kolotyluk" <eric.kolotyluk@kodak.com> wrote in message
news:5ccc07822fe71858b6c987cbd220055d$1@www.eclipse.org...
> OK, so I'm running Eclipse on Windows
>
> In the shortcut that I use to start Eclipse I put
>
> -vm "c:\Program Files\Java\jre1.6.0_03\bin\javaw"
>
> and Eclipse starts just fine. However when I put the following in the
> eclipse.ini file
>
> -vm
> c:\Program Files\Java\jre1.6.0_03\bin\javaw

Does it work if you put quote marks around that second line, just as you did
in the command-line version?
Re: -vm confusion [message #243026 is a reply to message #243016] Thu, 13 December 2007 21:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Eric Kolotyluk" <eric.kolotyluk@kodak.com> wrote in message
news:0e3b7ab2efaae79bef9063bec76efcbd$1@www.eclipse.org...
> OK, now I'm questioning my sanity.

There's never any point in questioning your own sanity - if you're insane,
other people will question it for you :-)
Re: -vm confusion [message #243053 is a reply to message #243016] Fri, 14 December 2007 12:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: al_PUBLIC.gmx.de

On Thu, 13 Dec 2007 19:03:16 +0000 (UTC), eric.kolotyluk@kodak.com
(Eric Kolotyluk) wrote:

>OK, now I'm questioning my sanity.
>
>The eclipse.ini file is now working correctly with the following
>
> -vm
> c:\Program Files\Java\jre1.6.0_03\bin\javaw
>
>I have no explanation - it just started working for no reason.
>
>Cheers, Eric

The eclipse.ini file is extremely fragile. If you've typed any sort of
whitespace after any of the lines in your .ini file it wouldn't work.


Achim
--
Eclipse Stammtisch Braunschweig/Wolfsburg/usw. am 18.12.2007
siehe http://www.bredex.de/de/news/eclipseregtable.html
Re: -vm confusion [message #243069 is a reply to message #243026] Fri, 14 December 2007 14:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Walter Harley wrote:
> "Eric Kolotyluk" <eric.kolotyluk@kodak.com> wrote in message
> news:0e3b7ab2efaae79bef9063bec76efcbd$1@www.eclipse.org...
>> OK, now I'm questioning my sanity.
>
> There's never any point in questioning your own sanity - if you're insane,
> other people will question it for you :-)

And the definition of insanity is relative, anyway.
"A man talking sense to himself is no more insane than a man talking
nonsense not to himself...or just as insane."
-Rosencrantz and Guildenstern are Dead
Re: -vm confusion [message #243128 is a reply to message #243053] Fri, 14 December 2007 17:25 Go to previous messageGo to next message
Eric Kolotyluk is currently offline Eric KolotylukFriend
Messages: 35
Registered: July 2009
Member
Achim Lörke wrote:

> The eclipse.ini file is extremely fragile. If you've typed any sort of
> whitespace after any of the lines in your .ini file it wouldn't work.

> Achim
> --
> Eclipse Stammtisch Braunschweig/Wolfsburg/usw. am 18.12.2007
> siehe http://www.bredex.de/de/news/eclipseregtable.html

I may have left some whitespace, but I tried several times doing different
things.

At any rate every Java developer should learn about String.trim(), it
comes in really handy in cases like these ;-)

Cheers, Eric
Re: -vm confusion [message #243132 is a reply to message #243017] Fri, 14 December 2007 17:27 Go to previous messageGo to next message
Eric Kolotyluk is currently offline Eric KolotylukFriend
Messages: 35
Registered: July 2009
Member
Walter Harley wrote:

> Does it work if you put quote marks around that second line, just as you did
> in the command-line version?

I tried all variations of quotes I could think of, but that seemed to make
matters worse.

Cheers, Eric
Re: -vm confusion [message #243135 is a reply to message #243026] Fri, 14 December 2007 17:30 Go to previous message
Eric Kolotyluk is currently offline Eric KolotylukFriend
Messages: 35
Registered: July 2009
Member
OK, I couldn't stop laughing for 5 minutes because of you guys...

If I'm going insane, at least I'll go with a smile.

Cheers, Eric
Previous Topic:Problem for java client comsuming .net web services
Next Topic:Select Required Projects in Find Updates
Goto Forum:
  


Current Time: Thu Aug 08 14:28:32 GMT 2024

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

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

Back to the top