facebook

[Closed] XDoclet and "Cannot find the main class"

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #240003 Reply

    I’m trying to run XDoclet for Hibernate. I keep getting the message

    Java Virtual Machine Launcher

    “Cannot find the main class. Program will exit.”

    I’ve configured the MyEclipse XDoclet Propeties, but keep getting this message.
    Wonder what’s going on?

    Thanks

    #240006 Reply

    Greg
    Member

    What XDoclet build policy are you using? (Right-click project > Properties > MyEclipse-XDoclet > Build. Switch to “Use xdoclet-build.xml file” if you haven’t already. Then press OK. This will create a xdoclet-build.xml file in your project. Now try to run XDoclet using MyEclipse > Run XDoclet action.

    If the problem persists can you post the entire output of the XDoclet console?

    #240024 Reply

    Still get the same problem. Where is the XDoclet Console? There is no console output when I run XDoclet….

    #240025 Reply

    Greg
    Member

    So where are you seeing the error message? Are you seeing this in an error dialog or in the Eclipse error log?

    #240026 Reply

    Tis an error dialog…

    Stephen McConnell

    #240028 Reply

    Greg
    Member

    Can you look at your eclipse error log as well? <WORKSPACE>/.metadata/.log

    Also, what is your path to your workspace? Does it contain any spaces?

    #240030 Reply

    There is no log message generated.

    the path to my workspace is:

    C:/Projects/scawa/

    I have two projects included in my workspace.

    CoreRoutines
    StockandTrade

    But I think I just figured it out…. It has to do with my firewall….. and the way you access the JVM…..

    I turned off the firewall and it works…. Checking firewall settings now.

    #240088 Reply

    Well…

    Removed JDK’s and reinstalled them. Removed and reinstalled MyEclipseIDE and Eclipse…

    Now It works. There may have been something in the way I installed both JDK 5.0 and 1.4.2 that messed it up.

    Thank you for your help…. Don’t know how to close this, but the topic can be closed.

    Oh… BTW, it’s time to renew my subscription… for the 3rd time…. It will be the best money I’ve EVER spent… Great product, great support….. You can’t miss.

    #240099 Reply

    Greg
    Member

    Stephen,

    Glad its working now. Remember that if you want XDoclet to support java5 syntax you must enable it in your XDoclet build configuration. It should be turned on by default if you are running MyEclipse with a jdk5 jvm.

    As far as closing the topic, that is something the moderators generally do after they have seen the user’s issue has been resolved. So you don’t have to worry about that.

    Oh… BTW, it’s time to renew my subscription… for the 3rd time…. It will be the best money I’ve EVER spent… Great product, great support….. You can’t miss.

    Thanks for your kind words and its an encouragement for us that we have earned your support for another year. As always, in the next year, MyEclipse will be getting better than ever. 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: [Closed] XDoclet and "Cannot find the main class"

You must be logged in to post in the forum log in