How do you edit the eclipse.ini file? [message #874395] |
Sun, 20 May 2012 19:31 |
Larry Towers Messages: 6 Registered: May 2012 |
Junior Member |
|
|
W7 64bit.
When I right-click and select Edit on eclipse.ini, it opens Notepad and it's all one long line with no breaks. That already seems bad since there is no space between options and arguments. Anyway, I'm trying to set the -vm option so I broke the text so that it looks like what you see in the Wiki for eclipse.ini and added (as 2 separate lines)
-vm
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
Saved it and invoked eclipse.exe, but continue to get this message:
A Java Runtime Environment or Java Development Kit must be available ...
No Java virtual machine was found after searching the following locations:
C:\eclipse\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH
Windows7 64bit
|
|
|
Re: How do you edit the eclipse.ini file? [message #874468 is a reply to message #874395] |
Mon, 21 May 2012 00:50 |
|
You should post the full current contents, it would be difficult to figure out otherwise. But it probably didn't completely lack spaces, you were probably seeing a file as it opens in Notepad when the lines are only separated by Line Feeds and not pairs of Carriage Returns and Line Feeds.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Re: How do you edit the eclipse.ini file? [message #875322 is a reply to message #875317] |
Tue, 22 May 2012 14:24 |
|
On 5/22/2012 8:14 AM, Larry Towers wrote:
> What's the situation with the eclipse.ini file as released for Windows
> platforms? The Wiki for eclipse.ini makes it look as if you can read it
> in a straightforward manner with Notepad. From your remarks, that
> appears not to be the case. What text editor sholud I use on eclipse.ini
> on a Windows platform?
>
> As far as posting the current contents, I'm using that which came with
> indigo 64bit and only want to add the -vm option.
It's straight, ASCII text. Use Notepad, Vim, whatever.
|
|
|
Re: How do you edit the eclipse.ini file? [message #875345 is a reply to message #875322] |
Tue, 22 May 2012 15:00 |
Larry Towers Messages: 6 Registered: May 2012 |
Junior Member |
|
|
It may have ASCII text, but it does not read properly. In Notepad, there is no visible spacing or newline-ing as shown in the eclipse Wiki page. Therefore, it isn't clear how one edits it to add an option, in my case the -vm option.
UPDATE: Setting that aside, attached is a human-readable eclipse.ini that does not allow me to set the -vm option.
When I invoke eclipse.exe in the same folder (eclipse) where the eclipse.ini file is, I get the following message:
A Java Runtime Environment or Java Development Kit must be available ...
No Java virtual machine was found after searching the following locations:
C:\eclipse\eclipse\jre\bin\javaw.ex
-
Attachment: eclipse.ini
(Size: 0.50KB, Downloaded 299 times)
Windows7 64bit
[Updated on: Tue, 22 May 2012 15:17] Report message to a moderator
|
|
|
Re: How do you edit the eclipse.ini file? [message #875376 is a reply to message #875345] |
Tue, 22 May 2012 16:15 |
|
On 5/22/2012 9:00 AM, Larry Towers wrote:
> It may have ASCII text, but it does not read properly. In Notepad, there
> is no visible spacing or newline-ing as shown in the eclipse Wiki page.
> Therefore, it isn't clear how one edits it to add an option, in my case
> the -vm option.
Well, then toss Notepad for a proper ASCII text editor. I would suggest
Notepad++ if you're not a vi initiate.
I'm not sure what you mean by saying there's no visible spacing or
newline information on the wiki page. Nevertheless, to add the -vm
option, place it alone on a line. On the next line, give the full path
to the JRE in your JDK as shown in http://wiki.eclipse.org/Eclipse.ini.
|
|
|
|
|
Re: How do you edit the eclipse.ini file? [message #875543 is a reply to message #875541] |
Tue, 22 May 2012 23:49 |
Larry Towers Messages: 6 Registered: May 2012 |
Junior Member |
|
|
Russel (above): I didn't write it clearly. I meant to say that the eclipse.ini file that's part of the release package, when I open it, all I see is one line, UNLIKE that presentation on the Wiki. In any event, I saved a copy of the original, inserted newlines where appropriate, and then added the -vm option at the end. As clarified, that's not the place to put it since it follows a -vmargs line and the parsing isn't as it should be.
In any event, I want to thank you for stopping by an examining my problem. If it wasn't for the forum, I'd be totally stuck.
Windows7 64bit
[Updated on: Tue, 22 May 2012 23:51] Report message to a moderator
|
|
|
Re: How do you edit the eclipse.ini file? [message #876389 is a reply to message #875543] |
Thu, 24 May 2012 13:53 |
|
On 5/22/2012 5:49 PM, Larry Towers wrote:
> Russel (above): I didn't write it clearly. I meant to say that the
> eclipse.ini file that's part of the release package, when I open it, all
> I see is one line, UNLIKE that presentation on the Wiki. In any event, I
> saved a copy of the original, inserted newlines where appropriate, and
> then added the -vm option at the end. As clarified, that's not the place
> to put it since it follows a -vmargs line and the parsing isn't as it
> should be.
Glad you're up and running, Larry. Best of luck to you.
|
|
|
Powered by
FUDForum. Page generated in 0.31275 seconds