Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JVM undetected
JVM undetected [message #175881] Mon, 23 October 2006 12:28 Go to next message
Eclipse UserFriend
Originally posted by: saum.paul.gmail.com

Hi,

I have downloaded eclpse 3.1 which requires jvm 1.4.* for running .. now
although i have jre1.4.2 eclipse refuses to start, sayin that java 1.3 is
reqd and it has detected jvm 1.3 ... i suppose that eclipse is not able to
select the jvm, but in that case i tried running eclipse with the -vm
argument and it still doesnt run, stating specifically that no jvm has
been found, how do i fix this ..
Re: JVM undetected [message #175908 is a reply to message #175881] Mon, 23 October 2006 14:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Saumyadeep wrote:
> Hi,
>
> I have downloaded eclpse 3.1 which requires jvm 1.4.* for running .. now
> although i have jre1.4.2 eclipse refuses to start, sayin that java 1.3
> is reqd and it has detected jvm 1.3 ... i suppose that eclipse is not
> able to select the jvm, but in that case i tried running eclipse with
> the -vm argument and it still doesnt run, stating specifically that no
> jvm has been found, how do i fix this ..
>

You are correct that you should always use the -vm argument to
explicitly tell Eclipse what JVM to use.
What is the exact command-line you are trying? Most likely there is some
small mistake in it that is keeping you from success.

Hope this helps,
Eric
Re: JVM undetected [message #175957 is a reply to message #175908] Tue, 24 October 2006 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: saum.paul.gmail.com

C:\Program Files\Java\j2re1.4.2_04\bin\client\jvm.dll
Re: JVM undetected [message #175965 is a reply to message #175908] Tue, 24 October 2006 09:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: saum.paul.gmail.com

The full command that i used to run is with the vm argument :
D:\> eclipse.exe -vm "C:\Program Files\Java\j2re1.4.2_04\bin\client\jvm.dll"
Re: JVM undetected [message #175973 is a reply to message #175965] Tue, 24 October 2006 10:01 Go to previous messageGo to next message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
Try this

D:\> eclipse.exe -vm "C:\Program Files\Java\j2re1.4.2_04\bin"

This should work. The -vm path should point to the place where java.exe or
javaw.exe is placed.


Re: JVM undetected [message #175988 is a reply to message #175973] Tue, 24 October 2006 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: saum.paul.gmail.com

MK Samuel wrote:

> Try this

> D:> eclipse.exe -vm "C:Program FilesJavaj2re1.4.2_04bin"

> This should work. The -vm path should point to the place where java.exe or
> javaw.exe is placed.

It gave an error ... " D:\eclipse\eclipse.exe not a win32 application "
Re: JVM undetected [message #175998 is a reply to message #175988] Tue, 24 October 2006 12:01 Go to previous messageGo to next message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
Can you please mention some of ur folder details.

1. In which folder eclipse is installed?
2. In which folder java is installed?
3. What is the exact text which you have typed to open eclipse using the
-vm runtime option?


Re: JVM undetected [message #176023 is a reply to message #175965] Tue, 24 October 2006 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

saumyadeep wrote:
> The full command that i used to run is with the vm argument :
> D:\> eclipse.exe -vm "C:\Program
> Files\Java\j2re1.4.2_04\bin\client\jvm.dll"
>
>

You don't specify the DLL, you specify the JVM executable. For example,
"C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe"

Note that it is recommended you use a JDK, not a JRE, for running Eclipse.

Hope this helps,
Eric
Re: JVM undetected [message #176030 is a reply to message #176023] Tue, 24 October 2006 17:17 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Eric Rizzo a écrit :
> Note that it is recommended you use a JDK, not a JRE, for running Eclipse.
A JRE is ok to run, but I would recommend a JDK to compile against.
--
Olivier
Re: JVM undetected [message #176052 is a reply to message #175998] Wed, 25 October 2006 04:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: saum.paul.gmail.com

MK Samuel wrote:

> Can you please mention some of ur folder details.

> 1. In which folder eclipse is installed?
eclipse is in 'D:\eclipse'
> 2. In which folder java is installed?
java is in 'C:\Program Files\Java\j2re1.4.2_04'
> 3. What is the exact text which you have typed to open eclipse using the
-vm runtime option?
i went to the folder where eclipse is installed, 'D:\eclipse'>
The exact string that i typed was:
"eclipse -vm "C:\Program Files\Java\j2re1.4.2_04\bin"
Re: JVM undetected [message #176125 is a reply to message #175973] Wed, 25 October 2006 11:26 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
MK Samuel wrote:
> Try this
>
> D:\> eclipse.exe -vm "C:\Program Files\Java\j2re1.4.2_04\bin"
>
> This should work. The -vm path should point to the place where java.exe
> or javaw.exe is placed.
>
>

the path should contain the executable as well (not only the directory),
i.e., -vm "C:\Program Files\Java\j2re1.4.2_04\bin\java.exe"

--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| Home Page : http://www.lorenzobettini.it |
| http://tronprog.blogspot.com BLOG |
| http://www.purplesucker.com Deep Purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.lorenzobettini.it/software/gengen |
| http://www.lorenzobettini.it/software/doublecpp |
+-----------------------------------------------------+


Re: JVM undetected [message #176575 is a reply to message #175988] Wed, 25 October 2006 16:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.there.127.0.0.1

Saumyadeep wrote:
> MK Samuel wrote:
>> This should work. The -vm path should point to the place where
>> java.exe or javaw.exe is placed.
>
> It gave an error ... " D:\eclipse\eclipse.exe not a win32 application "

Is there a chance you downloaded the Windows x86_64 or Windows ia64
install rather than the Windows install? It sounds as if you're not even
getting to the point where the JVM would matter.

Andrew Jr.

============================================================ ==========
IBM Phoenix Labs (OTI)
2929 North Central Avenue
Phoenix, Arizona, USA 85012
Re: JVM undetected [message #176626 is a reply to message #176125] Thu, 26 October 2006 05:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: saum.paul.gmail.com

Lorenzo Bettini wrote:

> the path should contain the executable as well (not only the directory),
> i.e., -vm "C:Program FilesJavaj2re1.4.2_04binjava.exe"

It did fix the problem but is there any way i can configure it to run with
the 1.4 vm by default, i mean is there a way where by i wont have to issue
a cmd line arg always..
Re: JVM undetected [message #177363 is a reply to message #176626] Mon, 30 October 2006 14:40 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Saumyadeep wrote:
> Lorenzo Bettini wrote:
>
>> the path should contain the executable as well (not only the
>> directory), i.e., -vm "C:Program FilesJavaj2re1.4.2_04binjava.exe"
>
> It did fix the problem but is there any way i can configure it to run
> with the 1.4 vm by default, i mean is there a way where by i wont have
> to issue a cmd line arg always..
>

Yes, you have two options:
A) create a Windows shortcut or "batch" file that contains the full
command-line, then you can double-click that shortcut to launch Eclipse.

B) In the same directory as eclipse.exe there should be a file
eclipse.ini - in that file you can specify startup parameters. Just be
careful as the format of the file is very particular and it will fail if
you get it wrong (line breaks are important). Below is a sample of my
eclipse.ini file which you can adapt for your own set-up.

Hope this helps,
Eric


--- Begin eclipse.ini ---

-vm
D:\Java\JDK\1.5.0\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=128m
Previous Topic:How do I export a Run Configuration ???
Next Topic:Eclipse 3.2 Won't download
Goto Forum:
  


Current Time: Fri Apr 26 15:40:10 GMT 2024

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

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

Back to the top