<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=Oj_en_bat</id>
	<title>Oj en bat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=Oj_en_bat"/>
	<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=Oj_en_bat&amp;action=history"/>
	<updated>2026-06-17T10:54:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://ojwiki.soldin.de/index.php?title=Oj_en_bat&amp;diff=1339&amp;oldid=prev</id>
		<title>Mentaer: Created page with &#039;* copy the content in the box below into a new text file - (using the windows standard text editor). * rename that file to oj_en.bat and place it in the /bin/ folder of OpenJUMP …&#039;</title>
		<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=Oj_en_bat&amp;diff=1339&amp;oldid=prev"/>
		<updated>2012-01-12T15:50:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;* copy the content in the box below into a new text file - (using the windows standard text editor). * rename that file to oj_en.bat and place it in the /bin/ folder of OpenJUMP …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* copy the content in the box below into a new text file - (using the windows standard text editor).&lt;br /&gt;
* rename that file to oj_en.bat and place it in the /bin/ folder of OpenJUMP&lt;br /&gt;
* start OpenJUMP by double click on the file. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@echo off&lt;br /&gt;
rem -- Detect current dir and OJ home --&lt;br /&gt;
set OLD_DIR=%CD%&lt;br /&gt;
set JUMP_HOME=%~dp0..%&lt;br /&gt;
&lt;br /&gt;
rem -- uncomment to save settings and log to user profile, quote if env vars might contain spaces --&lt;br /&gt;
rem -- if unset defaults to JUMP_HOME/bin/ --&lt;br /&gt;
rem set SETTINGS_HOME=&amp;quot;%HOMEDRIVE%%HOMEPATH%&amp;quot;\openjump&lt;br /&gt;
&lt;br /&gt;
rem -- uncomment to manually set java home, don&amp;#039;t use quotes --&lt;br /&gt;
rem set JAVA_HOME=G:\path\to\a\specific\&amp;lt;jre|jdk&amp;gt;-1.&amp;lt;5|6&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rem -- uncomment to use &amp;#039;java&amp;#039; for console output, if unset defaults to &amp;#039;javaw&amp;#039; for background jre  --&lt;br /&gt;
rem set JAVA_BIN=java&lt;br /&gt;
&lt;br /&gt;
rem -- set some java runtime options here, initialize empty --&lt;br /&gt;
set JAVA_OPTS=&lt;br /&gt;
&lt;br /&gt;
rem --- uncomment and change your language/country here to overwrite OS locale setting ---&lt;br /&gt;
set JAVA_OPTS=%JAVA_OPTS% -Duser.language=en -Duser.country=DE&lt;br /&gt;
&lt;br /&gt;
rem --- change your memory configuration here - Xms is initial size, Xmx is maximum size, ---&lt;br /&gt;
rem --- values are ##M for ## Megabytes, ##G for ## Gigabytes ---&lt;br /&gt;
set JAVA_OPTS=%JAVA_OPTS% -Xms64M -Xmx512M&lt;br /&gt;
&lt;br /&gt;
rem -- find java runtime --&lt;br /&gt;
  rem --- default to javaw ---&lt;br /&gt;
  if &amp;quot;%JAVA_BIN%&amp;quot;==&amp;quot;&amp;quot; set JAVA_BIN=javaw&lt;br /&gt;
&lt;br /&gt;
  rem --- fallback to plain bin name, just in case ---&lt;br /&gt;
  set JAVA=%JAVA_BIN%&lt;br /&gt;
&lt;br /&gt;
  rem --- if no java home &amp;amp; java bin in path, replace fallback entry ---&lt;br /&gt;
  if &amp;quot;%JAVA_HOME%&amp;quot;==&amp;quot;&amp;quot; (&lt;br /&gt;
      @for %%i in (%JAVA_BIN%.exe) do @if NOT &amp;quot;%%~$PATH:i&amp;quot;==&amp;quot;&amp;quot; set JAVA=%%~$PATH:i&lt;br /&gt;
  )&lt;br /&gt;
&lt;br /&gt;
  rem --- java home definition overwrites all ---&lt;br /&gt;
  if NOT &amp;quot;%JAVA_HOME%&amp;quot;==&amp;quot;&amp;quot; set JAVA=%JAVA_HOME%\bin\%JAVA_BIN%&lt;br /&gt;
  &lt;br /&gt;
  rem --- if java is still not found ---&lt;br /&gt;
  if EXIST %JAVA% goto :x86&lt;br /&gt;
  rem --- and batch is in x64 mode ---&lt;br /&gt;
  if &amp;quot;%PROCESSOR_ARCHITECTURE%&amp;quot; == &amp;quot;x86&amp;quot; goto :x86&lt;br /&gt;
  rem --- restart the batch in x86 mode---&lt;br /&gt;
    echo Restarting using Wow64 filesystem redirection: %0&lt;br /&gt;
    %SystemRoot%\SysWOW64\cmd.exe /c %0&lt;br /&gt;
    exit /b %ERRORLEVEL%&lt;br /&gt;
  :x86&lt;br /&gt;
