You just want your local Jetty server to behave while coding in Sublime Text. Instead, it keeps asking for restarts, config tweaks, and log spelunking that would make an archaeologist weep. Let’s fix that.
Jetty, the lightweight Java web server, is built for fast embedded deployments. Sublime Text, the minimalist editor that never slows down, is ideal for rapid iteration. Together, they can form a clean loop for server-side development — if you connect them correctly. The pairing works because Jetty’s simple launch model and Sublime’s command-driven workflow share the same ideal: spend more time coding, not wiring infrastructure.
To integrate Jetty with Sublime Text, you only need a clear development workflow. Keep Jetty’s configuration externalized, then trigger builds or redeploys directly from Sublime using a custom build system or a CLI alias. The goal is to keep your hands on the keyboard while your code hot-reloads into Jetty. Think of it as shortening the distance between save and serve.
Common setup pattern
Run Jetty locally with a lightweight Maven or Gradle task. Configure Sublime to invoke that task automatically or through a simple key binding. Tie logs to a pane output, not another terminal tab. When you hit save, Jetty rebuilds, redeploys, and runs in seconds. No tab-hopping. No context loss.
If authentication or secrets are involved, map your environment variables carefully. Jetty supports standard OIDC tokens, so hook those into your identity provider, the same way you’d wire an AWS IAM role or Okta app. Always use short-lived credentials. A 12-hour token is a silent risk waiting to happen.