Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Last active October 16, 2021 23:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonashackt/96eea356b05beeef27e4 to your computer and use it in GitHub Desktop.
Save jonashackt/96eea356b05beeef27e4 to your computer and use it in GitHub Desktop.
Start Eclipse bat-File
### env.cmd:
set ROOT=%~dp0%
set JAVA_HOME=%ROOT%bin\jdk1.8.0_66
set GRADLE_HOME=%ROOT%bin\gradle
set GRADLE_USER_HOME=%ROOT%gradle_repository
set M2_HOME=%ROOT%bin\maven
set MAVEN_HOME=%ROOT%bin\maven
set M2_REPO=%ROOT%maven_repository
set MAVEN_REPO=%ROOT%maven_repository
set MAVEN_OPTS=-Xmx1024m -Dmaven.repo.local=%MAVEN_REPO%
set PATH=%MAVEN_HOME%\bin;%JAVA_HOME%\bin;%IE_DRIVER_HOME%;%PATH%;%GRADLE_HOME%\bin
set TMP=c:\tmp
set TEMP=c:\tmp
@echo off
if "%1"=="set" goto ende
if "%1"=="" goto docmd
@rem else:
:doshell
start "%1" %1 %2 %3 %4 %5
goto ende
:docmd
cmd
:ende
### eclipse.cmd:
call env.cmd set
start %ROOT%bin\eclipse-java-mars-1-win32-x86_64\eclipse\eclipse.exe -Dfile.encoding=UTF-8 -data %ROOT%workspace -Duser.name=jonas.hecht %1 %2 %3 %4 %5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment