mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
switching to context classloader
This commit is contained in:
@@ -6340,7 +6340,8 @@ public class PApplet extends Applet
|
||||
frame.setIconImage(image);
|
||||
frame.setTitle(name);
|
||||
|
||||
Class c = Class.forName(name);
|
||||
// Class c = Class.forName(name);
|
||||
Class c = Thread.currentThread().getContextClassLoader().loadClass(name);
|
||||
PApplet applet = (PApplet) c.newInstance();
|
||||
|
||||
// these are needed before init/start
|
||||
|
||||
Reference in New Issue
Block a user