2007-01-15 01:40:51 +07:00
|
|
|
@Title Install Adempiere Server
|
|
|
|
@Rem $Header: /cvsroot/adempiere/install/Adempiere/RUN_setup.bat,v 1.19 2005/09/08 21:54:12 jjanke Exp $
|
|
|
|
@Echo off
|
|
|
|
|
|
|
|
|
|
|
|
@if not "%JAVA_HOME%" == "" goto JAVA_HOME_OK
|
|
|
|
@Set JAVA=java
|
|
|
|
@Echo JAVA_HOME is not set.
|
|
|
|
@Echo You may not be able to start the required Setup window !!
|
|
|
|
@Echo Set JAVA_HOME to the directory of your local 1.5 JDK.
|
|
|
|
@Echo If you experience problems, run utils/WinEnv.js
|
|
|
|
@Echo Example: cscript utils\WinEnv.js C:\Adempiere "C:\Program Files\Java\jdk1.5.0_04"
|
|
|
|
goto START
|
|
|
|
|
|
|
|
:JAVA_HOME_OK
|
|
|
|
@Set JAVA=%JAVA_HOME%\bin\java
|
|
|
|
|
|
|
|
|
|
|
|
:START
|
|
|
|
@Echo =======================================
|
|
|
|
@Echo Starting Setup ...
|
|
|
|
@Echo =======================================
|
2010-04-17 04:29:26 +07:00
|
|
|
@SET CP=lib\CInstall.jar;lib\Adempiere.jar;lib\CCTools.jar;lib\oracle.jar;lib\jboss.jar;lib\postgresql.jar;
|
2007-01-15 01:40:51 +07:00
|
|
|
|
|
|
|
@Rem Trace Level Parameter, e.g. SET ARGS=ALL
|
|
|
|
@SET ARGS=CONFIG
|
|
|
|
|
|
|
|
@Rem To test the OCI driver, add -DTestOCI=Y to the command - example:
|
|
|
|
@Rem %JAVA% -classpath %CP% -DADEMPIERE_HOME=%ADEMPIERE_HOME% -DTestOCI=Y org.compiere.install.Setup %ARGS%
|
|
|
|
|
|
|
|
@"%JAVA%" -classpath %CP% -DADEMPIERE_HOME=%ADEMPIERE_HOME% org.compiere.install.SilentSetup %ARGS%
|
|
|
|
@Echo ErrorLevel = %ERRORLEVEL%
|
|
|
|
@IF NOT ERRORLEVEL = 1 GOTO NEXT
|
|
|
|
@Echo ***************************************
|
2008-02-13 13:24:51 +07:00
|
|
|
@Echo Check the error message above.
|
2007-01-15 01:40:51 +07:00
|
|
|
@Echo ***************************************
|
2008-02-13 13:24:51 +07:00
|
|
|
@Echo Make sure that the environment is set correctly!
|
2007-01-15 01:40:51 +07:00
|
|
|
@Echo Set environment variable JAVA_HOME manually
|
|
|
|
@Echo or use WinEnv.js in the util directory
|
|
|
|
@Echo ***************************************
|
2007-03-16 10:43:40 +07:00
|
|
|
@Rem Wait 10 second
|
|
|
|
@PING 1.1.1.1 -n 1 -w 10000 > NUL
|
2007-01-15 01:40:51 +07:00
|
|
|
@Exit
|
|
|
|
|
|
|
|
|
|
|
|
:NEXT
|
2008-02-13 13:24:51 +07:00
|
|
|
|
2008-02-20 07:38:39 +07:00
|
|
|
cd utils
|
|
|
|
|
2008-02-13 13:24:51 +07:00
|
|
|
@Rem ===================================
|
|
|
|
@Rem Sign Database Build
|
|
|
|
@Rem ===================================
|
2008-02-20 07:38:39 +07:00
|
|
|
@Call RUN_SignDatabaseBuild.bat > NUL 2>&1
|
2008-02-13 13:24:51 +07:00
|
|
|
|
2007-01-15 01:40:51 +07:00
|
|
|
@Rem ===================================
|
|
|
|
@Rem Setup Adempiere Environment
|
|
|
|
@Rem ===================================
|
2008-02-20 07:38:39 +07:00
|
|
|
@Call RUN_WinEnv.bat
|
2007-01-15 01:40:51 +07:00
|
|
|
|
|
|
|
@Echo .
|
|
|
|
@Echo For problems, check log file in base directory
|
2007-03-16 10:43:40 +07:00
|
|
|
@Rem Wait 10 second
|
2010-04-17 04:29:26 +07:00
|
|
|
@PING 1.1.1.1 -n 1 -w 10000 > NUL
|