Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cannot open Eclipse [Java Path Issue]
Cannot open Eclipse [Java Path Issue] [message #908224] Tue, 04 September 2012 21:04 Go to next message
roro bond is currently offline roro bond
Messages: 6
Registered: September 2012
Junior Member
Hi,

I have a problem with eclipse.
I've download and installed ''jdk-7u7-windows-i586'' and extracted ''eclipse-jee-juno-win32-x86_64''
I want to start coding and I chose the game Runescape as a test subject/first step.
Everytime I try to open eclipse this message pops up ; (see attachment)

Any idea on how to fix it? I've tried creating the path and copied the javaw.exe from my Java directory but another error popped up.

-Thank you in advance.
  • Attachment: 1.jpg
    (Size: 28.03KB, Downloaded 94 times)

[Updated on: Tue, 04 September 2012 21:05]

Report message to a moderator

Re: Cannot open Eclipse [Java Path Issue] [message #908273 is a reply to message #908224] Wed, 05 September 2012 00:17 Go to previous messageGo to next message
roro bond is currently offline roro bond
Messages: 6
Registered: September 2012
Junior Member
Anyone cares to help please?
Re: Cannot open Eclipse [Java Path Issue] [message #908281 is a reply to message #908273] Wed, 05 September 2012 00:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
Roro,

You're asking questions in the middle of the night (in Europe and
certainly after working hours in NA) and expecting answers in less than
3 hours? Did you actually install an appropriate JDK on your machine?
In any case, copying just the *.exe isn't sufficicient because that exe
isn't going to find the libraries it needs. You should use the -vm
argument (which you can also put in the eclipse.ini so you don't have to
keep specifying it) to point at where the exe actually is.

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html


On 05/09/2012 6:17 AM, roro bond wrote:
> Anyone cares to help please?
Re: Cannot open Eclipse [Java Path Issue] [message #908289 is a reply to message #908281] Wed, 05 September 2012 01:04 Go to previous messageGo to next message
roro bond is currently offline roro bond
Messages: 6
Registered: September 2012
Junior Member
What is the right way to install JDK?
I installed it by default, it's in C:\Program Files (x86)\Java\
The -vm didn't work whatsoever.
Re: Cannot open Eclipse [Java Path Issue] [message #908298 is a reply to message #908289] Wed, 05 September 2012 01:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
When you get a JDK from Oracle, you install it. It sets things up in
(at least on my machine):

c:/Windows/System32

You can try java.exe -version there to see which one is there. That's
the one used by default. If it's not the right one, it's not going to work.

An alternative to specifying the -vm arguments (what exactly did you
try?) is to copy the jre folder to the folder that contains your
eclipse.exe. If you want the JDK source, be sure to copy the JDK's
src.zip into that jre folder too.


On 05/09/2012 7:04 AM, roro bond wrote:
> What is the right way to install JDK?
> I installed it by default, it's in C:\Program Files (x86)\Java\
> The -vm didn't work whatsoever.
Re: Cannot open Eclipse [Java Path Issue] [message #908305 is a reply to message #908298] Wed, 05 September 2012 01:59 Go to previous messageGo to next message
roro bond is currently offline roro bond
Messages: 6
Registered: September 2012
Junior Member
I'm really confused, please excuse how newbish I am.
What I did with -vm was I typed something along the lines of -vm DIRECTORYFILEOFJAVA
Re: Cannot open Eclipse [Java Path Issue] [message #908343 is a reply to message #908305] Wed, 05 September 2012 03:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
Try specifying the full absolute path name of the javaw.exe.

On 05/09/2012 7:59 AM, roro bond wrote:
> I'm really confused, please excuse how newbish I am.
> What I did with -vm was I typed something along the lines of -vm
> DIRECTORYFILEOFJAVA
icon4.gif  Re: Cannot open Eclipse [Java Path Issue] [message #908633 is a reply to message #908224] Wed, 05 September 2012 13:35 Go to previous messageGo to next message
mathew rajan is currently offline mathew rajan
Messages: 2
Registered: September 2012
Junior Member
i have the same issue as roro....cant figure it out though .intalled jdk too inside the eclipse folder..this makes netbeans look like a piece of cake...
Re: Cannot open Eclipse [Java Path Issue] [message #908639 is a reply to message #908633] Wed, 05 September 2012 13:56 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3136
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/5/2012 11:35 AM, mathew rajan wrote:
> i have the same issue as roro....cant figure it out though .intalled jdk
> too inside the eclipse folder..this makes netbeans look like a piece of
> cake...
NetBeans is a piece of cake, however, it's not what Java application
developers use to develop software in.

Have you looked at http://wiki.eclipse.org/Eclipse.ini
Re: Cannot open Eclipse [Java Path Issue] [message #908798 is a reply to message #908343] Wed, 05 September 2012 22:50 Go to previous messageGo to next message
roro bond is currently offline roro bond
Messages: 6
Registered: September 2012
Junior Member
Ed Merks wrote on Wed, 05 September 2012 03:43
Try specifying the full absolute path name of the javaw.exe.

On 05/09/2012 7:59 AM, roro bond wrote:
> I'm really confused, please excuse how newbish I am.
> What I did with -vm was I typed something along the lines of -vm
> DIRECTORYFILEOFJAVA


There's more than 1 javaw.exe

There's 2 javaw.exe

One in C:\Program Files (x86)\Java\jdk1.6.0_33\bin
The other in C:\Program Files (x86)\Java\jdk1.6.0_33\jre

What do I do next?

P.S.
I had eclipse and used it once (months ago) I didn't have this problem.

[Updated on: Wed, 05 September 2012 22:51]

Report message to a moderator

Re: Cannot open Eclipse [Java Path Issue] [message #908804 is a reply to message #908798] Wed, 05 September 2012 23:07 Go to previous messageGo to next message
mathew rajan is currently offline mathew rajan
Messages: 2
Registered: September 2012
Junior Member
Found te reason. 64bit OS ,64 bit eclipse ,32bi jdk.
Re: Cannot open Eclipse [Java Path Issue] [message #908831 is a reply to message #908804] Thu, 06 September 2012 00:44 Go to previous messageGo to next message
roro bond is currently offline roro bond
Messages: 6
Registered: September 2012
Junior Member
mathew rajan wrote on Wed, 05 September 2012 23:07
Found te reason. 64bit OS ,64 bit eclipse ,32bi jdk.


Oh god...thank you so much.
I can't believe I fell for this.
I actually believed I downloaded the 64bit, but it seems not.

[Updated on: Thu, 06 September 2012 00:53]

Report message to a moderator

Re: Cannot open Eclipse [Java Path Issue] [message #908837 is a reply to message #908798] Thu, 06 September 2012 01:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
Try the first one. Try each.

On 06/09/2012 4:50 AM, roro bond wrote:
> Ed Merks wrote on Wed, 05 September 2012 03:43
>> Try specifying the full absolute path name of the javaw.exe.
>>
>> On 05/09/2012 7:59 AM, roro bond wrote:
>> > I'm really confused, please excuse how newbish I am.
>> > What I did with -vm was I typed something along the lines of -vm >
>> DIRECTORYFILEOFJAVA
>
>
> There's more than 1 javaw.exe
>
> There's 2 javaw.exe
>
> One in C:\Program Files (x86)\Java\jdk1.6.0_33\bin
> The other in C:\Program Files (x86)\Java\jdk1.6.0_33\jre
>
> What do I do next?
Re: Cannot open Eclipse [Java Path Issue] [message #908838 is a reply to message #908831] Thu, 06 September 2012 01:00 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25947
Registered: July 2009
Senior Member
Is your Eclipse 64 bit?

On 06/09/2012 6:44 AM, roro bond wrote:
> oracle(dot)com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html
>
>
> I downloaded the one of Windows x86 which is 64bit.
> And my Windows is 64bit.
Previous Topic:Getting the XML editor and the Android Common XML editor in the same window
Next Topic:JMenuItem Selection Event Handler
Goto Forum:
  


Current Time: Thu Jul 31 03:32:22 EDT 2014

Powered by FUDForum. Page generated in 0.03522 seconds