summaryrefslogtreecommitdiff
path: root/BKUWebStart
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2018-09-07 11:33:01 +0200
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2018-09-07 11:33:01 +0200
commite8cdb9ab617d368cc21ad0455240343302e9361f (patch)
tree85fb1747238074fcfb878a7c15ce5be423d3a896 /BKUWebStart
parent027f04243ff0c21882d739aee26c794b5758dbe4 (diff)
downloadmocca-e8cdb9ab617d368cc21ad0455240343302e9361f.tar.gz
mocca-e8cdb9ab617d368cc21ad0455240343302e9361f.tar.bz2
mocca-e8cdb9ab617d368cc21ad0455240343302e9361f.zip
Launcher removed JNLP
Diffstat (limited to 'BKUWebStart')
-rw-r--r--BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java21
1 files changed, 6 insertions, 15 deletions
diff --git a/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java b/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java
index a942909c..ee951a4b 100644
--- a/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java
+++ b/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java
@@ -26,7 +26,7 @@ package at.gv.egiz.bku.webstart;
import at.gv.egiz.bku.webstart.autostart.Autostart;
import at.gv.egiz.bku.webstart.gui.StatusNotifier;
-import at.gv.egiz.upater.MoccaUpdater;
+import at.gv.egiz.updater.MoccaUpdater;
import at.gv.egiz.bku.webstart.gui.BKUControllerInterface;
import at.gv.egiz.bku.webstart.gui.MOCCAIcon;
import iaik.asn1.CodingException;
@@ -51,8 +51,8 @@ import java.security.GeneralSecurityException;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
-import javax.jnlp.BasicService;
-import javax.jnlp.ServiceManager;
+//import javax.jnlp.BasicService;
+//import javax.jnlp.ServiceManager;
import org.mortbay.util.MultiException;
import org.slf4j.Logger;
@@ -135,7 +135,7 @@ public class Launcher implements BKUControllerInterface {
}
private Configurator config;
private Container server;
- private BasicService basicService;
+// private BasicService basicService;
private StatusNotifier status;
private Autostart autostart;
@@ -231,19 +231,10 @@ public class Launcher implements BKUControllerInterface {
}
private void initStart() {
- try {
status.info(StatusNotifier.MESSAGE_START);
- basicService = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
- codeBase = basicService.getCodeBase();
autostart.setWebstartName(codeBase + WEBSTART_FILENAME);
- if (basicService.isOffline()) {
- log.info("launching MOCCA Web Start offline");
- } else {
- log.info("launching MOCCA Web Start online");
- }
- } catch (UnavailableServiceException ex) {
- log.info("Failed to obtain JNLP service: " + ex.getMessage());
- }
+ log.info("launching MOCCA Web Start offline");
+
}
private void initConfig() throws IOException, CodingException, GeneralSecurityException {