Mac OS下STS 3.9.4添加Runtime Server库失败求助
Hey there! Let's tackle this frustrating issue you're facing—having your Pivotal Server show up in STS 3.9.4 on Windows but not on your MacBook Pro. It's super common for macOS's stricter permissions and older software compatibility quirks to cause this, so let's walk through actionable fixes step by step:
1. Check Pivotal Server Installation Path Permissions
macOS enforces tight file system permissions, especially if you installed the server in a system-level directory like /Applications. STS might not have read access to these locations, which prevents it from detecting the server.
- Fix: Move your Pivotal Server installation to a user-owned directory (e.g.,
~/Documents/PivotalServer). Then reconfigure the server in STS:- Open STS, go to
Window > Show View > Servers - Right-click in the empty Servers view >
New > Server - Select your Pivotal Server type, click
Next, thenBrowseto select the new installation path - Complete the setup and check if the server now appears in your Java Build Path options
- Open STS, go to
2. Align STS JRE with Pivotal Server's Required Java Version
Mismatched Java versions can also break server detection. Make sure the JRE configured in STS matches the one your Pivotal Server requires (e.g., Java 8 for older Pivotal Server versions):
- Open STS, go to
Eclipse > Preferences > Java > Installed JREs - Verify the correct JRE version is listed. If not, click
Addto add it (point to your JDK/JRE installation directory) - When configuring your server, ensure you select this matching JRE in the server setup wizard
3. Clear STS Server Adapter Cache
Corrupted cache files can prevent STS from recognizing configured servers. Let's reset this cache:
- Close STS completely
- Navigate to your STS workspace directory, then go to
.metadata/.plugins/org.eclipse.core.runtime/.settings - Delete the following files (if they exist):
org.eclipse.wst.server.core.prefsorg.eclipse.jst.server.tomcat.core.prefs
- Reopen STS and reconfigure your Pivotal Server
4. Verify Pivotal Server Package Integrity
Sometimes third-party unzip tools on macOS can mess up file permissions or miss files during extraction. Try re-downloading the Pivotal Server package and using the terminal to unzip it:
- Open Terminal, navigate to the directory where your server zip file is located
- Run the command:
unzip your-server-package.zip -d ~/Documents/PivotalServer - This ensures all files are extracted with correct permissions, then reconfigure the server in STS
5. Consider Upgrading to STS 4.x (If Possible)
STS 3.9.4 is a relatively old release (circa 2018) and may have unresolved macOS compatibility issues. STS 4.x is actively maintained, has better macOS support, and a more streamlined server setup process. If you're not tied to 3.9.4 for specific reasons, upgrading might be the fastest long-term fix.
Try these steps in order—permission and path checks usually resolve this issue first. Let me know if any of these work for you!
内容的提问来源于stack exchange,提问作者David Ramiro Barragán

