DumboOctopus / Antistipulator

To test karel programs in one app
0 stars 0 forks source link

Executing Karels on Older Computers #11

Open DumboOctopus opened 7 years ago

DumboOctopus commented 7 years ago

In the normal school computers (which use jdk 1.7 and jre [FIND THIS NUMBER]) the run button can create the main driver perfectly and everything works. However, on the really old school computers (such as the back row in the Library), the run button just fails all together. I have attempted to get output information via KTerminalUtils and nothing would print. It seems that none of the code inside the KarelTestFrame is running. Also, its just this feature that does not work. Thus it cannot be a problem with SwingWorker or KTerminalUtils.

DumboOctopus commented 7 years ago

It appears the URL cannot be created on the older computers for some reason. For example, when I used the tool for probing process, it could not find the URL of AntiStipulator.jar. A potential solutin could be to use SecureClassLoader rather than URLCLassloader since SecureClassLoader does not utilize URLs (i think).

DumboOctopus commented 7 years ago

or maybe: ClassLoader currentThreadClassLoader=Thread.currentThread().getContextClassLoader();