java-web-start

How do I deploy my java application onto a website?

三世轮回 提交于 2020-02-07 09:28:22
问题 I just complied all my java programs, which consists of 4 classes and everything's working fine. I have the GUI, client, server, and the action listeners and an image all in the same folder. I just don't know how to put my local java application that I debugged and tested in JGrasp software onto my webpage. I looked around and I read you need to make a jar file and compress all of them, but I don't know how to do that, neither creating an applet. I tried the most simple way of doing it by

OpenWebStart + IcedTea-Web: j2se element

懵懂的女人 提交于 2020-02-06 04:31:30
问题 With OpenWebStart (Java SE 11), what URL should we use in the j2se element? <j2se href="http://java.sun.com/products/autodl/j2se" version="11+"/> This link seems to be dead. The "autodl" in the path seems to indicate that there should be some kind of auto download. Which URL(s) does OpenWebStart support? 来源: https://stackoverflow.com/questions/59802563/openwebstart-icedtea-web-j2se-element

Use Java web start to start application on the command line by the file name

霸气de小男生 提交于 2020-02-05 08:58:27
问题 I can use Java web start to start my Swing GUI application on the command line by the url with jdk 6 & Windows XP: javaws http://localhost:7001/webstart/myapp/launch.jnlp How to use Java web start to start my Swing GUI application on the command line by the file name? The following ways do not work: javaws -codebase '' launch.jnlp java.net.MalformedURLException: no protocol: '' at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at com.sun.javaws

Use Java web start to start application on the command line by the file name

走远了吗. 提交于 2020-02-05 08:57:08
问题 I can use Java web start to start my Swing GUI application on the command line by the url with jdk 6 & Windows XP: javaws http://localhost:7001/webstart/myapp/launch.jnlp How to use Java web start to start my Swing GUI application on the command line by the file name? The following ways do not work: javaws -codebase '' launch.jnlp java.net.MalformedURLException: no protocol: '' at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at com.sun.javaws

How to prevent piracy for java webstart application

末鹿安然 提交于 2020-02-03 05:29:27
问题 I have this java swing application that I intend to sell over the internet. At the moment I'm leaning towards deploying the application using java webstart. The product will be licensed for the user to use the program on one computer at a time only. I am concerned about piracy with this model. I would like to install some security features to enforce the license model. The goal is to at least make it difficult for a licensed user to copy the installed product including license key to

OpenWebStart + IcedTea-Web: JNLP DOCTYPE or XSD

不羁的心 提交于 2020-01-25 06:49:12
问题 What is the current JNLP specification (version) for OpenWebStart (Java SE 11)? There is an inofficial JNLP version list here, but only up to Java SE 8. Should still the DTD from Oracle/ Sun be used? <!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd"> Or is there a newer version? Or even an official XSD? 来源: https://stackoverflow.com/questions/59802510/openwebstart-icedtea-web-jnlp-doctype-or-xsd

Browser downloads jnlp on Java Web Start. How to prevent it?

大憨熊 提交于 2020-01-24 12:03:23
问题 When I click on a link to "web start" my java application, browser downloads jnlp file which I should execute afterwards. Is there any way to force browser to execute jnlp right after the download completes, or event better, to make the whole process transparent, so user just confirms that he wants to launch the application? Thanks. 回答1: All you can do is provide the correct MIME type which in a standard setup makes the browser automatically open the file with Java WebStart. Apart from that

Java Web Start and Security

点点圈 提交于 2020-01-23 01:04:25
问题 It was just pointed out to me that the Java Web Start applications from my blog, for example my Key Bindings entry, no longer function because of the follow security error: Upon doing some investigation I have determined that security has been improved in JDK7 and that the default setting found on the Security Tab of the Java Control Panel found on the Windows Control Panel is set to High which prevents the app from running. If you do change this setting to Medium , then you have the choice

Java Web Start and Security

自古美人都是妖i 提交于 2020-01-23 01:03:29
问题 It was just pointed out to me that the Java Web Start applications from my blog, for example my Key Bindings entry, no longer function because of the follow security error: Upon doing some investigation I have determined that security has been improved in JDK7 and that the default setting found on the Security Tab of the Java Control Panel found on the Windows Control Panel is set to High which prevents the app from running. If you do change this setting to Medium , then you have the choice

Extract some content from jar-file downloaded with JWS

走远了吗. 提交于 2020-01-21 20:12:09
问题 im trying to extract some files from a jar-file downloaded using java-webstart. below code was used to locate the jar and initiate the FileSystem 1 final ProtectionDomain domain = this.getClass().getProtectionDomain(); 2 final CodeSource source = domain.getCodeSource(); 3 final URL url = source.getLocation(); 4 final URI uri = url.toURI(); 5 Path jarPath = Paths.get(uri); 6 7 FileSystem fs = FileSystems.newFileSystem(jarPath, null); This works fine when the jar-file is on a local disc, but