Menu

no MainCreation in menu :(

Help
2004-07-12
2004-07-12
  • Tristan RENAUD

    Tristan RENAUD - 2004-07-12

    Hello,

    I'm trying to add JDO to an existing project. I've read the lesson "Start with an existing JAVA project" but I can't go through the "Database connection" chapter.
    Here are the steps :
    1. Right click, on CreateCompany.java(I've change this by my main class) in order to display the context menu
    2. Select EclipseJDO > MainCreation
    The problem is here, at step 2 : no "MainCreation" menu appears :( there's only the "newMetadata" menu.

    What's wrong ? I'm using Eclipse 3.0, EMF 2.0, latest eclipseJDO, all of this on a GNU/Linux OS.
    I didn't change the default driver (reference(SUN)).

    Anybody could help ? Thanks !

    Tristan RENAUD.

     
    • Yves YANG

      Yves YANG - 2004-07-12

      This feature is dropped due to somes APIs change in Eclipse 3. The doc is out of date.

      In fact, it'd better read the properties from a file as following:

              Properties properties = new Properties();
              try
              {
                  InputStream input =
                      CreateCompany.class.getResourceAsStream("jdo.properties");
                  properties.load(input);
              }
              catch (IOException e)
              {
                  e.printStackTrace();
              }
              PersistenceManagerFactory pmfactory =
                  JDOHelper.getPersistenceManagerFactory(properties);

      yves yang

       

Log in to post a comment.