From e8128140e8990f6d8a671148adf003daaf97eb02 Mon Sep 17 00:00:00 2001 From: benfry Date: Tue, 21 Oct 2008 00:48:09 +0000 Subject: [PATCH] re-handling qt error message along with the others --- app/src/processing/app/debug/Runner.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/src/processing/app/debug/Runner.java b/app/src/processing/app/debug/Runner.java index 363f7313d..2faf4b92f 100644 --- a/app/src/processing/app/debug/Runner.java +++ b/app/src/processing/app/debug/Runner.java @@ -618,6 +618,9 @@ public class Runner implements MessageConsumer { } else if (exceptionName.equals("java.lang.NoSuchMethodError") || exceptionName.equals("java.lang.NoSuchFieldError")) { listener.statusError(exceptionName.substring(10) + ": You're probably using a library that's incompatible with this version of Processing."); + } else if (message.equals("ClassNotFoundException: quicktime.std.StdQTException")) { + listener.statusError("Could not find QuickTime, please reinstall QuickTime 7 or later."); + } else { reportException(message, event.thread()); } @@ -625,8 +628,6 @@ public class Runner implements MessageConsumer { } - boolean badQuickTimeWarning; - // This may be called more than one time per error in the VM, // presumably because exceptions might be wrapped inside others, // and this will fire for both. @@ -635,15 +636,6 @@ public class Runner implements MessageConsumer { int codeIndex = -1; int lineNumber = -1; - String badQuickTime = - "ClassNotFoundException: quicktime.std.StdQTException"; - if (message.equals(badQuickTime) && !badQuickTimeWarning) { - Base.showWarning("QuickTime not installed", - "Could not find a QuickTime installation.\n" + - "Please reinstall QuickTime 7 or later.", null); - badQuickTimeWarning = true; - } - // System.out.println("reporting ex"); List frames = thread.frames(); for (StackFrame frame : frames) {