After automatically installing JDTLS, you need to manually add the environment variables. #4429

Open
opened 2026-02-16 17:43:45 -05:00 by yindo · 2 comments
Owner

Originally created by @PingKuNet on GitHub (Jan 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

After automatically installing JDTLS, you need to manually add the environment variables.
Otherwise, it will prompt that JDTLS is not installed.
In fact, it has been installed and is already running.
It seems that the logic check is using "which jdtls".
Then I manually carried out the operation, and tried again, and it finally succeeded.

echo 'export PATH="/Users/pingku/.local/share/opencode/bin/jdtls/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Plugins

oh-my-opencode

OpenCode version

1.1.6

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 15.7.3

Terminal

iTerm2

Originally created by @PingKuNet on GitHub (Jan 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description After automatically installing JDTLS, you need to manually add the environment variables. Otherwise, it will prompt that JDTLS is not installed. In fact, it has been installed and is already running. It seems that the logic check is using "which jdtls". Then I manually carried out the operation, and tried again, and it finally succeeded. ``` echo 'export PATH="/Users/pingku/.local/share/opencode/bin/jdtls/bin:$PATH"' >> ~/.zshrc source ~/.zshrc ``` ### Plugins oh-my-opencode ### OpenCode version 1.1.6 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOS 15.7.3 ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:43:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7270: jdtls lsp server does not work properly in a window environment (similar root cause - JDTLS installed but system check fails to find it in PATH)

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #7270: jdtls lsp server does not work properly in a window environment (similar root cause - JDTLS installed but system check fails to find it in PATH) Feel free to ignore if this doesn't address your specific case.
Author
Owner

@CoderXiaohui commented on GitHub (Jan 13, 2026):

same on , thanks ~

@CoderXiaohui commented on GitHub (Jan 13, 2026): same on , thanks ~
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4429