Topic
  • 5 replies
  • Latest Post - ‏2009-05-19T18:40:04Z by SystemAdmin
SystemAdmin
SystemAdmin
151 Posts

Pinned topic How to deploy ODM from Command Line

‏2009-05-13T03:50:43Z |

[Boon said:]

I found instruction in the User's Manual but when I tried it, I found errors.

Here is my CMD's command.

C:\ILOG\ODM31\bin\x86_win32>odmdeploy examples\nurses\nurses

Here is the error


Native code library failed to load: ensure the appropriate library (oplXXX.dll/
so) is in your path.Exceptions:
java.lang.UnsatisfiedLinkError: no opl61 in java.library.path
java.lang.UnsatisfiedLinkError: no opl_lang_wrap_cpp in java.library.path
java.lang.UnsatisfiedLinkError: no cp_wrap_cpp_java61 in java.library.path
java.lang.UnsatisfiedLinkError: no concert_wrap_cpp_java61 in java.library.path


Even though I put in the correct path for the file, it still produced errors.

C:\ILOG\ODM31\bin\x86_win32>odmdeploy C:\ILOG\ODM31\examples\nurses\nurses

Thanks for your help.
B

Updated on 2009-05-19T18:40:04Z at 2009-05-19T18:40:04Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: How to deploy ODM from Command Line

    ‏2009-05-13T16:25:53Z  

    [alain.chabrier said:]

    Hi,
    the DLL that the applicaiton is looking for are either in
    C:\ILOG\ODMPlayer312\bin\x86_win32
    if you installed the player, or in
    C:\ILOG\OPL612\bin\x86_win32

    This is what needs to be in the path.

    hope this helps

    Alain
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: How to deploy ODM from Command Line

    ‏2009-05-14T06:35:43Z  

    [alain.chabrier said:]

    Hi,
    the DLL that the applicaiton is looking for are either in
    C:\ILOG\ODMPlayer312\bin\x86_win32
    if you installed the player, or in
    C:\ILOG\OPL612\bin\x86_win32

    This is what needs to be in the path.

    hope this helps

    Alain

    [Boon said:]

    What "Path" did you refer to?

    I put the C:\ILOG\ODMPlayer312\bin\x86_win32 in the Environment Variables but it still doesn't work. I have ODM Player as well as regular ODM installed. Basically, I have C:\ILOG\ODM31, and C:\ODMPlayer31\

    I noticed that all the DLL files are stored in C:\ILOG\ODMPlayer31\bin\x86_win32\

    But the odmdeploy.exe is stored in C:\ILOG\ODM31\bin\x86_win32\



    Thanks,
    B
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: How to deploy ODM from Command Line

    ‏2009-05-14T20:28:47Z  

    [Boon said:]

    What "Path" did you refer to?

    I put the C:\ILOG\ODMPlayer312\bin\x86_win32 in the Environment Variables but it still doesn't work. I have ODM Player as well as regular ODM installed. Basically, I have C:\ILOG\ODM31, and C:\ODMPlayer31\

    I noticed that all the DLL files are stored in C:\ILOG\ODMPlayer31\bin\x86_win32\

    But the odmdeploy.exe is stored in C:\ILOG\ODM31\bin\x86_win32\



    Thanks,
    B

    [alain.chabrier said:]

    HI,

    some hints.

    - You might double check mixes of 312 and 31 in your paths, I am not sure how you have installed both.
    - You might also have to use "set OPLROOT_OVERRIDE=C:\ILOG\OPL612" to help the tool find OPL ...


    Alain
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: How to deploy ODM from Command Line

    ‏2009-05-15T04:22:36Z  

    [alain.chabrier said:]

    HI,

    some hints.

    - You might double check mixes of 312 and 31 in your paths, I am not sure how you have installed both.
    - You might also have to use "set OPLROOT_OVERRIDE=C:\ILOG\OPL612" to help the tool find OPL ...


    Alain

    [Boon said:]

    Hi Alain,

    It works! I added the OPLROOT_OVERRIDE variable and it works. Thank you so much.

    My next problem...

    When I open a deployed application, it still shows all the scenarios I have run in the past. I want the deployed application has no scenario at all. (In OPL, I alwayas "Delete All Files" before I deploy the application. How can I do the same via command prompt? I noticed that when I deploy via command prompt, the odmdeploy.exe checks with a setting file (*.odmds). I am not sure how can I edit this file.

    Thanks. I appreciate your help.

    B
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: How to deploy ODM from Command Line

    ‏2009-05-19T18:40:04Z  

    [Boon said:]

    Hi Alain,

    It works! I added the OPLROOT_OVERRIDE variable and it works. Thank you so much.

    My next problem...

    When I open a deployed application, it still shows all the scenarios I have run in the past. I want the deployed application has no scenario at all. (In OPL, I alwayas "Delete All Files" before I deploy the application. How can I do the same via command prompt? I noticed that when I deploy via command prompt, the odmdeploy.exe checks with a setting file (*.odmds). I am not sure how can I edit this file.

    Thanks. I appreciate your help.

    B

    [afleischer said:]

    Hi,

    in the odmds you have something like

    <connection>
          <JDBCDriverClass name="org.h2.Driver"/>
          <JDBCURL>jdbc:h2:file:$ODM_APP_DIR//.</JDBCURL>
    </connection>

    which tells you where the data is stored on your hard drive.
    You should check where this data is (it  will be in an "odmrepository" folder)

    In your command line script, you should delete this folder and then each time you launch your ODM application you won't see any more your previous scenarii

    Alex