Re: Cannot run modeler.bat

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jun 17 2003 - 17:30:06 EDT

  • Next message: Michael Amster: "Stuck transaction w/MySQL"

    Hi David,

    > Could not find the main class. Program will exit.
    >
    > When I run it directly from the the command line:
    > C:\Program Files\cayenne-1.0b4\bin>javaw -cp
    > ..\lib\modeler\cayenne-modeler.jar
    > org.objectstyle.cayenne.modeler.Editor
    >
    > it works !
    >
    > My CLASSPATH is:
    >
    > CLASSPATH=%JAVA_HOME_CLASSPATH%;%JRE_CLASSPATH%;c:\Program
    > Files\cayenne-1.0b4\lib\cayenne.jar;c:\Program
    > Files\cayenne-1.0b4\lib\servlet-2.3.jar;c:\Program
    > Files\cayenne-1.0b4\lib\modeler\cayenne-modeler.jar;c:\Program
    > Files\cayenne-1.0b4\lib\modeler\scope-bin-1.1.jar;c:\Program
    > Files\cayenne-1.0b4\lib\cayenne-nodeps.jar;C:\Program Files\Microsoft
    > SQL Server 2000 Driver for JDBC\lib;C:\Program Files\Access
    > Converter\Lib;"C:\Program Files\Java\j2re1.4.2\lib\ext\QTJava.zip"

    Umm, there was a bug earlier in modeler.bat that prevented it from working
    with CLASSPATH that contained spaces. I thought this was fixed...

    Try adding a few debug lines in modeler.bat right before "start %JAVACMD%
    ....":

    echo %CLASSPATH%
    echo %MAIN_CLASS%
    pause

    This may give you an idea of what is wrong.

    > How do I connect to Microsoft SQL server ?

    Though there is no "official" support for SQL Server in Cayenne, my
    testing showed that current "SybaseAdapter" works pretty well with it:

       http://objectstyle.org/cayenne/lists/cayenne-devel/2003/05/0016.html

    So just use the right driver, database login info, and select
    SybaseAdapter from the list of adapters.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Jun 17 2003 - 17:30:06 EDT