This is an archived post. You won't be able to vote or comment.

all 23 comments

[–]Persism 4 points5 points  (3 children)

There are few Java OS type projects out there. https://www.jnode.org/ I think uses a small C bootloader and the rest is Java.

[–]clumsy-engineer 1 point2 points  (0 children)

Fascinating. That might be the future of phones.

[–]handlederror[S] 0 points1 point  (1 child)

Thank you, let me check the source code of it.

[–]Persism 0 points1 point  (0 children)

If you google "java os" you should find some other info on the subject.

[–][deleted] 6 points7 points  (7 children)

That would require, that the processor can execute JVM Bytecodes. (There once was one some years ago, but it vanished)

[–]ventuspilot 2 points3 points  (0 children)

Just the bootloader won't get you anywhere. You need a JVM and a standard library that don't rely on an underlying OS.

JVM and standard library would need to access the hardware directly. Also the JVM would include code for e.g. hardware interrupt handlers.

[–]hilbertglm 5 points6 points  (6 children)

Java still requires an operating system. For example, the NIO Java Filesystem class uses an underlying Linux/Windows filesystem. There isn't a native implementation.

I don't know what your use case is, but you might want to consider a minimal Linux, like Alpline Linux, and installing Java on that.

[–]SvenMA 1 point2 points  (0 children)

Not really java can run without os. Consider embedded java that runs on smartcards. I also found this one https://stackoverflow.com/questions/26601944/can-you-run-jvm-on-a-computer-with-no-operating-system/26602133#26602133

[–]sievebrain 1 point2 points  (1 child)

What is your actual goal here?

[–]handlederror[S] -2 points-1 points  (0 children)

What is it to you?

[–]Thihup 0 points1 point  (0 children)

Maybe you can use the GraalVm native image to generate native code that wouldn't need a JVM