java-web-start

SecurityException during executing jnlp file (Missing required Permissions manifest attribute in main jar)

筅森魡賤 提交于 2019-11-28 19:43:52
问题 OS: Windows 7 64 bit Java: jdk1.7.0_51 I have a jnlp file. When I double click on this, exception is occurred as below: Application Error: Unable to launch the application Exception: java.lang.SecurityException: Missing required Permissions manifest attribute in main jar 回答1: JAR File Manifest Attributes for Security The JAR file manifest contains information about the contents of the JAR file, including security and configuration information. Add the attributes to the manifest before the JAR

Signing a jar file with trusted certificate for JWS deployment

╄→гoц情女王★ 提交于 2019-11-28 18:49:30
I've developed an open source program, WPCleaner, which is distributed through Java Web Start. Current version is available at http://site4145.mutu.sivit.org/WikiCleaner/WikiCleaner.jnlp With the recent updates in Java, it becomes more and more difficult to deploy Java applications through Java Web Start when you need the application to have a few permissions (writing in the preferences, accessing other web sites, ...) My application was self-signed, which was ok before but new updates require users to accept the application every time they run it, not just once and for all if they wish. So, I

How to make a machine trust a self-signed Java application

泪湿孤枕 提交于 2019-11-28 18:12:32
I'm deploying an application using JAWS , and it worked until late 2013 when I got a warning, and then this morning Java completely blocked it. The message in French is: Application bloquée par les paramètres de sécurité Vos paramètres de sécurité ont bloqué l'exécution d'une application auto-signée avec une version obsolete ou arrivée à expiration de Java. which would translate roughly as: Application blocked by the security settings Your security settings have blocked from running an application that has been self-signed with an obsolete or outdated Java. The grammar is not that clear, the

AWS S3 Java SDK - Download file help

蹲街弑〆低调 提交于 2019-11-28 17:04:53
问题 The code below only works for downloading text files from a bucket in S3. This does not work for an image. Is there an easier way to manage downloads/types using the AWS SDK? The example included in the documentation does not make it apparent. Thanks! AWSCredentials myCredentials = new BasicAWSCredentials( String.valueOf(Constants.act), String.valueOf(Constants.sk)); AmazonS3Client s3Client = new AmazonS3Client(myCredentials); S3Object object = s3Client.getObject(new GetObjectRequest("bucket"

How to change the alias of a key within a keystore?

我怕爱的太早我们不能终老 提交于 2019-11-28 16:29:30
I signed my JWS application MemorizEasy with a key whose alias is: memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I don't remember why I chose such a long alias. I suspect it was memo only, but in my project settings I have: jnlp.signjar.alias=memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I'm now updating the application and using maven I need to specify the alias as: <keystorealias>memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar </keystorealias> Yet that doesn't work. Trying another key with

How do you clear the Java Console? [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-11-28 13:58:58
This question already has an answer here: Java: Clear the console 11 answers I have output messages displayed on the Java console for an application that started using webstart. Instead of the user manually clearing message, is there a way of clearing console messages in code? These messages are printed at the rate of about 1000 per second and seem to end up using too much memory, i could have stopped the printing to console, but the requirement is to always have it. You will not be able to clear that console, unless you find some handle on the classes for that console (which I doubt you would

jws application can't load swing-layout

橙三吉。 提交于 2019-11-28 12:52:28
问题 I have an old application that use swing-layout and i have to make it usable via java webstart . It runs fine from netbeans but if I launch it using jws I got this error : exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group at Gui.Accueil.jMenuItemConsPHActionPerformed(Accueil.java:2331) ..... Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Group at java.net.URLClassLoader$1.run(Unknown Source) at java.net

does JWS support to launch One-Jar

血红的双手。 提交于 2019-11-28 11:38:03
问题 Can I supposed to launch One-Jar using JWS? One-JAR provides custom classloader that knows how to load classes and resources from a jars inside an archive whereas in JWS we need to specify each JAR that is being used in resources. What I supposed to specify in JNLP if I am trying to launch One-Jar - <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="" href=""> <information> <title>Application</title> <vendor>ABC</vendor> </information> <resources> <!-- Application Resources --

Java 8u40 on OS X Yosemite

妖精的绣舞 提交于 2019-11-28 11:37:16
Since the update of Java 8u40 our OSX users have not been able to type anything into the application and the application also does not even gain focus. I have tried other Web Start examples and I have the same issue, so it isn’t just us. I went to http://docs.oracle.com/javase/tutorial/deployment/webstart/examplesIndex.html and launched both Web Start demo’s on that page. I can double-click in the fields and it appears it wants to rename or edit text but the caret doesn’t show up and typing doesn’t work. Also, Finder (or whatever app I had touched last) is still on the Mac title/tool bar. Is

redirecting a java web start app logs to a file

会有一股神秘感。 提交于 2019-11-28 10:38:58
问题 We have an application that we access over Java web start internally at our office. all the logs produced by the app are displayed in Firefox's console. what I want to do is to redirect that to a file. is that possible ? and how to do that ? P.S : the application is designed as follow : a client app that accesses an EJB on a server. the client part is the one made available through java webstart. 回答1: I figured using the System.setOut method could be used to redirect all System.out.println()