Steps:
1. Create Test.java file
2. Type a simple program that prints "Hello World"
3. Save and compile: javac Test.java
4. Create docker file and type the following configurations:
FROM openjdk:11
WORKDIR /Users/Yeshwant_Rao/Desktop/DockerEg
COPY . /Users/Yeshwant_Rao/Desktop/DockerEg
RUN javac Test.java
CMD ["java", "Test"]
5. Build the container: docker build -t "example1helloworld" .
Intended Audience: 2nd Year Diploma Students (Karnataka DTEK C20 Syllabus)
Subject: Software Engineering Principles and Practices
On this page of the site you can watch the video online Running a Simple "Hello World" Java Program Using Docker with a duration of hours minute second in good quality, which was uploaded by the user Yeshwant Rao B 24 March 2025, share the link with friends and acquaintances, this video has already been watched 551 times on youtube and it was liked by 20 viewers. Enjoy your viewing!