Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praj-foss/uname-graalvm-demo
Demo of uname system call from Java using GraalVM
https://github.com/praj-foss/uname-graalvm-demo
graalvm java native unix
Last synced: 9 days ago
JSON representation
Demo of uname system call from Java using GraalVM
- Host: GitHub
- URL: https://github.com/praj-foss/uname-graalvm-demo
- Owner: praj-foss
- License: unlicense
- Created: 2020-08-14T17:44:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T18:54:08.000Z (over 4 years ago)
- Last Synced: 2024-11-16T15:34:46.901Z (2 months ago)
- Topics: graalvm, java, native, unix
- Language: Java
- Homepage: https://www.praj.in/posts/2020/calling-uname-from-java-using-graalvm/
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
uname-graalvm-demo
==================
A simple demo of [uname](https://en.wikipedia.org/wiki/Uname)
system call from Java using [GraalVM](https://www.graalvm.org/).
It fetches kernel information similar to the `uname` command
found in Unix-likes.## Building
You'll need JDK 11 or higher installed. Use the following command to build:
```shell script
./gradlew nativeImage
```
After compilation is done, run it using:
```
./build/graal/uname-graal
```## Output
You can see most of the `uname -a` information in the output,
although it's not in a single line:
```
$ ./build/graal/uname-graal
Kernel name: Linux
Node name: praj-aspire
Kernel release: 5.7.10-zen1-1-zen
Kernel version: #1 ZEN SMP PREEMPT Wed, 22 Jul 2020 20:13:40 +0000
Machine: x86_64
```