-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathinstall.jshell
More file actions
36 lines (30 loc) 路 919 Bytes
/
Copy pathinstall.jshell
File metadata and controls
36 lines (30 loc) 路 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (c) 2024 Christian Stein
* Licensed under the Universal Permissive License v 1.0 -> https://opensource.org/license/upl
*/
System.out.printf(
"""
___ ___ ___ ___
/\\ \\ /\\ \\ /\\ \\ /\\__\\
/::\\ \\ /::\\ \\ /::\\ \\ /:/__/_
/::\\:\\__\\/::\\:\\__\\/:/\\:\\__\\/::\\/\\__\\
\\:\\::/ /\\/\\::/ /\\:\\ \\/__/\\/\\::/ / Java %s
\\::/ / /:/ / \\:\\__\\ /:/ / %s
\\/__/ \\/__/ \\/__/ \\/__/ %s
""",
Runtime.version(),
System.getProperty("os.name"),
Path.of("").toUri()
)
System.out.println("| Source Bach.java from https://src.bach.run/Bach.java ...")
/open https://src.bach.run/Bach.java
int code = 0
try {
Bach.init();
}
catch(Throwable throwable) {
System.err.println(throwable);
code = 1;
}
System.out.println("| Installation of Bach finished with exit code " + code)
/exit code