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
En esta página del sitio puede ver el video en línea Running a Simple "Hello World" Java Program Using Docker de Duración hora minuto segunda en buena calidad , que subió el usuario Yeshwant Rao B 24 marzo 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 551 veces y le gustó 20 a los espectadores. Disfruta viendo!