I have a java program where I get the Graphics2D
from a BufferedImage
via createGraphics()
and printed it out and got: sun.java2d.SunGraphics2D[font=java.awt........... you get the idea
but when I go to my jdk folder there is no folder in sun
called java2d
where do I find it?
Edit
Ok, I found rt.jar
(thank you @EmilyMabrey and @f1sh), and tried to extract it (on Windows 10) with the command jar xf rt.jar
but the saw this:
java.io.IOException: META-INF : could not create directory
at sun.tools.jar.Main.extractFile(Main.java:1050)
at sun.tools.jar.Main.extract(Main.java:981)
at sun.tools.jar.Main.run(Main.java:311)
at sun.tools.jar.Main.main(Main.java:1288)