java-web-start

Dialog isn't responsive while SwingWorker works in the background

别等时光非礼了梦想. 提交于 2019-12-12 20:20:17
问题 Basically I got a JFrame with a main method as entry point. In this main method the program has to download some images. To inform the user that the program is going to start any minute I want to display a simple dialog. If I set the dialog to modal. I got to close it after starting the program to trigger the download. If I set it to non-modal it displays the dialog for the time of the download, but it's not repsonsive. The dialog doesn't even paint my JLabel saying "Please wait..." anymore.

Webstarts downloads classes directly from server in 1.8.0u9x?

試著忘記壹切 提交于 2019-12-12 20:17:12
问题 I've just updated my java version to 1.8.0u92 and now my little java webstart application (fully signed from https) starts up really slowly (over 4 minutes). I enabled tracing in my webstart and see that webstart tries to download every single class file from my server: security: Istrusted: http://example.com/deploy/w/w.jnlp true cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@111b04e: 3 cache: registerReference: com.sun.deploy.cache.MemoryCache

How to pass JVM arguments to Java Web Start from HTML

与世无争的帅哥 提交于 2019-12-12 14:54:41
问题 Using the Deployment Toolkit, is it possible to launch a Java Web Start application through the function deployJava.launchWebStartApplication . I would like to pass one additional dynamic information to the application, either as argument or as system property. I saw that is is possible to define JVM argument for applets: using the parameter java-vm-args I could define system properties with -D . But i didn't find anything for javaws applications. Of course, a solution can be implemented by

How to distribute my Java program so that it is runnable by double-clicking a single file?

心已入冬 提交于 2019-12-12 10:33:31
问题 I have a Java rich client desktop app. that I want to distribute on some computers at work, but I've never done something like this before. People aren't too computer-savy at my workplace and since it is a student job, I won't be there for much longer and I'd like it if I could make my program easy to run by making it runnable when people double-click on it. I also don't want to have to manually install a JRE to have it run. Basically, what I'd like to know is how to make my java application

Codebase attribute in manifest mismatch when testing local

我的未来我决定 提交于 2019-12-12 09:59:25
问题 As per Java 1.7u25 you should add the Codebase attribute to your manifest and I have done that. But now I can't test it locally as the the attribute value does not match my local JNLP, generated by Netbeans, wich have no codebase value. What value should the manifest have for its Codebase and/or what do I have as codebase in my jnlp for it to work locally? 回答1: There's a few ways to approach this: Use multiple codebase attributes: You can supply multiple values to the Codebase attributes,

Java Webstart and URLConnection caching API

半城伤御伤魂 提交于 2019-12-12 07:40:07
问题 The description of the URLConnection caching API states as the last sentence: There is no default implementation of URLConnection caching in the Java 2 Standard Edition. However, Java Plugin and Java WebStart do provide one out of the box. Where can I find more information about the Webstart ResponseCache? Which Versions of Webstart on which platforms activate Caching? In which cases is it active? Only HTTP Get? Can it be configured? Is the sourcecode available? Background: Case 1 With

jnlp file is prompting mac to download JRE, but its already installed (Java 1.6.0_37) Mac OSX 10.7.5

天涯浪子 提交于 2019-12-12 03:34:26
问题 I don't even really know what to post in here except for the fact that the terminal on the computer says: java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) but for some reason when i run the JNLP file a prompt pops up saying that to open this web start application I need to download the Java Runtime Environment. Which I already did. It originally installed Java 7, and after doing some

Java web start doesn't work after java version 7u45 (NPE)

早过忘川 提交于 2019-12-12 02:46:16
问题 Our java application is launchend via java web start (with glassfish 4.0). After updating to java 7u45, it doesn't work anymore. Here is the error message: java.lang.NullPointerException at java.io.StringReader.<init>(Unknown Source) at org.glassfish.appclient.client.JWSAppClientContainerMain.insertMaskingLoader(JWSAppClientContainerMain.java:186) at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:132) at sun.reflect.NativeMethodAccessorImpl

Java JTextField entry broken on 1.8.0_40 OS X Yosemite 10.10.2

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:54:53
问题 After upgrading to java 1.8.0_40 from java 1.8.0_31 JTextFields are no longer accepting any input. Environment OS X 10.2.2 java 1.8.0_40 (the current build). iMac 4 GHz Intel Core i7. I'm using webstart to launch the apps. In order to test, I created a simple new project from the code downloaded from here: http://www.javabeginner.com/java-swing/java-jtextfield-class-example This sample code failed as well. In fact using the Oracle website examples fails to allow text field entry. You can test

Display image in img tag stored as BLOB in database

浪子不回头ぞ 提交于 2019-12-11 19:45:46
问题 I can't display BLOB image that I have in mysql saved. I have beans, jsp. I use 3multy-tier architecture, I want to display all the products with the picture. In acceesor: try { Connection cn = getVla().getConnection(); String sql = "SELECT * FROM products"; PreparedStatement pst = cn.prepareStatement(sql); ResultSet rs = pst.executeQuery(); ArrayList<products> ls = new ArrayList<products>(); while(rs.next()) { products s = new products(); s.setPk(rs.getLong("pk")); s.setName(rs.getString(