&lt;br /&gt;
rem -- show java version (for debugging) --&lt;br /&gt;
for %%F in (&amp;quot;%JAVA%&amp;quot;) do set dirname=%%~dpF&lt;br /&gt;
&amp;quot;%dirname%java&amp;quot; -version&lt;br /&gt;
&lt;br /&gt;
rem -- Change to jump home dir --&lt;br /&gt;
rem -- NOTE: mount UNC paths to a local drive for this --&lt;br /&gt;
cd /D %JUMP_HOME%&lt;br /&gt;
&lt;br /&gt;
set LIB=lib&lt;br /&gt;
&lt;br /&gt;
rem -- setup native lib paths&lt;br /&gt;
set NATIVE=%LIB%\native&lt;br /&gt;
if DEFINED ProgramFiles(x86) set X64=64&lt;br /&gt;
rem --- XP Version 5.x ---&lt;br /&gt;
for /f &amp;quot;delims=&amp;quot; %%v in (&amp;#039;ver^|findstr /C:&amp;quot;Version 5&amp;quot;&amp;#039;) do (&lt;br /&gt;
  set &amp;quot;ID=xp&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
rem --- Vista Version 6.0 ---&lt;br /&gt;
for /f &amp;quot;delims=&amp;quot; %%v in (&amp;#039;ver^|findstr /C:&amp;quot;Version 6.0&amp;quot;&amp;#039;) do (&lt;br /&gt;
  set &amp;quot;ID=vista&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
rem --- 7 Version 6.1 ---&lt;br /&gt;
for /f &amp;quot;delims=&amp;quot; %%v in (&amp;#039;ver^|findstr /C:&amp;quot;Version 6.1&amp;quot;&amp;#039;) do (&lt;br /&gt;
  set &amp;quot;ID=seven&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
rem -- add native as fallthrough and lib\ext the legacy value --&lt;br /&gt;
set &amp;quot;NATIVEPATH=%NATIVE%\%ID%%X64%;%NATIVE%\%ID%;%NATIVE%&amp;quot;&lt;br /&gt;
set &amp;quot;PATH=%PATH%;%NATIVEPATH%;%LIB%\ext&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo %PATH%&lt;br /&gt;
&lt;br /&gt;
rem -- set classpath --&lt;br /&gt;
set CLASSPATH=.;bin;conf&lt;br /&gt;
&lt;br /&gt;
for %%i in (&amp;quot;%LIB%\*.jar&amp;quot; &amp;quot;%LIB%\*.zip&amp;quot; &amp;quot;%NATIVE%\%ID%%X64%\*.jar&amp;quot; &amp;quot;%NATIVE%\%ID%\*.jar&amp;quot; &amp;quot;%NATIVE%\*.jar&amp;quot;) do (&lt;br /&gt;
  set jarfile=%%i&lt;br /&gt;
&lt;br /&gt;
  rem If we append to a variable inside the for, only the last entry will&lt;br /&gt;
  rem be kept. So append to the variable outside the for.&lt;br /&gt;
  rem See http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20561701.html.&lt;br /&gt;
  rem [Jon Aquino]&lt;br /&gt;
&lt;br /&gt;
  call :setclass&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
echo %CLASSPATH%&lt;br /&gt;
&lt;br /&gt;
rem -- set settings home if none given, use [] for if to survive quotes in env var --&lt;br /&gt;
if [%SETTINGS_HOME%]==[] set SETTINGS_HOME=.\bin&lt;br /&gt;
&lt;br /&gt;
rem -- essential options, don&amp;#039;t change unless you know what you&amp;#039;re doing --&lt;br /&gt;
set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration=%SETTINGS_HOME%\log4j.xml -Djump.home=&amp;quot;%JUMP_HOME%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
rem -- set default app options --&lt;br /&gt;
set JUMP_OPTS=-default-plugins bin\default-plugins.xml -properties %SETTINGS_HOME%\workbench-properties.xml -plug-in-directory &amp;quot;%LIB%\ext&amp;quot; -18n en&lt;br /&gt;
&lt;br /&gt;
rem -- disconnect javaw from console by using start --&lt;br /&gt;
rem -- note: title is needed or start won&amp;#039;t accept quoted path to java binary (protect spaces in javapath) --&lt;br /&gt;
if /i &amp;quot;%JAVA_BIN%&amp;quot;==&amp;quot;javaw&amp;quot; ( set START=start &amp;quot;&amp;quot; ) else ( set START= )&lt;br /&gt;
%START% &amp;quot;%JAVA%&amp;quot; -cp &amp;quot;%CLASSPATH%&amp;quot; %JAVA_OPTS% com.vividsolutions.jump.workbench.JUMPWorkbench %JUMP_OPTS%&lt;br /&gt;
&lt;br /&gt;
cd /D %OLD_DIR%&lt;br /&gt;
&lt;br /&gt;
rem -- give user a chance to see console output if we are in console mode but the app finished already&lt;br /&gt;
if /i NOT &amp;quot;%JAVA_BIN%&amp;quot;==&amp;quot;javaw&amp;quot; pause&lt;br /&gt;
&lt;br /&gt;
goto :eof&lt;br /&gt;
&lt;br /&gt;
:setclass&lt;br /&gt;
set CLASSPATH=%CLASSPATH%;%jarfile%&lt;br /&gt;
set jarfile=&lt;br /&gt;
goto :eof&lt;br /&gt;
&lt;br /&gt;
:eof&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>
	</entry>
</feed>