jnlp

Java 7 update 45 broke my Web Start SWT application

半腔热情 提交于 2019-12-03 04:56:07
I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup. I've added to the manifest: Permissions: all-permissions Codebase: * Trusted-Library: true This removed all of the warning messages from the Control Panel. But I still have a classloader issue when trying to load my IApplication implemenentation, probably the first of my classes to load. This is new to update 45. I have experienced the same issue and managed to solve it by doing following: In all manifest files (for each JAR in your RCP project) add

How to handle java web start (jnlp) downloading progress in a preloader?

怎甘沉沦 提交于 2019-12-03 01:12:11
Issue I have a preloader for my application that handles the Application-specific initialization. Now I'm trying to extend this so that the preloader also shows the progress of the downloaded application JARs. TL;DR Why is the preloader not getting loaded during Phase 2 , as this should handle the PreloaderFx::handleProgressNotification(); to track the downloading of the JARs I suppose? Update 14 March 2016 : Is using DownloadServiceListener the way to solve this? How to connect this to a JavaFX stage? Documentation According to Oracle , there are 4 phases when an application gets launched:

PropertyPermission access denied in JWS launch

纵饮孤独 提交于 2019-12-02 13:03:13
问题 I new to web-start and We are using exe4j to create executable from One-jar. In-order to make a "web start version" of our application I am trying to lunch One-JAR using web start with the specified Main-Class but I am getting the following error - java.security.AccessControlException: access denied (java.util.PropertyPermission one-jar.main-class read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at

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,

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

New <updateManifestEntries> entries of webstart-maven-plugin breaks the application

别等时光非礼了梦想. 提交于 2019-12-01 16:27:14
As my JDK version upgraded to u45 now I get warnings about missing security information. So I used following security updates as part of webstart signing using webstart-maven-plugin <plugin> <groupId> org.codehaus.mojo</groupId> <artifactId>webstart-maven-plugin</artifactId> <version>1.0-beta-4</version> <executions> <execution> <phase>package</phase> <goals> <goal>jnlp-inline</goal> <!-- use jnlp, jnlp-inline or jnlp-single as appropriate --> </goals> </execution> </executions> <configuration> <!--outputDirectory></outputDirectory --> <!-- not required?? --> <!-- Set to true to exclude all

New <updateManifestEntries> entries of webstart-maven-plugin breaks the application

泪湿孤枕 提交于 2019-12-01 15:06:20
问题 As my JDK version upgraded to u45 now I get warnings about missing security information. So I used following security updates as part of webstart signing using webstart-maven-plugin <plugin> <groupId> org.codehaus.mojo</groupId> <artifactId>webstart-maven-plugin</artifactId> <version>1.0-beta-4</version> <executions> <execution> <phase>package</phase> <goals> <goal>jnlp-inline</goal> <!-- use jnlp, jnlp-inline or jnlp-single as appropriate --> </goals> </execution> </executions>

Java - how to get IP address automaticallly in JNLP file?

不羁的心 提交于 2019-12-01 12:37:46
In the JNLP file how do I get the IP address automatically? Example: <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="GET ip address here automatically" href="Test.jnlp"> instead of manually setting the address to: codebase="http://10.10.10.1/" It can't do that. You can add a DNS entry for 10.10.10.1 , and put the hostname in that field instead of the IP address, but it's just XML - there's no way to call a method from that line to run code and figure out what IP address it should connect to. The JNLP file is a static resource. To do something like that you would need to use

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