...
For Mac OS X the jre line is slightly different and is unique to your own home directory,
Code Block | ||
---|---|---|
| ||
# --------------------------- # Start Bonsai Framework # ----------------------- # Use local version of Java. # Note, these lines must come just before -vmwargs -vm /Users/tin.pham/cmd/apps/eclipse/opt/java/jre1.68.0_18121.jre/Contents/Home/bin/java # ----------------------- # End Bonsai Framework # --------------------------- |
If using Mac OS X you will recieve receive an error due to modification of the eclipse.ini file,
...
To fix this switch, open the mac terminal and type the following,,
Code Block | ||
---|---|---|
| ||
cd ~/apps
spctl --add --label "Eclipse" 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,
Code Block | ||
---|---|---|
| ||
sudo spctl --master-disable su - setup.admin # My normal Mac User does not have sudo privileges, yours might. sudo spctl --master-enabledisable |
Then the error message turns to,
Panel |
---|
“Eclipse.app” is an application downloaded from the Internet. Are you sure you want to open it? |
Click "open". Then enabling after it seems okThis will add Eclipse into the registry and everything should start.
Then enable the protection again,
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.
...
- Windows = C:\apps\eclipse\eclipse.exe
- Linux or Unix = /home/tpham/apps/eclipse/eclipse
- Mac OS X = same as Linux
Configure Eclipse to Use Tomcat
...