Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Attard committed May 25, 2020
1 parent db20e32 commit 013d369
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 16 deletions.
4 changes: 2 additions & 2 deletions 02 - Java 101.md → 02 - Java Light.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Java 101
# Java Light

The purpose of this section is to introduce some common aspects of the Java programming language without delving into any depts. When discussing a topic in detail we may need to also touch other topics that have not yet been mentioned. Acts as an introduction so that the rest of the boot camp and helps digesting the rest of the content.
The purpose of this section is to introduce some common aspects of the Java programming language **without delving into any depths**. When discussing any topic in some detail we may need to also touch other topics that have not yet been mentioned. For example, loops and collections go together and either way you start, one needs to come before the other. This section acts as an introduction, hopefully simplifying the digesting the rest of the boot camp. Do not worry if some of the concepts do not sink in as each item is discussed in depth later on.

## TOC

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ Boot Camp for developers interested to learn Java.
1. [Multi-Stage Docker Build](01%20-%20Primer.md#multi-stage-docker-build)
1. [Managing Docker Containers](01%20-%20Primer.md#managing-docker-containers)

## [Java 101](02%20-%20Java%20101.md)
## [Java Light](02%20-%20Java%20Light.md)

1. [JShell](02%20-%20Java%20101.md#jshell)
1. [Java single file execution](02%20-%20Java%20101.md#java-single-file-execution)
1. [Introduction to classes and methods](02%20-%20Java%20101.md#introduction-to-classes-and-methods)
1. [Source and class files](02%20-%20Java%20101.md#source-and-class-files)
1. [Methods](02%20-%20Java%20101.md#methods)
1. [Introduction to variables and types](02%20-%20Java%20101.md#introduction-to-variables-and-types)
1. [Introduction to collections](02%20-%20Java%20101.md#introduction-to-collections)
1. [Arrays](02%20-%20Java%20101.md#arrays)
1. [Lists](02%20-%20Java%20101.md#lists)
1. [Introduction to control-flow](02%20-%20Java%20101.md#introduction-to-control-flow)
1. [If-Else](02%20-%20Java%20101.md#if-else)
1. [switch](02%20-%20Java%20101.md#switch)
1. [For Loops](02%20-%20Java%20101.md#for-loops)
1. [JShell](02%20-%20Java%20Light.md#jshell)
1. [Java single file execution](02%20-%20Java%20Light.md#java-single-file-execution)
1. [Introduction to classes and methods](02%20-%20Java%20Light.md#introduction-to-classes-and-methods)
1. [Source and class files](02%20-%20Java%20Light.md#source-and-class-files)
1. [Methods](02%20-%20Java%20Light.md#methods)
1. [Introduction to variables and types](02%20-%20Java%20Light.md#introduction-to-variables-and-types)
1. [Introduction to collections](02%20-%20Java%20Light.md#introduction-to-collections)
1. [Arrays](02%20-%20Java%20Light.md#arrays)
1. [Lists](02%20-%20Java%20Light.md#lists)
1. [Introduction to control-flow](02%20-%20Java%20Light.md#introduction-to-control-flow)
1. [If-Else](02%20-%20Java%20Light.md#if-else)
1. [switch](02%20-%20Java%20Light.md#switch)
1. [For Loops](02%20-%20Java%20Light.md#for-loops)

## [Data Types](03%20-%20Data%20Types.md)

Expand Down
Binary file added assets/images/GraalVM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions assets/notes/graalvm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Resources:
1. https://spring.io/blog/2020/04/16/spring-tips-the-graalvm-native-image-builder-feature
1. https://github.com/mike-neck/graalvm-native-image-plugin

```bash
$ sdk list java
```

```bash
GraalVM | | 20.1.0.r11 | grl | | 20.1.0.r11-grl
| | 20.1.0.r8 | grl | | 20.1.0.r8-grl
| | 20.0.0.r11 | grl | | 20.0.0.r11-grl
| | 20.0.0.r8 | grl | | 20.0.0.r8-grl
| | 19.3.1.r11 | grl | | 19.3.1.r11-grl
| | 19.3.1.r8 | grl | | 19.3.1.r8-grl
```

```bash
$ sdk install java 20.1.0.r11-grl
```

```bash
$ vi ~/.oh-my-zsh/custom/dev.zsh
```

```bash
alias graalvm='sdk default java 20.1.0.r11-grl'
```

```bash
alias java8='sdk default java 8.0.252.hs-adpt'
alias java11='sdk default java 11.0.6.hs-adpt'
alias java14='sdk default java 14.0.1.hs-adpt'
alias graalvm='sdk default java 20.1.0.r11-grl'
```

```bash
$ gu --version
GraalVM Updater 20.1.0
```

Install the native image builder

```bash
$ gu install native-image
Downloading: Component catalog from www.graalvm.org
Processing Component: Native Image
Downloading: Component native-image: Native Image from github.com
Installing new component: Native Image (org.graalvm.native-image, version 20.1.0)
```

0 comments on commit 013d369

Please sign in to comment.