Originally posted by: Cedric Doens
I could run an OPLIDE on my Lucid Ubuntu, and solve some models,
by shaking an Eclipse 3.4.2 and a Windows OPLIDE cocktail, to consume with the libraries of the Linux distrib.
I'm sure there is no guaranties nor support for this kind of tinkering, but this opldeploy script may please someone :
#!/bin/sh
-
set ECLIPSE_HOME to the location of the extracted eclipse-SDK-3.4.2-linux-gtk.tar.gz
-
set OPLIDE_HOME to the location of a Windows installation copy.
-
set OPLRUN_HOME to the location of OPL in a Linux install
ECLIPSE_HOME=./eclipse
OPLIDE_HOME=./oplide
OPLRUN_HOME=./ILOG/CPLEX_Studio122/opl
cp $ECLIPSE_HOME/eclipse.ini $ECLIPSE_HOME/eclipse.bak
cp $ECLIPSE_HOME/configuration/config.ini $ECLIPSE_HOME/configuration/config.ini.bak
-
"java.lang.RuntimeException: Widget disposed too early" without this
echo "-Dorg.eclipse.swt.browser.XULRunnerPath=./configuration/org.eclipse.osgi/bundles/129/1/.cp/libswt-xulrunner-gtk-3452.so" >> $ECLIPSE_HOME/eclipse.ini
cp -R $OPLIDE_HOME/plugins/* $ECLIPSE_HOME/plugins/.
cp -R $OPLIDE_HOME/features/ilog* $ECLIPSE_HOME/features/.
cp -R $OPLIDE_HOME/configuration/oplide $ECLIPSE_HOME/configuration/.
cp $OPLIDE_HOME/configuration/config.ini $ECLIPSE_HOME/configuration/.
export LD_LIBRARY_PATH=$OPLRUN_HOME/bin/x86_sles10_4.1
$ECLIPSE_HOME/eclipse
#CPLEXOptimizers#DecisionOptimization