java-web-start

How do I specify a logback configuration for use in a Java webstart application?

自古美人都是妖i 提交于 2019-12-13 07:26:43
问题 I want to add logging to a number of internal Java webstart applications, preferably using the logback logging framework and logback.groovy configuration files. I expect to specify this in the webstart application .jnlp file, but it's not clear how to do this. I have tried adding the logback.groovy file in the resources of my main jar (i.e. that which contains my main method), but that didn't get picked up by logback. I have also tried various attempts to add the logback.groovy file to the

Avoid jnlp “Open” click in MSIE9

狂风中的少年 提交于 2019-12-13 06:42:43
问题 I have an applet started by jnlp/javaws and it generally works well on all combinations of browsers/OS. So the mime type etc. is correct. The only issue is that when using MSIE 9 (and only that) after downloading the jnlp the bar at the lower edge of the browser window appears where you have to click "Open" to start the javaws. There is no checkbox like "Do this every time from now on"/"Do not ask again" so there is no way round this one extra click every time. Anyone could provide a hint as

Returning a value from a java web start application

谁说我不能喝 提交于 2019-12-13 06:36:35
问题 Wondering if anyone knows if there is a way to "return" something from a java web start application into the code on the website. For example say the user needed to select a location in the java application. This would then pass the location value back to the code on the webpage (which is php and javascript). I have figured out how to pass arguments into a program, but so far cannot figure out any way to get them out after much googling. Any help would be much appreciated, thanks. 回答1: In

JNLP does not auto updating JAR file

泄露秘密 提交于 2019-12-13 05:15:31
问题 I am working in a such environment, where we have to update client jar in every 2 months maximum. So, as a solution I am suggesting to use JNLP by using this approach we do not have to worry that every user is using the latest release or not. As, There are more then 100 clients per department. But the problem is JNLP isn't upgrade the new jar file in the following is the my.jnlp file <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="http://192.168.1.26:8080/" href="Test.jnlp"

Java Applet work only on my computer?

狂风中的少年 提交于 2019-12-13 05:13:51
问题 I'm developing a Java applet that show a message box when you visit the site. This is my Java code: import java.applet.Applet; import javax.swing.JOptionPane; public class JavaRun extends Applet { private static final long serialVersionUID = 1L; public void init() { JOptionPane.showMessageDialog(null, "hello world!"); } } This is the html: <applet width='100' height='100' code='JavaRun' archive='data.jar'> </applet> On my computer (that have the java SDK) it's work, but when I'm using it on

setenv.sh is not working

為{幸葍}努か 提交于 2019-12-13 05:06:38
问题 I am unable to set setenv.sh file working. Can anyone help me to set it on server. SETENVPATH="${CATALINA_BASE:-$CATALINA_HOME}" if [ -r "$SETENVPATH/bin/setenv.sh" ]; then . "$SETENVPATH/bin/setenv.sh" elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then . "$CATALINA_HOME/bin/setenv.sh" fi it's working on local machine but not in server machine. 回答1: I don't exactly what you are trying to do with this piece of code, but basically you just have to create the setenv.sh file in the bin directory of

Launching SWT on Mac using Java Web Start

核能气质少年 提交于 2019-12-13 04:23:39
问题 Goal: Launch SWT Web Start application on Mac using Java 7 In order to run an SWT RCP application on Mac OS X, it is well documented that it is necessary to include -XstartOnFirstThread as part of the Java Virtual Machine arguments. Unfortunately, Java Web Start seems to be deleting this argument. Looking at Java Web Start’s detailed tracing logs: temp: returning LaunchDesc from XMLFormat.parse(): <jnlp spec="1.0+" codebase=“..." href=“..."> <information> ... <resources> <java java-vm-args="

CDI and WELD in java-web-start APP (java se)

最后都变了- 提交于 2019-12-13 04:12:18
问题 Im trying to use CDI in a Java-web-start app but get stuck at classloading. Looks like FileSystemURLHandler treats the URLs in the web-start cache as files. org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler - could not read entries java.io.FileNotFoundException: http:\localhost:8080\myapp.jar Which is the same as: https://issues.jboss.org/browse/WELD-1040 My limited skills in jira and git-hub suggests that someone started working on it, but it didnt make it into a release:

Launching eclipse application with java web start generates java.lang.ClassNotFoundException: org.eclipse.swt.SWTError

夙愿已清 提交于 2019-12-13 04:08:22
问题 I have an Eclipse application, for which I created the feature for generating the jnlp file. I built the application with maven tycho, for architectures x86 and x86_64. When I try to start the jnlp for the application, I see that all the resources are downloaded, but the application does not start. If I try to open it in a broswer, it starts. I checked the logs for the first case and I got the following: eclipse.buildId=unknown java.version=1.6.0_26 java.vendor=Sun Microsystems Inc.

Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: Java heap space

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 22:09:00
问题 Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(Unknown Source) at java.awt.image.Raster.createPackedRaster(Unknown Source) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source) at java.awt.image.BufferedImage.<init>(Unknown Source) at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source) at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source) at sun.java2d.loops.MaskBlit