Home » Newcomers » Newcomers » failed to find main class
| | |
Re: failed to find main class [message #551229 is a reply to message #551209] |
Thu, 05 August 2010 12:31   |
Eclipse User |
|
|
|
On 8/5/2010 9:40 AM, horseatingweeds wrote:
> Would this be the cause of the error?
>
> Failed to find a Main Class in "
> C:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0v201005 07.jar "
>
> The sticky says: "UPDATE: The latest JDK/JRE downloads have fixed this
> problem, so the simplest way to resolve is to download and re-install
> from http://www.java.com (alternative link is
> http://java.sun.com/javase/downloads/index.jsp)"
>
> And I updated mine just today, so wouldn't I have the fixed JDK/JRE? I'm
> not even sure how to re-install java.
> Also, I added the "-XX:MaxPermSize=256m" to my ini file, which was one
> of the old fixes, just to see. Error remains.
> The error says I'm missing a file, and it's right, the file isn't there.
> There's nothing in the plugins directory about 'equenox'. Do I have the
> wrong download?
>
> I went to http://www.eclipse.org/downloads/ and downloaded Eclipse for
> PHP developers
1) Use a JDK and not a JRE with Eclipse.
2) You don't have to disturb/keep updating/whatever your computer host's
JRE just for Eclipse's benefit: use a dedicated JDK for Eclipse and
leave the one on your machine alone.
3) The latest build of Java causes problems for Eclipse (or, Eclipse has
problems with it).
Not to pick a bone with the tutorial you followed, it looked very
helpful, but I would suggest you read the setting-up article or so (as
relevant) under "Eclipse-oriented" at http://www.javahotchocolate.com
Then, after installation and getting Eclipse launched and healthy, go
back to whatever you were doing. This would be easier than trying to lay
it all out for you in this forum.
Russ Bateman
|
|
| | |
Re: failed to find main class [message #551298 is a reply to message #551209] |
Thu, 05 August 2010 16:01   |
Eclipse User |
|
|
|
On 8/5/10 11:40 AM, horseatingweeds wrote:
> Would this be the cause of the error?
>
> Failed to find a Main Class in "
> C:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0v201005 07.jar "
>
> The sticky says: "UPDATE: The latest JDK/JRE downloads have fixed this
> problem, so the simplest way to resolve is to download and re-install
> from http://www.java.com (alternative link is
> http://java.sun.com/javase/downloads/index.jsp)"
>
> And I updated mine just today, so wouldn't I have the fixed JDK/JRE? I'm
> not even sure how to re-install java.
> Also, I added the "-XX:MaxPermSize=256m" to my ini file, which was one
> of the old fixes, just to see. Error remains.
> The error says I'm missing a file, and it's right, the file isn't there.
> There's nothing in the plugins directory about 'equenox'. Do I have the
> wrong download?
>
> I went to http://www.eclipse.org/downloads/ and downloaded Eclipse for
> PHP developers
What, exactly, error message are you seeing; give us details.
Also, did you specify the JVM for Eclipse to use in eclipse.ini, as
described here: http://wiki.eclipse.org/Eclipse.ini
Eric
|
|
| |
Re: failed to find main class [message #552116 is a reply to message #552114] |
Tue, 10 August 2010 18:17   |
Eclipse User |
|
|
|
On 2010.08.10 16:01, horseatingweeds wrote:
> Ok, I'm trying this over again with the suggestions I've received.
> (thanks btw) But regardless of the efforts in detail of the instructions
> on installing this thing, I have a couple questions.
>
> First, according to this:
> http://www.javahotchocolate.com/tutorials/setup-eclipse.html #install and
> this: http://www.javahotchocolate.com/tutorials/setup-jdk.html#pri mo
> Eclipse looks here: "eclipse/jre" for the JDK (java development kit)
>
> I thought I knew what this meant: "Just download a JDK and put the files
> in the eclipse/jre folder." However, there is no jre folder and the JDK
> I downloaded in one file, a .exe: jdk-6u20-javafx-1_3-windows-i586.exe
>
> So what does this mean? Do I make a eclipse/jre folder and just plop the
> .exe in there? Am I even downloading the correct "JDK" or "JRE" or
> whatever? The two acronyms are seeming nebulous to me. Or, by
> "eclipse/jre" to they mean - plop the jdk into eclipse's root? :?
Under your eclipse folder, create a new folder named "jre", then copy
your JDK there. Assuming you install Eclipse on C:\eclipse and drop the
very latest JDK into it, it would look like this:
C:\eclipse\jre\jdk1.6.0_21
I'll review the verbiage to see if I can make it clearer.
If you don't want to do it this way, then modify eclipse.ini to add this
line (I obviously assume a JDK path here):
-vm
C:\Program Files\Java\jdk1.6.0_21
(See http://wiki.eclipse.org/Eclipse.ini)
Last, don't use a mere JRE with Eclipse; always use a JDK. Sure, you can
get away with it for the most part (just to run Eclipse), but don't do
it. Use a proper JDK. You need one for other work you'll do in Eclipse.
Russ
|
|
| | | | | | |
Re: failed to find main class [message #552268 is a reply to message #552126] |
Wed, 11 August 2010 09:35   |
Eclipse User |
|
|
|
On 8/10/2010 6:37 PM, horseatingweeds wrote:
> Ok, I understand now. The jdk-6u20-javafx-1_3-windows-i586.exe file was
> a file installer, not the actual JRE or JDK that I needed. I had
> actually installed the JDK the other day on my first try at installing
> Eclipse. So I just used eclipse to map to that one.
> This was confusing for me, despite the instructions, because i didn't
> know what a JRE or JDK were. It was unclear that, in order to run
> Eclips, you needed to point it at an executable which is available as
> part of a Java Development Environment - which is installed easily
> enough with a downloadable installer.
> Thanks everyone.
Eclipse is written in Java and needs a JRE in order to run.
What Eclipse does, for Java developers, is help them develop software
written to Java. For that, you need the JDK.
By referring to the JDK in eclipse.ini, you make it that Eclipse runs on
the JRE that accompanies the JDK and make it that it consumes the JDK
because you're writing a Java application (app, servlet, etc.).
|
|
| | | | |
Re: failed to find main class [message #885844 is a reply to message #885839] |
Wed, 13 June 2012 13:46  |
Eclipse User |
|
|
|
On 6/13/2012 11:35 AM, Anuja Gupta wrote:
> I have put both eclipse folder in java folder under program files..what
> is the problem then?
There's not enough information to go. If I understand what you've said,
which contradicts the scant information in your original question, you
propose to drop Eclipse somewhere underneath C:/Program Files/Java/...
This would not be a very tidy solution. Put your copies of Eclipse on
paths like C:\Users\Anuja\dev\galileo, \helios, \indigo, \etc.
Then, edit your eclipse.ini files to reflect where you've installed Java
according to http://wiki.eclipse.org/Eclipse.ini. If you're going to do
Java, be sure to download a copy of the JDK (and not a mere JRE). I keep
the JDK I'm using for Eclipse privately to my user and wire it up to
eclipse.ini as well as use it in Eclipse itself.
Be certain you're not mismatched between the bittedness of Eclipse and
the Java you're telling it to use.
|
|
|
Goto Forum:
Current Time: Sat Jul 05 03:20:54 EDT 2025
Powered by FUDForum. Page generated in 0.10328 seconds
|