java-web-start

javaws system property to relax or remove security?

可紊 提交于 2019-12-10 14:29:54
问题 Having upgraded to Java 7 (Oracle/Sun JDK, not OpenJDK), if I try to test my app under Web Start with javaws , it tells me "Application Blocked by Security Settings". I can use the Java control panel to reduce security from high to medium to get it to work (it asks me if I want to launch an unsigned app), but that also reduces the security level for my web browser. Is there any system property that'll let me do javaws -J-Dkey=value to get that one instance of javaws to relax or ignore

Java webstart says my app uses a self signed certificate, but I used a COMODO code signing certificate

若如初见. 提交于 2019-12-10 13:32:10
问题 I bought a COMODO code signing certificate and used it to sign my java webstart application. Main question: Is that COMODO code signing certificate even supported by java 8? More info: On all machines except my own, java blocks the application, saying it uses a self signed certificate. I don't even understand why it works on my machine. I looked at the list of trusted certification roots in the java control panel (1.8.0_45-b15), but I cannot find the "COMODO RSA Certification Authority" there

How to set preferIPv4Stack property for JNLP app?

拥有回忆 提交于 2019-12-10 11:23:46
问题 I need to set java.net.preferIPv4Stack=true to an app started via JNLP (javaws and applet) Tried those, without luck... <j2se ...java-vm-args="-Djava.net.preferIPv4Stack=true" /> <property name="java.net.preferIPv4Stack" value="true"/> System.setProperty("java.net.preferIPv4Stack", "true"); The only way i could make it work was seeting when launching javaws from local filesystem: javaws -J-Djava.net.preferIPv4Stack=true myapp.jnlp What is not possible on a applet or URL. How should i set this

Java Web Start causing slow execution

旧街凉风 提交于 2019-12-10 10:23:11
问题 I have an application that I'm deploying with Java Web Start. When I was doing unit testing, I noticed a slight problem: whenever my application is run with Java Web Start, a particular operation takes a long time to execute. When run locally, however, it is quite fast. The particular operation I'm talking about is reading in a large (5k row) Excel file to parse it. This is the line of code: Workbook wb = WorkbookFactory.create(new FileInputStream(new File(inputFile.getText()))); To figure

Java Web Start Applet opening new Browser Window/Tab ignoring target

穿精又带淫゛_ 提交于 2019-12-10 10:18:30
问题 Having successfully migrated an applet to a java webstart applet, I notice that every call to getAppletContext().showDocument( new URL("http://"+ host+ "/" + filename + language + ".htm"), "Helppage"); opens a new browser window (Win 7/MSIE11) or tab (firefox depending on configuration) though I obviously request a specific named possibly already open browser window. Has anyone successfully managed to redirect those calls to one browser window (tab)? If yes, how? Looks a similar context to

Deploying an SWT application on Java Webstart

北慕城南 提交于 2019-12-09 23:45:46
问题 Is it possible to deploy SWT applications using JNLP. Especially loading the swt native library (dll in Windows, so in Linux)? Any links? I found one at IBM Developer Works, however it just describes using swt.jar. In addition to that, is it possible to load the native dll files over JNLP? 回答1: The IBM developer works article you linked to contains everything you need to know including how to load the native dll files. Notice the nativelib element in the resources. The jar file referred to

Java 7 update 55 JacORB error when running via WebStart

时间秒杀一切 提交于 2019-12-09 13:05:19
问题 Since updating to Java 7 update 55, I'm not able to run my WebStart java application. This application worked fine under Java 7 update 51 when launched via WebStart. It also works with update 55 when launched outside of WebStart. Any suggestions for further investigation points? org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation org.jacorb.orb.ORBSingleton vmcid: 0x0 minor code: 0 completed: No at org.omg.CORBA.ORB.create_impl_with_systemclassloader(Unknown Source) at org

Unable to debug JNLP with Java 8

…衆ロ難τιáo~ 提交于 2019-12-08 19:04:21
问题 I have tried all ways running application as 1) javaws -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9123 My.jnlp 2) setting the same option in JAVA_TOOL_OPTIONS 3) setting the same option in JAVAWS_VM_ARGS 4) setting the same option (without -J) in Java control panel Tried the same options with or without Xnoagent Each and every way, after doing it when I try to connect from eclipse - it cannot connect. When I do netstat -a - it doesn't show anyone listening on 9123. I

Write to a local file through JNLP

时光毁灭记忆、已成空白 提交于 2019-12-08 05:41:57
问题 I have a specific requirement to read a resource from jar file and then write it to local disk. But when I try to write that resource to local disk an exception: java.io.FilePermission (write) is raised. I have my jar signed. I have also tried the following solution but it does not work either. AccessController.doPrivileged(new PrivilegedAction() Nothing seems to work. Am I missing a step after signing jar because this is the most common solution available everywhere? How can I write to a

Jersey web services

时间秒杀一切 提交于 2019-12-08 05:25:14
问题 I am trying to set up a simple Java web application using jersey for web services. However I have de following problem. The tomcat server can’t find the resource http://localhost:8081/OnlineShop/rest/books/list but it can find my simple servlet http://localhost:8081/OnlineShop/index I have the following web.xml In the other hand I noticed that com.sun.jersey.spi.container.servlet.ServletContainer is present in my project because I added the dependency using maven however jersey.config.server