Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Last active December 14, 2015 10:38
Show Gist options
  • Select an option

  • Save rajeshpv/5073255 to your computer and use it in GitHub Desktop.

Select an option

Save rajeshpv/5073255 to your computer and use it in GitHub Desktop.

this assumes you have already unzipped the proper eclipse version

  • creating Launcher script as follows:
sudo vi /usr/share/applications/eclipse.desktop
sudo ln -s ~/programs/eclipse/eclipse-juno-sr2/eclipse /usr/bin/eclipse
  • contents of eclipse.desktop
[Desktop Entry]
Version=4.2
Name=Eclipse
GenericName=Text Editor

Exec=eclipse
Terminal=false
Icon=/home/rajesh/programs/eclipse/eclipse-juno-sr2/icon.xpm
Type=Application
Categories=IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=eclipse -n
TargetEnvironment=Unity
  • rename eclipse.ini to eclipse.ini.orig and replace its contents as follows
  • check for proper jvm.dll or jvm.so as follows
-nosplash
--launcher.defaultAction
openFile
-vm
/home/rajesh/programs/java/jdk1.7.0_15/jre/lib/amd64/server/libjvm.so
-vmargs
-Xincgc
-Xss1m
-Duser.name=Rajesh Rao
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.7
-Declipse.p2.unsignedPolicy=allow
-Declipse.p2.MD5Check=false
-Xms128m
-Xmx2048m
-XX:NewSize=16m
-XX:PermSize=120m
-XX:MaxPermSize=300m
-XX:MaxPermHeapExpansion=20m
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=70
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseParNewGC
-XX:+CMSConcurrentMTEnabled
-XX:ConcGCThreads=2
-XX:ParallelGCThreads=2
-XX:+CMSIncrementalPacing
-XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=5
-XX:GCTimeRatio=49
-XX:MaxGCPauseMillis=20
-XX:GCPauseIntervalMillis=1000
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSClassUnloadingEnabled
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+AggressiveOpts
-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses

this assumes you have already unzipped the proper eclipse version

  • creating Launcher script as follows:
sudo vi /usr/share/applications/eclipse.desktop
sudo ln -s ~/programs/eclipse/eclipse-juno-sr2/eclipse /usr/bin/eclipse
  • contents of eclipse.desktop
[Desktop Entry]
Version=4.2
Name=Eclipse
GenericName=Text Editor

Exec=eclipse
Terminal=false
Icon=/home/rajesh/programs/eclipse/eclipse-juno-sr2/icon.xpm
Type=Application
Categories=IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=eclipse -n
TargetEnvironment=Unity
  • rename eclipse.ini to eclipse.ini.orig and replace its contents as follows
  • check for proper jvm.dll or jvm.so as follows
-nosplash
--launcher.defaultAction
openFile
-vm
/home/rajesh/programs/java/jdk1.7.0_15/jre/lib/amd64/server/libjvm.so
-vmargs
-Xincgc
-Xss1m
-Duser.name=Rajesh Rao
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.7
-Declipse.p2.unsignedPolicy=allow
-Declipse.p2.MD5Check=false
-Xms128m
-Xmx2048m
-XX:NewSize=16m
-XX:PermSize=120m
-XX:MaxPermSize=300m
-XX:MaxPermHeapExpansion=20m
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=70
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseParNewGC
-XX:+CMSConcurrentMTEnabled
-XX:ConcGCThreads=2
-XX:ParallelGCThreads=2
-XX:+CMSIncrementalPacing
-XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=5
-XX:GCTimeRatio=49
-XX:MaxGCPauseMillis=20
-XX:GCPauseIntervalMillis=1000
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSClassUnloadingEnabled
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+AggressiveOpts
-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment