Writing an Alternative Alternative Java Class Library from scratch

I'm just curious, but I want to know if it is possible to completely remove the standard Java class libraries that come with the JVM and start a new one from scratch [à la ClassPath].

If possible, which classes MUST be implemented at least? (The object and the string come to my mind, but ... I do not know).

Does such a thing violate the license? Is there a way to tell the java command not to use rt.jar?

Thanks in advance,

Ernesto

+3
source share
3 answers

You can use the -Xbootclasspath option to specify your own set of core classes.

, , , , , API, , , .

, , java.lang. Object String, -. , java.lang , , .

+5

"" , JVM! JVM (Object, Class, Thread ..) , JVM.

, , , , . "" .

?

. - , "Java", Sun . Java, Sun TCK.

. JVM - , JNode project .

+2

No, that’s not possible at all. I mean, of course, you could do it, but you won’t do it better than a large corporation or an open source project with many years of experience and lots of Java gurus. It might be interesting to fish him out though.

0
source

Source: https://habr.com/ru/post/1719455/


All Articles