Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Windows = C:\apps\
  • Linux or Unix = /home/[your home directory]/apps for example, /home/tpham/apps/
  • Mac OS X = same as Linux

Mac OS X has a special file system for applications. You can not just browse to it normally. Go to your "apps" directory and you should see Eclipse.app,

  1. Right click
  2. Select "Show Package Contents"
  3. Go into the "Eclipse" folder

Setup Package Java

Download Oracle's JRE (Java Runtime Environment) and follow the manual Java setup instructions.

...

  • Windows = C:\apps\eclipse\jre1.6.0_18
  • Linux or Unix = /home/tpham/apps/eclipse/jre1.6.0_18
  • Mac OS X = 

Modify eclipse.ini

Modify the eclipse.ini to point to your JRE with by adding -vm and a reference to Java.

Info

See Specifying the JVM at the Eclipse Wiki to understand why.

Panel

If you are using STS on Mac OS X, first you need to use the JDK (Java Development Kit) not the JRE (Java Runtime Environment)

  1. Go to your STS installation, and right-click on STS Application
  2. Select ‘Show Package Contents’
  3. A new Finder window will open and show the content of the application bundle.
  4. In Contents/MacOS is STS.ini which is equivalent of eclipse.ini

...

Code Block
languagebash
-startuplugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar--launcher.library-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
# ---------------------------
# Start Bonsai Framework
# -----------------------
# Use local version of Java.
# Note, these lines must come just before -vmwargs
-vm
jre1.6.0_18/bin/java
# -----------------------
# End Bonsai Framework
# --------------------------- 
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
Info

See Specifying the JVM at the Eclipse Wiki for more deteails.

Setup Tomcat

Similar to Eclipse, Tomcat also is also packaged without an installer. For windows we download the x86 .zip and for Linux or Unix download the .tar.gz file. Following the Bonsai Framework standards, decompress to the following folder,

  • C:\apps\eclipse-servers\apache-tomcat-6.0.24
  • /home/tpham/apps/eclipse-servers/apache-tomcat-6.0.24

Launch Eclipse

Start Eclipse by running the Eclipse executable included with the release. In our example the directories would be,

  • Windows = C:\apps\eclipse\eclipse.exe
  • Linux or Unix = /home/tpham/apps/eclipse/eclipse

If using Mac OS X you may will recieve an error due to modification of the STSeclipse.ini file,

Panel

“Eclipse.app” is damaged and can’t be opened. You should move it to the Trash.

...

I need to test on a fresh machine before saying 100%.

Setup Tomcat

Similar to Eclipse, Tomcat also is also packaged without an installer. For windows we download the x86 .zip and for Linux or Unix download the .tar.gz file. Following the Bonsai Framework standards, decompress to the following folder,

  • C:\apps\eclipse-servers\apache-tomcat-6.0.24
  • /home/tpham/apps/eclipse-servers/apache-tomcat-6.0.24

Launch Eclipse

Start Eclipse by running the Eclipse executable included with the release. In our example the directories would be,

  • Windows = C:\apps\eclipse\eclipse.exe
  • Linux or Unix = /home/tpham/apps/eclipse/eclipse

 

Configure Eclipse to Use Tomcat

...