File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Could not find the main class  : error in jboss starting in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Could not find the main class  : error in jboss starting in eclipse" Watch "Could not find the main class  : error in jboss starting in eclipse" New topic
Author

Could not find the main class : error in jboss starting in eclipse

dilan alex
Greenhorn

Joined: Sep 17, 2011
Posts: 27
Hi All,

I'm using jboss 5.0 and I tried start it from Eclipse Indigo.
What I got is an error message saying ''Could not find the main class: G:\program. Program will exit"

In the console there is a error log like this



I'm Using Windows 7 and java 1.6. path and classpath has been set propely. (Im using java 64 bit version).
I have done this before and did not happen like this.

Can any one help.

Regards,
Dila.
dilan alex
Greenhorn

Joined: Sep 17, 2011
Posts: 27
Hi All,

I found that same jboss server is starting and running well in Spring Tool Suite(STS) IDE.
And this is running well in Command prompt also.

Its little tricky but still I cannot find the reason that is not running in Eclipse Indigo IDE.

Regards,
Dila.
dilan alex
Greenhorn

Joined: Sep 17, 2011
Posts: 27
Hi all,

I removed Eclipse and got a new copy of Eclipse. (Jboss tools have been installed in earlier version) and could run jboss server from it.

Regards,
Dil.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not find the main class : error in jboss starting in eclipse
 
Similar Threads
ClassNotFoundException error
trouble running compiled file
Web Service with build.xml
Packageing a Jar does not work
3rd party library problem