- sudo -i
- yum update
- yum list available java*
- yum install java-11-openjdk
- alternatives –config java
- choose the one you want
Back to blog
Installing Java on CentOS 7 & Red Hat Enterprise Linux 7
Installing Java 11 (OpenJDK) on CentOS 7 and RHEL 7 with yum, plus picking an alternative version — a short step-by-step guide.
javalinux
More posts
All posts$ ./mvnw spring-boot:run Tomcat started on :8080 Started Application
Tool Calling and MCP with Spring AI
Exposing your application's functions to an LLM with Spring AI — tool calling with @Tool, ToolContext, returnDirect, security, and setting up a Model Context Protocol (MCP) server and client.
$ ./mvnw spring-boot:run Tomcat started on :8080 Started Application
Getting Started with Spring AI: ChatClient, Prompts, Structured Output and Chat Memory
Adding LLM support to a Spring Boot app with Spring AI — setup, the ChatClient API, prompt templates, structured output into records, streaming and conversation memory.
$ ./mvnw spring-boot:run Tomcat started on :8080 Started Application
@Transactional Pitfalls and Locking with Spring and Hibernate
How @Transactional works through proxies, self-invocation, rollback rules, propagation, readOnly, optimistic and pessimistic locking, and the SKIP LOCKED job-queue pattern.