enkidu
#1

I like having scripts / batch files for all my java apps. I don't know why TheBrain comes with a script for linux & MacOS, but is packaged with an .exe for Windows.

So I checked the linux script & made a batch file for Windows

#2

I recently got a new PC at work, moving from WinXP to Win7.
Because of this crap of having 32 and 64-bit versions of whatnot, I still havent decided if it's better to use Java32 or Java64.

So I did some homework, downloaded both versions of Java and TheBrain, and installed both (in the same directory, of course).
Again : the usefulness is dubious, but at least I have 64bit Brain running with 64bit Java, and 32/32 etcaetera


recommended reading if you want to run both versions :

http://support.dtsearch.com/dts0217.htm
How to use the 64-bit version of the dtSearch Engine
Last Reviewed: August 6, 2013

--- my batch for 32bit : -----------------------------------------------------------------


SET PATH=%PATH%;c:\bin\TheBrain\bin\;

SET JAVA32="C:\Program Files (x86)\Java\jre7\bin\javaw.exe"
SET JAVA_HOME="C:\Program Files (x86)\Java\jre7\bin\"

:: this variable is used in the linux script, but I found no use for it under Win
:: SET APP_JAVA_HOME="C:\Program Files (x86)\Java\jre7\bin"

SET PRG_DIR=c:\bin\TheBrain\


SET CLASSPATH_BRAIN=.install4j\i4jruntime.jar;TheBrain.jar;.\lib\h2.jar;.\lib\h2mig_pagestore_addon.jar;.\lib\comfyj.jar;.\lib\jniwrap.jar;.\lib\winpack.jar;.\lib\jdic_fileutil.jar;.\lib\xercesImpl.jar;.\lib\xml-apis.jar;.\lib\jide-common.jar;.\lib\jide-dock.jar;.\lib\icu4j_3_4.jar;.\lib\iri.jar;.\lib\jena.jar;.\lib\slf4j-api-1.5.8.jar;.\lib\slf4j-simple-1.5.8.jar;.\lib\editlivejava.jar;.\lib\gdata-calendar-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-core-1.0.jar;.\lib\hsqldb.jar;.\lib\gson-1.7.1.jar;lang;.\lib\sqlitejdbc-v056-linux.jar;.\lib\sqlitejdbc-v056-mac.jar;.\lib\sqlitejdbc-v056-win.jar;.\lib\guava-r09.jar;


%JAVA32% -Dinstall4j.jvmDir="C:\Program Files (x86)\Java\jre7\bin" -Djava.library.path="C:/bin/TheBrain/bin" -Xmx256m -Xms35m -Dswing.aatext=true -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dinstall4j.launcherId=5 -Dinstall4j.swt=false -classpath %CLASSPATH_BRAIN% com.install4j.runtime.launcher.Launcher launch com.thebrain.personal.controller.App true false %PRG_DIR%\output_32bit.log %PRG_DIR%\output_32bit.log true true true "s_16k98qn.png" false true 419 230 "" 18 97 "Arial" "0,0,0" 8 500 "Version 7.0.4.5" 18 117 "Arial" "0,0,0" 8 500 -1


--- my batch for 64bit : -----------------------------------------------------------------



SET PATH=%PATH%;c:\bin\TheBrain\bin64\;

SET JAVA64="C:\Program Files\Java\jre7\bin\javaw.exe"
SET JAVA_HOME="C:\Program Files\Java\jre7\bin\"
:: SET APP_JAVA_HOME="C:\Program Files\Java\jre7\bin;c:\bin\TheBrain\bin64"

SET PRG_DIR=c:\bin\TheBrain\


