From: Toni Spets Date: Tue, 20 Jan 2015 19:30:34 +0000 (+0200) Subject: Allow java viewer to load without manifest properly X-Git-Tag: v1.5.90~61^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0da7b708bc4321da6dc3311d75803ce939241b04;p=tigervnc.git Allow java viewer to load without manifest properly --- diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java index 93420512..ec52f6e9 100644 --- a/java/com/tigervnc/vncviewer/CConn.java +++ b/java/com/tigervnc/vncviewer/CConn.java @@ -781,7 +781,7 @@ public class CConn extends CConnection implements Attributes attributes = manifest.getMainAttributes(); pkgDate = attributes.getValue("Package-Date"); pkgTime = attributes.getValue("Package-Time"); - } catch (IOException e) { } + } catch (java.lang.Exception e) { } Window fullScreenWindow = Viewport.getFullScreenWindow(); if (fullScreenWindow != null) diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 1e0f2230..cc21c2e1 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -365,7 +365,7 @@ public class VncViewer extends javax.swing.JApplet build = attributes.getValue("Build"); buildDate = attributes.getValue("Package-Date"); buildTime = attributes.getValue("Package-Time"); - } catch (java.io.IOException e) { } + } catch (java.lang.Exception e) { } } }