diff options
Diffstat (limited to 'scripting/workben')
-rw-r--r-- | scripting/workben/installer/IdeVersion.java | 4 | ||||
-rw-r--r-- | scripting/workben/installer/InstUtil.java | 34 |
2 files changed, 8 insertions, 30 deletions
diff --git a/scripting/workben/installer/IdeVersion.java b/scripting/workben/installer/IdeVersion.java index 20aa5501ebc7..1b9cf5142f33 100644 --- a/scripting/workben/installer/IdeVersion.java +++ b/scripting/workben/installer/IdeVersion.java @@ -20,7 +20,6 @@ package installer; import java.awt.*; import java.awt.event.*; -import java.io.*; import java.util.*; import javax.swing.*; @@ -69,9 +68,6 @@ public class IdeVersion extends javax.swing.JPanel implements ActionListener, Ta } } props = ideProps; - } - catch (IOException eIO) { - System.err.println("Failed to parse .netbeans/ide.log"); } catch (Exception e) { System.err.println("Exception thrown in initComponents"); diff --git a/scripting/workben/installer/InstUtil.java b/scripting/workben/installer/InstUtil.java index b6d0f64f4338..154104175100 100644 --- a/scripting/workben/installer/InstUtil.java +++ b/scripting/workben/installer/InstUtil.java @@ -65,19 +65,10 @@ public class InstUtil { public static boolean hasNetbeansInstallation() { boolean result = false; - try - { - result = checkForSupportedVersion( getNetbeansLocation(), versions ); + result = checkForSupportedVersion( getNetbeansLocation(), versions ); - if (result == false) - System.out.println("No supported version of NetBeans found."); - } - catch ( IOException ioe ) - { - System.err.println("Exception caught trying to determine netbeans installation: " + ioe ); - ioe.printStackTrace(); - result = false; - } + if (result == false) + System.out.println("No supported version of NetBeans found."); return result; } @@ -102,26 +93,17 @@ public class InstUtil { public static boolean hasJeditInstallation() { boolean result = false; - try - { - result = checkForSupportedVersion( getJeditLocation(), versions ); - if ( !result ) - { - System.out.println("No supported version for JEdit found."); - } - } - catch ( IOException ioe ) + result = checkForSupportedVersion( getJeditLocation(), versions ); + if ( !result ) { - System.err.println("Exception caught trying to determine jedit installation: " + ioe ); - ioe.printStackTrace(); - result = false; + System.out.println("No supported version for JEdit found."); } return result; } - public static Properties getNetbeansLocation() throws IOException { + public static Properties getNetbeansLocation() { Properties results = new Properties(); StringBuffer str = new StringBuffer(); @@ -168,7 +150,7 @@ public class InstUtil { - public static Properties getJeditLocation() throws IOException { + public static Properties getJeditLocation() { Properties results = new Properties(); |