SET CLASSPATH_BRAIN=.install4j\i4jruntime.jar;TheBrain.jar;.\lib\h2.jar;.\lib\h2mig_pagestore_addon.jar;.\lib\comfyj.jar;.\lib\jniwrap.jar;.\lib\winpack.jar;.\lib\jdic_fileutil.jar;.\lib\xercesImpl.jar;.\lib\xml-apis.jar;.\lib\jide-common.jar;.\lib\jide-dock.jar;.\lib\icu4j_3_4.jar;.\lib\iri.jar;.\lib\jena.jar;.\lib\slf4j-api-1.5.8.jar;.\lib\slf4j-simple-1.5.8.jar;.\lib\editlivejava.jar;.\lib\gdata-calendar-2.0.jar;.\lib\gdata-client-1.0.jar;.\lib\gdata-core-1.0.jar;.\lib\hsqldb.jar;.\lib\gson-1.7.1.jar;lang;.\lib\sqlitejdbc-v056-linux.jar;.\lib\sqlitejdbc-v056-mac.jar;.\lib\sqlitejdbc-v056-win.jar;.\lib\guava-r09.jar;


%JAVA64% -Dinstall4j.jvmDir=%APP_JAVA_HOME% -Dexe4j.moduleName=".\TheBrain.jar" -Djava.library.path="C:/temp/TheBrain/bin64" -Xmx192m -Xms35m -Dswing.aatext=true -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dinstall4j.launcherId=5 -Dinstall4j.swt=false -classpath %CLASSPATH_BRAIN% com.install4j.runtime.launcher.Launcher launch com.thebrain.personal.controller.App true false %PRG_DIR%\output_64bit.log %PRG_DIR%\output_64bit.log true true true "s_16k98qn.png" false true 419 230 "" 18 97 "Arial" "0,0,0" 8 500 "Version 7.0.4.5" 18 117 "Arial" "0,0,0" 8 500 -1


---------------------------------------------------

It won't change the lives of many people, but I'm a bit of a purist when it comes to Java apps.
If it's JAVA, it's not .EXE !!!


cheers
enkidu


Quote
enkidu
Hello. At least one user found this useful, so, by huge popular request, here is the update for version 8

--- my batch for 32bit : -----------------------------------------------------------------

@echo off

:: created 21.09.2012
::
:: 25.09.2013 solved the DTS 32 and 64bit library dependencies
:: updated for 8.0.0.4


SET PATH=%PATH%;C:\bin\TheBrain8\bin\;

SET JAVA32="C:\Program Files (x86)\Java\jre7\bin\javaw.exe"
SET JAVA_HOME="C:\Program Files (x86)\Java\jre7\bin\"
:: SET APP_JAVA_HOME="C:\Program Files (x86)\Java\jre7\bin"

SET PRG_DIR=C:\bin\TheBrain8\
:: SET APP_HOME=C:\ProgramData\TheBrain
:: SET DB_HOME=C:\Users\IBM_ADMIN\AppData\Roaming\TheBrain



SET CLASSPATH_BRAIN=.install4j\i4jruntime.jar;.\TheBrain.jar;lib\h2.jar;lib\h2mig_pagestore_addon.jar;lib\comfyj.jar;lib\jniwrap.jar;lib\winpack.jar;lib\jdic_fileutil.jar;lib\xercesImpl.jar;lib\xml-apis.jar;lib\jide-common.jar;lib\jide-dock.jar;lib\icu4j_3_4.jar;lib\iri.jar;lib\jena.jar;lib\slf4j-api-1.5.8.jar;lib\slf4j-simple-1.5.8.jar;lib\editlivejava.jar;lib\gdata-calendar-2.0.jar;lib\gdata-client-1.0.jar;.\lib\gdata-core-1.0.jar;lib\hsqldb.jar;.\lang;lib\sqlitejdbc-v056-linux.jar;lib\sqlitejdbc-v056-mac.jar;lib\sqlitejdbc-v056-win.jar;lib\guava-r09.jar;lib\guice-3.0.jar;lib\javax.inject.jar;lib\aopalliance.jar;lib\icontools.jar;lib\gson-2.2.2.jar;lib\ssce.jar;


