Skip to main content

The elegant, lightweight JDK Manager for Windows, Linux & macOS

Project description

☕ CoffeeBar

The elegant, lightweight JDK Manager for Windows, Linux & macOS.

CoffeeBar allows you to switch between Java versions instantly, download new JDKs directly from Eclipse Adoptium, and manage your environment variables with style.

Python Platform License


✨ Features

  • ⚡ Instant Switching: Change your JAVA_HOME and Path in seconds.
  • 📥 Integrated Downloader: Download and install LTS JDKs (8, 11, 17, 21) directly from the app (powered by Eclipse Adoptium).
    • Auto-detects Apple Silicon (M1/M2/M3) vs Intel.
  • 🚀 Smart Shell Refresh:
    • Windows: Updates current session via refreshenv (CMD/PS).
    • Linux/macOS: Updates configuration via .bashrc / .zshrc integration.
  • 🎨 Dual Interface:
    • GUI: A beautiful "Dark Mode" graphical interface built with CustomTkinter.
    • CLI: A robust command-line tool for power users.
  • 🔍 Auto-Discovery: Automatically finds JDKs in Program Files, .jdks (IntelliJ), /usr/lib/jvm, /Library/Java/JavaVirtualMachines (macOS), etc.

🛠️ Installation

🪟 Windows

  1. Prerequisites: Python 3 installed.
  2. Run install.bat.

🐧 Linux / 🍎 macOS

  1. Prerequisites: Python 3 installed.
  2. Install python3-tkinter (Linux only, usually included in macOS/Windows).
    • Debian/Ubuntu: sudo apt-get install python3-tk
  3. Run the installer:
chmod +x install.sh
./install.sh

Post-Install (Linux/Mac): Restart terminal or run source ~/.bashrc (or .zshrc).


📖 Usage

Once installed, use the coffeebar command globally.

💻 CLI Mode

Action Command Description
List JDKs coffeebar list List available versions found in system paths.
Switch coffeebar use 17 Switch JAVA_HOME (supports partial names).
Install coffeebar install 21 Download LTS JDK from Adoptium.
Current coffeebar current Show active JDK.
GUI coffeebar Launch graphical interface.

Example:

$ coffeebar use 17
Set JAVA_HOME to /usr/lib/jvm/temurin-17
[CoffeeBar] Environment updated.

🖥️ GUI Mode

Simply run coffeebar (or python3 -m src.main).

  • Cross-platform: Looks native on Windows, Linux (Gnome/KDE), and macOS.
  • One-Click Install: Downloads the correct .tar.gz or .zip for your OS and Architecture.

⚙️ How it works

  • Windows: Modifies HKCU\Environment and broadcasts changes.
  • Linux/macOS: Manages a lightweight file ~/.coffeebar_env which is sourced by your shell configuration and uses simple shell aliases.

Made with ❤️ for developers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coffeebar_jdk-1.0.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coffeebar_jdk-1.0.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file coffeebar_jdk-1.0.0.tar.gz.

File metadata

  • Download URL: coffeebar_jdk-1.0.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for coffeebar_jdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b2acbb35505de0a51ce6ca524697ea7e3751e3c0b3cf757958fa85185b71535c
MD5 d6d598bb7cc7476600501c11cbe94181
BLAKE2b-256 cbca167a38b69b4b6bb110a31d10b1625dc5c766f4d31c2488f8c623993d4160

See more details on using hashes here.

File details

Details for the file coffeebar_jdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: coffeebar_jdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for coffeebar_jdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4505d51303f7ccc7b53ee2c963e05cbfea9b5368b7ca517a1ee6f8111c7665b
MD5 187496d481c86c09bee65da4488827cf
BLAKE2b-256 590e7e54a2fad6bd5fb694d7a5d532ab7b8327c16de51e18ddc9434ab9876089

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page