bugs.java.com
JDK-8242283 - Java Issue Tracker
... JavaSoft\Java Runtime Environment' Error: could not find java.dll Error ... (For example, "C:\Program Files\java\jdk-11.0.6" does not exceed MAX_PATH) ...
... JavaSoft\Java Runtime Environment' Error: could not find java.dll Error ... (For example, "C:\Program Files\java\jdk-11.0.6" does not exceed MAX_PATH) ...
This is cut down from a larger piece of software which uses the Java Activation Framework (hence the use of InputStreams). I have attached the code, and two trivial HTML documents. Untitled.html was created with Netscape Communicator 4.5.
The sample program shows 8 versions of the image. Top 3 are nearest neighbor, bilinear, and bicubic. The bottom 5 are getScaledInstance()s of the image. I tried this program out using the "bottle.gif" and "cow.gif" from SwingSet2.jar in the demos.