%JAVA32% -Dinstall4j.jvmDir="C:\Program Files (x86)\Java\jre7\bin" -Dexe4j.moduleName=".\TheBrain.jar" "-Xmx192m" "-Xms35m" "-Dswing.aatext=true" "-Dsun.java2d.noddraw=true" "-Dsun.java2d.d3d=false" "-Dinstall4j.launcherId=5" "-Dinstall4j.swt=false" -classpath %CLASSPATH_BRAIN% com.install4j.runtime.launcher.Launcher launch com.thebrain.personal.TheBrainBootstrap true false ".\output_32b.log" ".\output_32b.log" true true true "s_w3xel2.png" false true 419 230 "" 18 97 "Arial" "0,0,0" 8 500 "Version 8.0.0.4" 18 117 "Arial" "0,0,0" 8 500 -1


--- my batch for 64bit : -----------------------------------------------------------------



SET PATH=%PATH%;C:\bin\TheBrain8\bin64\;

SET JAVA64="C:\Program Files\Java\jre7\bin\javaw.exe"
SET JAVA_HOME="C:\Program Files\Java\jre7\bin\"
SET APP_JAVA_HOME="C:\Program Files\Java\jre7\bin;C:\bin\TheBrain8\bin64"

SET PRG_DIR=C:\bin\TheBrain8\
:: SET APP_HOME=c:\bin\TheBrain\
:: SET DB_HOME=c:\DATA\nico\mindmaps\Brains\




SET CLASSPATH_BRAIN=.install4j\i4jruntime.jar;.\TheBrain.jar;lib\h2.jar;lib\h2mig_pagestore_addon.jar;lib\comfyj.jar;lib\jniwrap.jar;lib\winpack.jar;lib\jdic_fileutil.jar;lib\xercesImpl.jar;lib\xml-apis.jar;lib\jide-common.jar;lib\jide-dock.jar;lib\icu4j_3_4.jar;lib\iri.jar;lib\jena.jar;lib\slf4j-api-1.5.8.jar;lib\slf4j-simple-1.5.8.jar;lib\editlivejava.jar;lib\gdata-calendar-2.0.jar;lib\gdata-client-1.0.jar;.\lib\gdata-core-1.0.jar;lib\hsqldb.jar;.\lang;lib\sqlitejdbc-v056-linux.jar;lib\sqlitejdbc-v056-mac.jar;lib\sqlitejdbc-v056-win.jar;lib\guava-r09.jar;lib\guice-3.0.jar;lib\javax.inject.jar;lib\aopalliance.jar;lib\icontools.jar;lib\gson-2.2.2.jar;lib\ssce.jar;




%JAVA64% -Dinstall4j.jvmDir=%APP_JAVA_HOME% -Dexe4j.moduleName=".\TheBrain.jar" -Djava.library.path="C:/bin/TheBrain8/bin64" -Xmx192m -Xms35m  "-Dswing.aatext=true" "-Dsun.java2d.noddraw=true" "-Dsun.java2d.d3d=false" "-Dinstall4j.launcherId=5" "-Dinstall4j.swt=false" -classpath %CLASSPATH_BRAIN% com.install4j.runtime.launcher.Launcher launch com.thebrain.personal.TheBrainBootstrap true false ".\output_64b.log" ".\output_64b.log" true true true "s_w3xel2.png" false true 419 230 "" 18 97 "Arial" "0,0,0" 8 500 "Version 8.0.0.4" 18 117 "Arial" "0,0,0" 8 500 -1




-----------

tested on Windows7 64bit.

cheers
enkidu

Quote

Newsletter Signup  Newsletter        Visit TheBrain Blog   Blog       Follow us on Twitter   Twitter       Like Us on Facebook   Facebook         Watch Us on Youtube  YouTube       

TheBrain Mind Map & Mindmapping Software     Download TheBrain Mind Mapping Software