permaculture playing cards*
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
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.
 
 
subject: Could not find the main class : error in jboss starting in eclipse
 
Similar Threads
Web Service with build.xml
ClassNotFoundException error
3rd party library problem
Packageing a Jar does not work
trouble running compiled file