Community
Chat Logs
Sunday, May 31, 2026
- rajwhich jdk is most lightweight
- ParaWhy would one care.
- rajLess space
- rajOracle jdk consumes > 300 MB
- ParaAgain, why would one care.
- ParaWhat's your actual usecase/need here?
- rajTo consume less diskspace
- ParaThe USB stick right in front of me has 64GB capacity.
- ParaMy phone has 24.
- dreamrealAre you on a constrained system?
- rajYes
- rajWhy cant i just get a small jdk
- dreamrealI mean, I doubt anyone's measured a whole lot, because it's not usually relevant: what JVM version are you targeting, and on what platform, and are you doing development on this system
- dreamrealwell, the JDK has a definition and it's pretty encompassing, is why
- dreamreala "small JDK" isn't likely to be an actual JDK
- rajI m fine with java 8 or above
- dreamrealnow, if you want a small RUNTIME image, that's very doable
- ParaProfiles were a thing but not really anymore.
- rajNo i want small jdk
- ParaWhat are you trying to put this jdk into?
- dreamrealwell, I've asked what information I'd need, and you've not bothered to answer, so we good. Good luck out there!
- rajLinux platform
- rajJava 8 or above
- rajPreferably less than 50 MB jdk i want
- ParaAnd I want to win the lottery.
- * dreamreal notes the lack of platform, and at less than 50MB, you're not going to get it
- rajI did say linux platform
- dreamrealbut you left off which processor
- dreamrealwhich is kinda important
- dreamrealbut less than 50MB, well, sorry
- ParaAnd what HDD/SSD/mass storage.
- dreamrealjust the way itis
- ParaAnd if this is some portable thing meant to be hanged from a pole in the Arctic or just cheap system under the table.
- dreamrealwhat you want does not exist
- dreamrealeven if you were running it on a raspberry pi, what you want does not exist
- rajOk
- dreamrealTHEORETICALLY something like it could exist, but nobody is going to put in the work to create and validate it, and even then I'm not sure you'd get it to that size
- Para88 megs seems to be the bitnami minimal docker image for jdk, and I'd imagine they've ran the thing through the shredder.
- dreamrealJVM or JDK?
- Parajudge yourself, probably missing all non-essentials https://hub.docker.com/r/bitnami/java-min
- javabotPara's title: "bitnami/java-min - Docker Image"
- dreamrealhmm, the docker-compose isn't available for that one
- ParaI think those superoptimized images are done in a way which doesn't really even produce layers.
- cheeserdmlloyd: https://github.com/MorphiaOrg/morphia/issues/4273
- javabotcheeser's title: "Replace ASM + Gizmo with the Java Class File API (backport) · Issue #4273 · MorphiaOrg/morphia · GitHub"
- nevetReplace ASM + Gizmo with the Java Class File API (backport) · Issue #4273 · MorphiaOrg/morphia
- dmlloydnice
- cheeseri haven't had a chance to test this theory yet but I know javac will fail if you try to use package java.* but can you edit the classfile and change that package to java.whatever postcompilation the way, say, shading rewrites the packages?
- cheeseri.e., can the validator tell you've doctored the classfile to coerce that package name?