File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ class HelloWorld {
2
+ public static void main (String [] args ) {
3
+ System .out .println ("Hello, World!" );
4
+ }
5
+ }
Original file line number Diff line number Diff line change 1
- # dev-container-java
1
+ # dev-container-java
2
+
3
+ An opinionated dev container for Java and VS Code
4
+
5
+ ## Prerequisites
6
+
7
+ To make best use of this repository, you need the following:
8
+
9
+ - Visual Studio Code
10
+ - VS Code extension "Remote Development"
11
+ - Docker Desktop (MacOS, Windows) or docker engine (Linux)
12
+ - git client (https://git-scm.com/downloads )
13
+
14
+ ## Getting Started
15
+
16
+ Once you have the container running, open a terminal inside VS Code and execute the following sequence of commands:
17
+
18
+ ``` bash
19
+ cd /src
20
+ javac HelloWorld.java
21
+ java HelloWorld
22
+ ```
23
+
24
+ All going to plan, this will output "Hello, world!" in the console.
You can’t perform that action at this time.
0 commit comments