java-web-start

Webstart runs with wrong version of JRE

流过昼夜 提交于 2019-11-28 09:59:26
I have a Java webstart application that requires Java 7+, so the JNLP has this line: <j2se version="1.7+" href="http://java.sun.com/products/autodl/j2se"/> This works on various Windows XP & Windows 7 machines (most of them also having Java 6 installed) but on one of them, webstart is launched with Java 6 and fails (wrong version of JRE). I found this post and checked the Java settings and they look fine: I have also tried changing the JNLP line to this but it still does not work: <j2se version="1.7+"/> Any ideas on how to let webstart know that the JRE 1.7 is there? Config: Windows 7, run as

Pass dynamic params via JNLP

旧巷老猫 提交于 2019-11-28 08:38:36
I am using JavaScript in order to execute JNLP which in the end will execute my client. I am trying to pass parameters via JavaScript execution to the JNLP and having those parameters via JNLP inside my client. The JavaScript is executing this URL for instance: http://localhost:8080/MyJnlp.jnlp?login=14hhh765p&pass=ggyyktff Now my JNLP will try to get the parameters in the <application-desc name tag this way: <application-desc name="..." main-class="com.main.execute" > <argument>-nosplash</argument> <argument>-q</argument> <argument><%=request.getParameter("login")%></argument> <argument><%

Found unsigned entry in resource

一世执手 提交于 2019-11-28 08:08:17
i have the following JNLP file: <jnlp spec="1.0+" codebase="http://****:****" href="tcm2012.jnlp"> <information> <title>TCM 2012</title> <vendor>Drift og Performance, *** Servicecenter</vendor> <homepage href="http://******"/> <description/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.6+"/> <jar href="tcm2012.jar"/> </resources> <application-desc main-class="com.****.kundeservice.TCMApplication"/> </jnlp> Now when i try to run in from the web i get the following error: Found unsigned entry in resource With the following exepction com.sun.deploy.net

Cannot launch applet using Java 7u21

╄→尐↘猪︶ㄣ 提交于 2019-11-28 07:39:18
问题 So we installed the Java 7u21 release that is supposed to tighten the security for applets. Unfortunately it tightened it so much that our applet does not run anymore. Not good. The interesting thing is that it only stopped working while we operate it with JWS. If we launch it as a standard applet from a standard web page everything works fine. In JWS mode we get security issues on at least reflection and java.lang.Thread.setDefaultUncaughtExceptionHandler . The certificates look ok. The

Where can i download JNLP.jar

一世执手 提交于 2019-11-28 07:31:00
问题 How can i run the examples in the link ? Where can i get JNLP developer pack? Thanks Samrat 回答1: C:\Program Files\Java\jdk1.6.0_27\sample\jnlp\servlet In other words, in the sample\jnlp\servlet dir of your JDK. 回答2: You can also find the javax.jnlp.* classes in lib/javaws.jar under your JRE installation. 回答3: The classes shown at the link are primarily of the JNLP API. It is automatically on the run-time class-path of apps launched using Java Web Start. As to how to add them to the compile

Passing command line arguments to javaws (Java WebStart) executable

本秂侑毒 提交于 2019-11-28 07:00:42
Summary for those who might not want to read that much: How do I do this: ? If we could pass ad-hoc command-line args to javaws, then javaws apps could be more like "1st class citizen" "ordinary application". E.g. we could pass filenames of files to be opened. I would like to know if there is a way to pass "ad-hoc" command line arguments to the javaws executable. I already know how to specify them in JNLP file: <application-desc main-class="org.example.ClassName"> <argument>... While this can be used for what i want to accomplish, i treat this as a workaround. I tried javaws http://example.org

How do I pipe the Java console output to a file?

为君一笑 提交于 2019-11-28 06:54:34
I found a bug in an application that completely freezes the JVM. The produced stacktrace would provide valuable information for the developers and I would like to retrieve it from the Java console. When the JVM crashes, the console is frozen and I cannot copy the contained text anymore. Is there way to pipe the Java console directly to a file or some other means of accessing the console output of a Java application? Update: I forgot to mention, without changing the code. I am a manual tester. Update 2: This is under Windows XP and it's actually a web start application. Piping the output of

Generate JNLP dynamically

泪湿孤枕 提交于 2019-11-28 06:03:45
I need to pass argument to JNLP dynamically for which I tried using a servlet which extends JnlpDownloadServlet and then includes a jsp which has all the JNLP XML written into it. But when I invoke the downloaded JNLP I get BadFieldException . Servlet public class TestServlet extends JnlpDownloadServlet { public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException { HttpServletRequest request = (HttpServletRequest) req; res.setContentType("application/x-java-jnlp-file"); request.getRequestDispatcher("/jnlp.jsp").include(request, res); } jnlp.jsp Used for

How to record a JNLP/ Java Web Start application with JMeter

半腔热情 提交于 2019-11-28 02:11:22
I need to do a performance test for JNLP accessible application. I used WireShark and see that the jnlp generates only TCP traffic. I read all the post related with jnlp perf testing and I tried with Apache JMeter + UbikLoadPack Java Serialization plugin but jmeter does not capture the traffic. Is it my only option capture the TCP traffic and work with that ? Regards, Jaime If traffic is HTTP(s), as per documentation of UbikLoadPack bundle, You need to follow the instructions of paragraphs: 1/Add JMeter certificate authority to the cacerts file used by Java: See in documentation " Configuring

Where is the jar files cached for Java Web Start/JNLP applications?

会有一股神秘感。 提交于 2019-11-28 01:48:32
Where is the jar files cached for Java Web Start/JNLP applications? Pascal Thivent It depends... on your OS and virtual machine, e.g.: with a Sun JDK 1.5 and Windows XP: C:\Documents and Settings\userid\Application Data\Sun\Java\Deployment\cache\javaws\ with a Sun JDK 1.6 and Vista: C:\Users\userid\AppData\LocalLow\Sun\Java\Deployment\cache\6.0 with a Sun JDK 1.6 and GNU/Linux: /home/userid/.java/deployment/cache/6.0 with a Sun JDK 1.6 and Mac OS X: ~/Library/Caches/Java/cache/6.0/ With a Sun JDK 6, this can be configured through the Java Control Panel (Temporary Internet Files Settings in the