Spark.cmd start script

Document created by LG Champion on May 19, 2008
Version 1Show Document
  • View in full screen mode

Script to launch Spark 2.5.8 for Windows, similar to the Linux script.

Not fully tested yet.

@echo off

REM adjust this line to use a unique name in task manager
set my_spark=MyIM-Client.exe

REM uncomment and adust the folloowing line to enable autologin
REM set autologin=-DQUERY_STRING="username=test&password=test&server=localhost"


REM set tmp path to jniwrap.lic
set tmp=%app_home%\resources
set app_home=%PROGRAMFILES%\Spark
set java_home=%PROGRAMFILES%\Java\jdk1.6.0_04
copy "%java_home%\bin\javaw.exe" "%app_home%\%my_spark%" /y >NUL

set CLASSPATH=%app_home%\lib\spark.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\activation.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\asterisk-im-client.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\base.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\dom4j.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\smack.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\smackx.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\smackx-debug.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\startup.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\swingx.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\synthetica.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\syntheticaBlueMoon.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\systeminfo.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\xpp.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\xstream.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\windows\jdic.jar
set CLASSPATH=%CLASSPATH%;%app_home%\lib\windows\jmf.jar
set CLASSPATH=%CLASSPATH%;%app_home%\.install4j\i4jruntime.jar
cd /d "%app_home%"
 
REM run in background
REM use one of these 3 parameters if you have Direct3D issues (bluescreen, ...)
REM   -Dsun.java2d.ddoffscreen=false -Dsun.java2d.d3d=false -Dsun.java2d.noddraw=true
REM set -Duser.home=c:\foobar to use another home directory
start "" "%app_home%\%my_spark%" org.jivesoftware.launcher.Startup %autologin%
 
REM run in foreground (useful for debugging)
REM set "-XX:+PrintGCTimeStamps -Xloggc:logs/gc.log" to write the GC messages to a file instead of STDOUT.
REM increase some of the values if you get OOM errors or a lot of GC's
REM "%java_home%\bin\java.exe" -Xms16m -Xmx16m -XX:NewSize=4m -XX:MaxNewSize=4m -XX:PermSize=16m -XX:MaxPermSize=16m -XX:+PrintGCDetails org.jivesoftware.launcher.Startup %autologin%

 

Attachments

    Outcomes