...
To get quickly started download the package that matches your operating system.
Package | Operating Systems |
---|---|
tbd | Mac OS X |
tbd | Windows 7 32-bit |
tbd | Windows 7 64-bit |
Warning |
---|
Let's try and do Eclipse using Java 64 but then have Tomcat 32-bit use Java 32-bit. |
...
- Windows = C:\apps\eclipse\jre1.6.0_18
- Linux or Unix = /home/tpham/apps/eclipse/opt/jre1.6.0_18
- Mac OS X = same as Linux
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. |
Specifically with Mac OS, getting to eclipse.ini takes a few extra steps,
- Right click the Eclipse package.
- Select, Show Package Contents.
- Expand folders, Contents, Eclipse
- You should see eclipse.ini.
Edit with solid text editor.
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)
|
...
Here is an example of eclipse.ini for Unix or Linux change the jre line to,
Code Block | ||
---|---|---|
| ||
-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 # --------------------------- |
For Mac OS X the jre line is slightly different,
Code Block | ||
---|---|---|
| ||
# --------------------------- # Start Bonsai Framework # ----------------------- # Use local version of Java. # Note, these lines must come just before -vmwargs -vm /Users/tin.pham/cmd/jre1.6.0_18.jre/Contents/Home/bin/java # ----------------------- # End Bonsai Framework # --------------------------- -vmargs -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx512m |
If using Mac OS X you will recieve an error due to modification of the eclipse.ini file,
Panel |
---|
“Eclipse.app” is damaged and can’t be opened. You should move it to the Trash. |
To fix this switch to the directory where Eclipse.app resides,, open the mac terminal and type the following,,
Code Block | ||
---|---|---|
| ||
cd ~/apps spctl --add --label "Eclise" Eclipse.app # Eclipse.app is the Eclipse package. |
Actually, not sure if above fully worked. I tried and it did not seem to take. However, it started working after I I ended up switching to a root enabled account and disabling and enabling spctl. It may be adding below a step to reboot,
...
Click "open". Then enabling after it seems ok,
Code Block | ||
---|---|---|
| ||
su - setup.admin # My normal Mac User does not have sudo privileges, yours might. sudo spctl --master-disable sudo spctl --master-enable |
Restart the computer.
I need to test on a fresh machine before saying 100%.
...
- Windows = C:\apps\eclipse\eclipse.exe
- Linux or Unix = /home/tpham/apps/eclipse/eclipse
Configure Eclipse to Use Tomcat
...
Warning |
---|
Now that's it's 2014 maybe this changed... also try talking to Patrick. |
...