Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How do you edit the eclipse.ini file?
How do you edit the eclipse.ini file? [message #874395] Sun, 20 May 2012 19:31 Go to next message
Larry Towers is currently offline Larry TowersFriend
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 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4443
Registered: July 2009
Senior Member

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 #875317 is a reply to message #874468] Tue, 22 May 2012 14:14 Go to previous messageGo to next message
Larry Towers is currently offline Larry TowersFriend
Messages: 6
Registered: May 2012
Junior Member
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.


Windows7 64bit
Re: How do you edit the eclipse.ini file? [message #875322 is a reply to message #875317] Tue, 22 May 2012 14:24 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 Go to previous messageGo to next message
Larry Towers is currently offline Larry TowersFriend
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 288 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 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 #875440 is a reply to message #875345] Tue, 22 May 2012 19:01 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Your putting the -vm entry after the -vmargs entry. This will pass the lines to the vm as arguments and they will not be stripped off by the launcher as you need. These lines have to appear prior to the -vm line.

Also, you are specifing a 32 bit vm. However, it looks like you are running a 64 bit version of Eclipse. This won't work. Eclipse and Java have to be the same bit size.
Re: How do you edit the eclipse.ini file? [message #875541 is a reply to message #875440] Tue, 22 May 2012 23:44 Go to previous messageGo to next message
Larry Towers is currently offline Larry TowersFriend
Messages: 6
Registered: May 2012
Junior Member
Thank you!! Very Happy That made the difference and I no longer get the error message. Now I'm getting a Java return code of 13 which is almost certainly due to the 32bit vs 64bit issue you write about. So it's off to get the Java 64bit.

I missed the crucial line in the Wiki about the order of the options.


Windows7 64bit

[Updated on: Tue, 22 May 2012 23:57]

Report message to a moderator

Re: How do you edit the eclipse.ini file? [message #875543 is a reply to message #875541] Tue, 22 May 2012 23:49 Go to previous messageGo to next message
Larry Towers is currently offline Larry TowersFriend
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 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:tag suggestions
Next Topic:Export Product Wizard Problems - No repository found
Goto Forum:
  


Current Time: Tue May 14 15:19:57 GMT 2024

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

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

Back to the top