vmware / vmware/photon

installed openjdk11 but no java

Open
#1,311 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Hi,
I did

tdnf install openjdk11

install seems to go well.

Downloading:
slang 826995 100%
newt 101755 100%
chkconfig 187313 100%
openjdk11 168231978 100%
Testing transaction
Running transaction
Installing/Updating: slang-2.3.2-1.ph4.x86_64
Installing/Updating: newt-0.52.21-1.ph4.x86_64
Installing/Updating: chkconfig-1.9-3.ph4.x86_64
Installing/Updating: openjdk11-11.0.9-2.ph4.x86_64

however, after install there is no java

java -v
-bash: java: command not found

Am I missing something?

Reproduction steps
1.tdnf install openjdk11
2.java -v 
3.
...
Expected behavior

java should tell its version

Additional context

I am trying to run a minecraft server, for what its worth, and no docker version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported sequence with tdnf install openjdk11, then run java -v and inspect what the installed package provides and where its executable is placed. Done means the documented installation makes the java command available and the version command reports the installed OpenJDK version.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, linux
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.