A Java Drive-By is a Java Applet that is coded in Java, when placed on a website.
Once you click "Run" on the pop-up, it will download a program off the internet.
This program can be used to spread a virus and malware effectively and has been spotted in the wild. We can execute .exe files in victims’ computer without their permission with the help of java drive by.
You can see the image of error below this: