Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Problem w/ Main Class
Problem w/ Main Class [message #54286] Tue, 20 May 2003 20:17 Go to next message
Eclipse UserFriend
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 12:31 Go to previous message
Eclipse UserFriend
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 12:31 Go to previous message
Scott Anderson is currently offline Scott AndersonFriend
Messages: 8
Registered: July 2009
Junior Member
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
>
>
Previous Topic:How to convert fully qualified classname to import entry
Next Topic:2.1 -> Language Pack?
Goto Forum:
  


Current Time: Thu Apr 25 04:59:09 GMT 2024

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

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

Back to the top