java-web-start

Can a java web start application exist without .jnlp file? [closed]

。_饼干妹妹 提交于 2019-12-02 11:38:49
As explained in Java Web Start it seems to have necessary to have a .jnlp file for a Java Web Start application. My application does not have a single .jnlp file . My application does not have main() as it has run() in almost every class. Could anyone please explain without main & JNLP file how a Web Start works? Could anyone please explain without main() & .jnlp file how a web start works? It doesn't work without a .jnlp file. You have to provide a .jnlp file, and you also have to provide a main() method or an Applet class that it can start up. 来源: https://stackoverflow.com/questions/13207945

No show anymore message of publisher Java Web Start

随声附和 提交于 2019-12-02 10:15:47
I have developed an application via Java Web Start more or less according to this: How do I fix "missing Codebase, Permissions, and Application-Name manifest attribute" in my JNLP app? I have packed the jar with manifest.txt, etc..but in this way I have resolved missing attributes problem, and now I have other problem this message is always showed!! I checked "No show again" and each time I press button to execute and always is showed!! I Adicionally this is my manifest file: Manifest-Version: 1.0 Class-Path: . Main-Class: com.zkteco.biometric.AccesoBiometrioAS2 Permissions: all-permissions

File associations in Java using jnlp.jar, without full JWS?

我的梦境 提交于 2019-12-02 09:54:39
The Java Web Start technology has an IntegrationService API for creating file associations. My question is whether it is possible to somehow use this API (possibly by including jnlp.jar in my app) to create file associations, but without the full Java Web Start technology (no website for the initial installation, the program is distributed with a traditional installer or as a simple executable jar file). The app in question is a desktop/swing app. (This question arose in the comments of the question How to associate a file with a program in java ) trashgod No web site is required to use a jnlp

Can java web start run on a device without JRE?

为君一笑 提交于 2019-12-02 07:52:23
I have been learning about Java web start and got interested in its features. But can my Java app downloaded and run from browser run on a device without a JRE(Java environment) installed? I have tried download a sample jar from browser with Java web start but my app can't run. Second question: Is there a feature in Java web start to check for an installed JRE and automatically setup the environment? a JRE is required on the client to run your java Web Start application as it is downloaded and executed localy and all Java applications need an installed JRE. Java Web Start provides the option

Extract some content from jar-file downloaded with JWS

余生长醉 提交于 2019-12-02 07:52:19
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 fails at line 5 in the JWS scenario, because the logs says: url=http://localhost:8080/myjarfile.jar java

Getting resources from jar in a java webstart application

风格不统一 提交于 2019-12-02 04:51:02
问题 I am trying to load a number of resources in a Java webstart application. I had originally tried to load these using: ClassLoader loader = MyClass.class.getClassLoader(); URL url = loader.getResource("resourceName"); File file = new File(url.toURI()); But this didn't work - it threw an IllegalArgumentException. Further research suggested that this approach doesn't work with accessing resources from jar files, and that I need to use the following approach: ClassLoader loader = MyClass.class

disable bytecode verification in java web start application

一世执手 提交于 2019-12-02 03:46:22
I have a java web start application and i need to disable bytecode verification from within the jnlp file. This can be done easily by setting JAVAWS_VM_ARGS=" -noverify " or by setting -Xverify:none but the documentation here says that web start does not support adding these arguments in jnlp file . I tried this : <j2se version="1.6+" java-vm-args="-noverify -showversion -verbose" > under resources tag but it skips -noverify and takes the other two. Any help is appreciated. ... but the documentation here says that web start does not support adding these arguments in jnlp file. And rightly so,

Java Webstart attempt to sandboxed jar as “Trusted-Library”

♀尐吖头ヾ 提交于 2019-12-02 02:15:22
I'm trying to load a signed jar with an unsigned library through Webstart. However I get a "attempt to open sandboxed jar as Trusted-Library" error. I removed the all permissions setting from my jnlp file, if let it there (which I prefer not to), I get a classnotdefined exception for my library. I'm using Netbeans to sign my jar with Trusted Library setting. Would it work if I signed the library (which is not mine, but GPL'ed)? All is working locally, btw, just not from Webstart. Thanks, Kaj The manifest file: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.2 Trusted-Library: true X-COMMENT:

Getting resources from jar in a java webstart application

懵懂的女人 提交于 2019-12-02 00:31:11
I am trying to load a number of resources in a Java webstart application. I had originally tried to load these using: ClassLoader loader = MyClass.class.getClassLoader(); URL url = loader.getResource("resourceName"); File file = new File(url.toURI()); But this didn't work - it threw an IllegalArgumentException. Further research suggested that this approach doesn't work with accessing resources from jar files, and that I need to use the following approach: ClassLoader loader = MyClass.class.getClassLoader(); InputStream in = loader.getResourceAsStream("resourceName"); However, I get odd results

How to publish a Java Web Start jnlp application without security warnings?

為{幸葍}努か 提交于 2019-12-01 11:06:42
I have a Java application that is launched from a jnlp file off of a website. I'm trying to get it to run without flashing up a bunch of security warnings before it runs. The program is broken up into about 10 different jar files, 30 or so jar libraries, and a couple native libraries also contained in jar files. I've signed all of the jar files with an official code signing cert (from Verisign), included the jnlp file inside of the jar file that holds the main class, and added permissions and codebase attributes to the main 10 jars that I'm compiling. When I launch the program I get the