Problem w/ Main Class [message #54286] |
Tue, 20 May 2003 16:17  |
Eclipse User |
|
|
|
Originally posted by: mikeamickey.web.de
Hi everybody,
I don't know what happened but I can't run an application within Eclipse
anymore, the jar runs perfectly. The problem that I have is a message box
"Could not find the main class. Program will exit!" The "Build Project" runs
but after editing a class I get import errors although I started with the
package name as the first folder (it is a linked folder) What's the problem
and solution?
Thanks,
Michael
|
|
|
Re: Problem w/ Main Class [message #54631 is a reply to message #54286] |
Tue, 27 May 2003 08:31  |
Eclipse User |
|
|
|
Originally posted by: scott.anderson.genuitec.com
Michael,
The problem is most likely that the application you're attempting to run is
trying to invoke the java compiler in tools.jar. You can solve the problem
by ensuring that you're running the application within Eclipse with a full
JDK, rather than just a JRE. When you configure the JDK within Eclipse, be
sure and set the root directory to the JDK's root directory, not to it's
internal jre subdirectory.
--Scott
"Michael Hartmann" <mikeamickey@web.de> wrote in message
news:bae2hb$ig$1@rogue.oti.com...
> Hi everybody,
>
> I don't know what happened but I can't run an application within Eclipse
> anymore, the jar runs perfectly. The problem that I have is a message box
> "Could not find the main class. Program will exit!" The "Build Project"
runs
> but after editing a class I get import errors although I started with the
> package name as the first folder (it is a linked folder) What's the
problem
> and solution?
>
> Thanks,
> Michael
>
>
|
|
|
Re: Problem w/ Main Class [message #594021 is a reply to message #54286] |
Tue, 27 May 2003 08:31  |
Eclipse User |
|
|
|
Michael,
The problem is most likely that the application you're attempting to run is
trying to invoke the java compiler in tools.jar. You can solve the problem
by ensuring that you're running the application within Eclipse with a full
JDK, rather than just a JRE. When you configure the JDK within Eclipse, be
sure and set the root directory to the JDK's root directory, not to it's
internal jre subdirectory.
--Scott
"Michael Hartmann" <mikeamickey@web.de> wrote in message
news:bae2hb$ig$1@rogue.oti.com...
> Hi everybody,
>
> I don't know what happened but I can't run an application within Eclipse
> anymore, the jar runs perfectly. The problem that I have is a message box
> "Could not find the main class. Program will exit!" The "Build Project"
runs
> but after editing a class I get import errors although I started with the
> package name as the first folder (it is a linked folder) What's the
problem
> and solution?
>
> Thanks,
> Michael
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds