Beginner in JNLP
I want use JNLP with my java application. I've installed Tomcat 5.5, I've make a *.war File of my application and also the *.jnlp file and web.xml file. My question is: How must I install the application into Tomcat and run it from a browser (directories, etc...).
I don't know if the Tomcat is the correct way to run the program.
Thanks in advance!!
Salvador Huertas.
I get the following error:
Ha habido un error al ejecutar la aplicaci�n.
T�tulo: Consulta Macro Analitica
Proveedor: Satreu
Categor�a: Error de seguridad
access denied (java.util.PropertyPermission user.name read)
I don't know if I have to sign the jar file, and if I must use the policytool.exe program. If yes, How must I say to Java where is the policy file?.
Thanks in advance!!
Salvador Huertas.
Similar Messages
-
Help with JNLP - Beginner with JNLP
Hey guys, I am new here and was hoping someone might be able to help me understand what's going on with this JNLP hocus pocus.
Basically, I'm just trying to deploy a very simple applet using a .jnlp file. I created the applet in Eclipse and it runs fine in the IDE. I set up my jnlp and html files pretty much exactly how the tutorial on Sun's website suggests, but my stupidity seems to prevent the applet from working inside a browser.
The files I'm using are all in the same folder. They are:
HiddenPrizePage.html
HiddenPrizeTask.jar
HiddenPrizeApplet.jnlp
I created my jar using Export in Eclipse with no compression, with the "Export generated class files and resources" checkbox selected. The images folder contains all images used by the applet. The images folder is inside of src. The program is structured so that the logic and drawing is done by HiddenPrizePanel.java and the applet itself is inside HiddenPrizeApplet.java.
MY HTML FILE:
<html>
<body>
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = { code:'HiddenPrizeApplet', width:800, height:600} ;
var parameters = {jnlp_href: 'HiddenPrizeApplet.jnlp'} ;
deployJava.runApplet(attributes, parameters, '1.6');
</script>
</body>
</html>
MY JNLP FILE:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>Hidden Prize Task</title>
<vendor>Clinical Neuroscience Lab at OSU</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="HiddenPrizeTask.jar" main="true" />
</resources>
<applet-desc
name="Hidden Prize Task Applet"
main-class="HiddenPrizeApplet"
width="800"
height="600">
</applet-desc>
<update check="background"/>
</jnlp>
When I try to run the applet inside of a browser, nothing happens. I can right-click the blank space on the page where the applet should theoretically be appearing and choose "Open Java Console" to check for error messages, so I did, and it says:
load: class components.HiddenPrizeApplet not found.
java.lang.ClassNotFoundException: components.HiddenPrizeApplet
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: components.HiddenPrizeApplet
load: class components.HiddenPrizeApplet not found.
java.lang.ClassNotFoundException: components.HiddenPrizeApplet
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: components.HiddenPrizeApplet
Can anyone help me figure out what I'm doing wrong? I don't understand why it says "components." in front of "HiddenPrizeApplet" whenever HPA is referenced, since I never refer to HPA as "components.HiddenPrizeApplet" in my jnlp or html files, and I certainly didn't put the java files or the class files or any other kinds of files in a folder or package named "components" to my knowledge. Thanks for any help you can provide.What is the copy/pasted lines in HPA between the first line up to & including..
public class HiddenPrizeApplet extends (J)Applet..?
BTW - when posting code or code snippets, HTML/XML(/JNLP) or input/output. please use the code tags as described on the 'sticky post' at the top of the forum thread listing. You can still edit your original post to do that, but before you do so, it would pay to run the JNLP through JaNeLA and fix any report in the output list that has a red high light. The JNLP as it stands is invalid in at least one respect. But don't take my word for it, JaNeLA validates against an XSD that is better than Oracle's DTD. I am confident in saying that, because I was involved with the development of the XSD ..& JaNeLA. ;) -
Hey guys, I am new here and was hoping someone might be able to help me understand what's going on with this JNLP hocus pocus.
Basically, I'm just trying to deploy a very simple applet using a .jnlp file. I created the applet in Eclipse and it runs fine in the IDE. I set up my jnlp and html files pretty much exactly how the tutorial on Sun's website suggests, but my stupidity seems to prevent the applet from working inside a browser.
The files I'm using are all in the same folder. They are:
HiddenPrizePage.html
HiddenPrizeTask.jar
HiddenPrizeApplet.jnlp
I created my jar using Export in Eclipse with no compression, with the "Export generated class files and resources" checkbox selected. The images folder contains all images used by the applet. The images folder is inside of src. The program is structured so that the logic and drawing is done by HiddenPrizePanel.java and the applet itself is inside HiddenPrizeApplet.java.
MY HTML FILE:
<html>
<body>
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = { code:'HiddenPrizeApplet', width:800, height:600} ;
var parameters = {jnlp_href: 'HiddenPrizeApplet.jnlp'} ;
deployJava.runApplet(attributes, parameters, '1.6');
</script>
</body>
</html>
MY JNLP FILE:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>Hidden Prize Task</title>
<vendor>Clinical Neuroscience Lab at OSU</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="HiddenPrizeTask.jar" main="true" />
</resources>
<applet-desc
name="Hidden Prize Task Applet"
main-class="HiddenPrizeApplet"
width="800"
height="600">
</applet-desc>
<update check="background"/>
</jnlp>
When I try to run the applet inside of a browser, nothing happens. I can right-click the blank space on the page where the applet should theoretically be appearing and choose "Open Java Console" to check for error messages, so I did, and it says:
load: class components.HiddenPrizeApplet not found.
java.lang.ClassNotFoundException: components.HiddenPrizeApplet
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: components.HiddenPrizeApplet
load: class components.HiddenPrizeApplet not found.
java.lang.ClassNotFoundException: components.HiddenPrizeApplet
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: components.HiddenPrizeAppletPlease use the code tags when posting code, code snippets, HTML/XML(/JNLP) or input/output. The code tags are described on the 'sticky post' at the top of the forum thread listing. It is still possible to edit the original post to add the code tags.
As to the problems, some comments:
<ul>
<li>Is the class called 'components.HiddenPrizeApplet' or 'HiddenPrizeApplet'? The JNLP requires the fully qualified class name of the main, which includes the package name.
<li>The JNLP is invalid. Use JaNeLA to validate it.
</ul> -
.jnlp downloading to wrong folder
Ok, this is totally strange. Now my Java applet is downloading to http://www.finncraft.com/wp-content/uploads/2013/04/java.png
Please look at the path that it is downloading to. VERY STRANGE.
Yes, I do have Safari settings to download all files to the Download Folder.
But why would it download to the Private Folder.
I did not even know that I had this folder.To lessen the risk of malware infection, Safari now downloads Java WebStart application files to a hidden temporary folder and does not open them automatically. Although you may find instructions on the Internet for defeating this protection, I strongly advise against doing so.
The right way to launch a WebStart application is to click the Downloads button at the right end of the Safari toolbar and then double-click the icon of the JNLP file you just downloaded. If you want to save the file for later use, click the magnifying-glass icon to reveal it in the Finder, and then move it. Otherwise it will be deleted at the next login. -
Error in downloading jars through jnlp from Oracle 10.1.3 App Server
I am working on migrating an application (containing two WARs) from Resin servlet server to Oracle 10.1.3 App Server. The migration was unit tested successfully. One of the WARs was implemented as a web service that downloaded JARs to the client PC through jnlp. When I tried to combine the two WARs into one (application) WAR, some of the JARs failed to download with an error message stating that they were "corrupted". 5 of the 6 "corrupted" contain native code, although two other native code JARs were able to download successfully.
Most of the time the jnlp failure was accompanied with this error: WARNING: Exception returned by remote server: {0}
javax.naming.NoPermissionException: Not allowed to look up java:comp/ServerAdministrator, check the namespace-access tag setting in orion-application.xml for details
at com.evermind.server.rmi.RMIClientConnection.handleLookupResponse(RMIClientConnection.java:819)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:283)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Error: Unexpected error during lookup : Lookup error: javax.naming.NoPermissionException: Not allowed to look up java:comp/ServerAdministrator, check the namespace-access tag setting in orion-application.xml for details; nested exception is:
javax.naming.NoPermissionException: Not allowed to look up java:comp/ServerAdministrator, check the namespace-access tag setting in orion-application.xml for details
Why is the jnlp failing when the WARs are part of the (main) application, but OK when it is part of a web service WAR? How can I overcome this problem?
Thanks for your help.Hi Marc ,
Thanks for your reply.....
Did you mentioning the script (upgrade_10131_
10133_oracle.sql) in the orabpel. I had run this script after applying the patch.
Still iam facing the same issue.
what need to be done?
Could you please help me on this, because I need to do the Fault Handling Framework in BPEL and so i need the faultpolicy folder to be present.
Since I got the folder by applying the patch, but what happend is when i try to check out for the activity status in the BPEL Console Activity tab it is showing the error as mentioned earlier. Any problem with patch implementation or any bug is there. So far i done the patch installation successfully without error and i upgraded the orabpel schema using the mentioned script also. Any other things i need to do?
Regards,
Ashok. -
Raw Beginner need help with Adobe Photoshop CS2
I am reading Photoshop CS2 for digital photographers by Scott Kelby. I am looking at pg 55 if any one has this book and would like to visually see what I am about to describe. I own Adobe Photoshop CS2 software. After bringing up Adobe bride RAW on my PC, I then see all the settings, Exposure, Shadows, Brightness, Contrast, and Saturation.. Located directly above all of these settings is Auto and Default which you can click on and adjust all settings at the same time. If you don't like what you see you click on Default to go back to the original, you can then make your adjustments individually. In my CS2 book there is an Auto box you can check or un-check beside each setting, Exposure, Shadows, Brightness, and Contrast. My question is how do I get the Auto box beside each setting so I can simply put a check in that box and preview changes individually instead of the Auto and Default on top which changes every setting at the same time? I hope this make since to you, if not I will try to explain again.
Thank you Ramon for your help. I will just be happy with what I have, which works fine but I thought it might be better for me to have the individual Auto check box for each setting. Thank you for the tip to double-click the sliders to reset it to default, it works in CS2 also:) Actually this gives me more control and works out great now that I think about it. I am sure there are more handy little tips I should know about but don't because I am a beginner in learning RAW. Hopefully I'll stumble across a book or some thing over the internet that will help me with my learning curve.
-
If I want to set -Xbootclasspath , how to do it in jnlp file
if I want to set -Xbootclasspath to let jvm know my classpath, how to do it in jnlp file. or have other way to do it.
If I want to orb, (now I am using openOrb) , I had to
let jvm load Orb which I want to use. Did you put those Orb classes into jars and list them in the jnlp file of your Web Start app?
Regards,
Marc -
Java web start error running Asset Editor or any jnlp page
When I try to launch Asset Editor or Import/Export or any of the jnlp pages that runs using Java Web Start, I get an error. Java 7 Web start starts but It throws “Could not connect to Server. Please check your Java Web Start and Browser proxy settings”.
I read conflicting opinions on the internet as to what version of JRE/JDK is needed and potentially some issues running Java Web start with Java 7. I have 64-bit java 1.7.0_45 JDK/JRE installed and no other version. I tried installing 32-bit 1.7.0_45 as well. I have tried to run it from 32-bit as well as 64-bit browser also. All situations provide the same error.
However, when I install JRockit, it seems to work fine. But we cannot use jrockit. We have to use IBM JDK/JRE 7 eventually. Currently, the java web start does not work on Oracle Java as well as IBM JRE.
Any help is much appreciated.I found a solution for this problem. We have to apply patch 17634436.
https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?_afrLoop=149081897091441&patchId=17634436&_afrWindowMode=0&_adf.ctrl-state=xfsajjmff_74
Just thought it will be useful for anyone encountering this problem. -
I have a program (javafx)
this program includ swingButton to open SwingFileChooser.
In netbean6.71 can run this program on standard execution
run command in command windows
javafx -jar test.jar the program is ok
but
I run the test.jnlp ,swing button is not ok
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/D%3A/JAVA/MyBlog/test2/dist/" href="test2.jnlp">
<information>
<title>test2</title>
<vendor>kevnlin</vendor>
<homepage href="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/D%3A/JAVA/MyBlog/test2/dist/"/>
<description>test2</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<property name="jnlp.packEnabled" value="true"/>
<property name="jnlp.versionEnabled" value="true"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="test2.jar" main="true"/>
<jar href="lib/customizer.jar"/>
<jar href="lib/dt.jar"/>
<jar href="lib/jmf.jar"/>
<jar href="lib/tools.jar"/>
<jar href="lib/mediaplayer.jar"/>
<jar href="lib/multiplayer.jar"/>
<jar href="lib/sound.jar"/>
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=test2.Main</argument>
</application-desc>
<update check="background">
</jnlp>
how can I crate jnlp with javafx commandhow can I crate jnlp with javafx command Run javafxpackager
Note: the generated JNLP is incorrect. Not sure if that's the source of your troubles, but anyway, it is better to add a final slash to the update tag:
{color:#8000A0}*<update check="background"/>*{color} -
JNLP - Swing application compiled in jdk1.5 not working in jdk1.6
I have one swing application, compiled in jdk 1.5 and deployed in JNLP with jdk 1.5. When client machine try to access the application and having jre 1.5 then it works fine. but if client machine having jre 1.6 or version greater than 1.5 then application does not work properly.
Please help me, i got stuck and not able to solve the problem.
this is my JNLP
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://10.1.1.145:8080/uttimesheet" href="launch.jnlp">
<information>
<title>TimeSheet Portal</title>
<vendor>Geometric Global</vendor>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">TimeSheet Portal</description>
<homepage href="http://appframework.dev.java.net"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" />
<jar href="UTTimeSheet.jar" main="true" download="eager"/>
<jar href="lib/antlr-2.7.5H3.jar" download="eager"/>
<jar href="lib/appframework-1.0.3.jar" download="eager"/>
<jar href="lib/asm.jar" download="eager"/>
<jar href="lib/cglib-2.1.jar" download="eager"/>
<jar href="lib/commons-collections-2.1.1.jar" download="eager"/>
<jar href="lib/commons-logging-1.0.4.jar" download="eager"/>
<jar href="lib/dom4j-1.6.jar" download="eager"/>
<jar href="lib/hibernate3.jar" download="eager"/>
<jar href="lib/jta.jar" download="eager"/>
<jar href="lib/log4j-1.2.9.jar" download="eager"/>
<jar href="lib/poi-3.0.2.jar" download="eager"/>
<jar href="lib/postgresql-8.3-603.jdbc3.jar" download="eager"/>
<jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
<jar href="lib/swing-worker-1.1.jar" download="eager"/>
<jar href="lib/swingx-0.9.2.jar" download="eager"/>
</resources>
<application-desc main-class="timesheetproject.TimeSheetProjectApp">
</application-desc>
</jnlp>
Thanks in Advance.Thanks Luca for your time,
we have deployed application in tomcat and changed the home page of tomcat to our application home page(html page). and url is http://10.1.1.145:8080/
Application home page contain link to jnlp. so whenever user click on link (in home page) then jnlp will execute and launch the swing application.
do you need some more clarification?
below is the home page(html).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Launch TimeSheet Portal via JNLP</title>
</head>
<body>
<center>
<br>
<img src="images/Geo-logo.JPG" />
<br>
<hr width="70%" />
<br>
<table width="70%">
<tr><td> </td></tr>
<tr>
<td colspan="2" align="center">
<align="center">
<h2>Welcome to TimeSheet Portal.</h3>
</align>
</td>
</tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
<tr>
<td align="center">
<align="center">
<h3><u>Live Sites:</u></h3>
</align>
</td>
<td align="center">
<align="center">
<h3><u>Demo Sites:</u></h3>
</align>
</td>
</tr>
<tr>
<td width="50%" align="center">
<img src="images/launchPortal.png" onmouseover="this.src='images/launchPortalMouseOver.png';" onmouseout="this.src='images/launchPortal.png';" border="0"/>
<br><br>
<img src="images/launchAdminPortal.png" onmouseover="this.src='images/launchAdminPortalMouseOver.png';" onmouseout="this.src='images/launchAdminPortal.png';" border="0"/>
</td>
<td width="50%" align="center">
<img src="images/demoPortal.png" onmouseover="this.src='images/demoPortalMouseOver.png';" onmouseout="this.src='images/demoPortal.png';" border="0"/>
<br><br>
<img src="images/demoAdminPortal.png" onmouseover="this.src='images/demoAdminPortalMouseOver.png';" onmouseout="this.src='images/demoAdminPortal.png';" border="0"/>
</td>
</tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
</table>
<table width="70%">
<tr><td> </td></tr>
<tr><td> </td></tr>
<tr><td align="center">
FAQ |
Help |
Why Timesheet |
Report a bug |
Contact Us |
Subtask Mapping
</td></tr>
</table>
<br><br><br><br>
<table width="70%" bgcolor="#C0C0C0" style="vertical-align: bottom">
<tr>
<td colspan="2" align="center" style="vertical-align: bottom" bgcolor="#C0C0C0">
©<font size="1.5" face="Verdana"> 2008 Geometric Ltd. All rights reserved.<br>
Best optimized for a resolution of 1024 and above. JRE 1.5 is a pre-requisite for using these applications.
</font>
</td>
</tr>
</table>
</center>
</body>
</html>
Thanks. -
How to make a really basic pong game for a beginner
Hello. I've read through a couple of threads on here dealing with making a game of pong in LabView, but in them the users had questions with far more complex aspects of the program than I want to deal with. I am a beginner programmer in LabView with limited experience in Java and Visual Basic programming. I was tasked with creating a game over winter break, and now that I finally have some time (this weekend that is), I decided that I'd make a really simple game of pong. However, I have seriously overestimated the difficulty of this for a beginner who has very limited knowledge of Lab View.
I ask you to please have some patience with me.
I know what I want to do, and just need help inplementing it.
Here is the idea for my design to keep it as simple as possible:
-Create a field (I am not sure what to use for this, but from my reading it appears that some sort of a picture output is needed, but I cannot find that anywhere).
-Set up some simple function that can output the dimensions of this field to use with collision tracking.
-Create a ball that can be tracked by the program.
-From my reading I understand that the simplest way to "bounce" the ball off the sides appears to simply reverse the X velocity of the ball when it strikes the vertical boundaries and the Y velocity when it strikes the horizontal boundaries.
-Insert some sort of a "paddle" that the user can control with the left and right arrow keys.
Now, as I have mentioned I am a beginner with approximately one month maximum knowledge of this software, spread over about a year. I want to take things slow. So for starters, would anyone be willing to walk me through creating a visual output for this and creating a ball that will bounce off all sides?
If I can at least get that far for now, then I can move on (with help I hope!) of inserting an interactive interface for the "paddle."
I have found some LabView code for a simple game like this, but it also includes a score keeping loop as well as an "automatic play" option, and I am attempting to wade through all that code to find the bones of it to help me with this, but due to my inexperience, this might thake a lot of time.
I thank you for any and all help anyone may be able to provide.EchoWolf wrote:
-Create a field (I am not sure what to use for this, but from my reading it appears that some sort of a picture output is needed, but I cannot find that anywhere).
Wel, there is the picture indicator in the picture palette. In newer versions it's called "2D picture". The palettes have a search function. Using the palette search function is a basic LabVIEW skill that you should know. If you've seen the example for the other discussion, it uses a 2D boolean array indicator. The boolean array is only recommended for a monochrome very low resolution display.
EchoWolf wrote: -Set up some simple function that can output the dimensions of this field to use with collision tracking.
-Create a ball that can be tracked by the program.
That seems backwards. Properly programmed, the code always knows the dimension and the ball position. The program generates, (not tracks!) the ball movement. Of course you need to do some range checking on the ball position to see when it collides with the walls.
EchoWolf wrote:
-From my reading I understand that the simplest way to "bounce" the ball off the sides appears to simply reverse the X velocity of the ball when it strikes the vertical boundaries and the Y velocity when it strikes the horizontal boundaries.
Of course you could make it more realistic by keeping track of three ball parameters: x, y, spin.
EchoWolf wrote:
-Insert some sort of a "paddle" that the user can control with the left and right arrow keys.
Pong is typically played with the up-down arrow keys.
EchoWolf wrote:
Now, as I have mentioned I am a beginner with approximately one month maximum knowledge of this software, spread over about a year.
LabVIEW knowledge is not measured in time units. What did you do during that month? Did you attend some lectures, study tutorials, wrote some programs?
EchoWolf wrote:
So for starters, would anyone be willing to walk me through creating a visual output for this and creating a ball that will bounce off all sides?
I have found some LabView code for a simple game like this, but it also includes a score keeping loop as well as an "automatic play" option, and I am attempting to wade through all that code to find the bones of it to help me with this, but due to my inexperience, this might thake a lot of time.
Start with the posted example and delete all the controls and indicators that you don't want, then surgically remove all code with broken wires.
Alternatively, start from scratch: Create your playing field. Easiest would be a 2D classic boolean array that is all false. Use initialize array to make it once. Now use a loop to show the ball as a function of time.
Start with a random ball position. to display it, turn one of the array elements true before wiring to the array indicator using replace array subset.
Keep a shift register with xy positions and xy velocities and update the positions as a function of the velocities with each iteration of the loop. Do range checking and reverse the velocieis when a edge is encountered.
What LabVIEW version do you have?
LabVIEW Champion . Do more with less code and in less time . -
Signed, cached JNLP applet doesn't start when updating from 1.6 to 1.7
Hi, yesterdays forced upgrade from Java6 to Java7 uncovered a nasty surprise for us:
We're running a game client through JNLP embedded in the browser using signed all-permission jars. The certificate is definitely valid and hasn't timed out.
When upgrading from 1.6 to 1.7 the applet won't start because of a supossed permission violation for the cached jars. Web start thinks that the jars in the cache are not signed (although they are).
Deleting the applet cache through the control panel, or deploying a new version of the applet both solves the problem as then the cached version will be overwritten with a newly downloaded version, and everything works fine from then on until switching back to 1.6 again.
Are 1.6 vs. 1.7 cached, signed jars not compatible? Something to do with pre-validation? Wouldn't it be a good idea to completely invalidate the applet cache in the JRE installer? Is this a bug on the JRE side, or are we somehow not using JNLP the right way (we're running the game for 2 years now, and a couple of million players have played the game since then on JRE6, so I assume we're using JNLP basically the right way).
Also, early JRE7 preview versions didn't seem to have this problem, I remember testing JRE7 intensively a few months back without any problems, however I'm not sure whether the cache remained intact when installing the preview JRE7 runtime.
Here are the console traces, please excuse the German, hopefully it's still clear what happens.
Oops, unfortunately I can only send 30k characters per post. I'd be happy to send you more traces, and additional information. Thanks in advance :)
Here's a trace when going from 1.6 to 1.7 with the failed permission validation:
Java-Plug-in 10.5.1.255
JRE-Version verwenden 1.7.0_05-b05 Java HotSpot(TM) Client VM
Benutzer-Home-Verzeichnis = C:\Users\aweissflog
c: Konsolenfenster löschen
f: Objekte in Finalisierungs-Queue finalisieren
g: Garbage Collect
h: Diese Hilfemeldung anzeigen
l: Class Loader-Liste ausgeben
m: Speicherauslastung drucken
o: Logging auslösen
q: Konsole ausblenden
r: Policy-Konfiguration neu laden
s: System- und Deployment-Eigenschaften ausgeben
t: Threadliste ausgeben
v: Thread-Stack ausgeben
x: Class Loader-Cache leeren
0-5: Trace-Ebene auf <n> setzen
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
network: Created version ID: 1.7.0.05
network: Created version ID: 1.7
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500, Version: null]
cache: Cannot get resource from cache: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500, Version: null]
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500, Version: null]
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 mit Proxy=DIRECT wird hergestellt
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com:80/ mit Proxy=DIRECT wird hergestellt
security: Blacklist-Entzugsprüfung ist aktiviert
cache: Trying to update in place C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\7672fd9a-3ab71d78.idx
cache: Upgrade writing to disk for C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\7672fd9a-3ab71d78
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500: 200
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500: null
network: Serverantwort: (length: 731, lastModified: Wed Jun 13 19:21:23 CEST 2012, downloadVersion: null, mimeType: application/x-java-jnlp-file)
network: Not caching resource due to response header: cache-control: no-store
network: Ressource wird heruntergeladen: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500
Content-Length: 731
Content-Encoding: null
security: Prüfung der Liste vertrauenswürdiger Librarys ist aktiviert
network: URL http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 in Datei C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\34\1f2e02e2-2f6a1505-temp geschrieben
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 trennen
security: Datei mit der Liste vertrauenswürdiger Librarys wurde nicht gefunden
network: Downloaded http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500: C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\34\1f2e02e2-2f6a1505
temp: new XMLParser with source:
temp: <?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true" />
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" />
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600" />
<security>
<all-permissions />
</security>
</jnlp>
temp:
returning ROOT as follows:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp>
temp: returning LaunchDesc from XMLFormat.parse():
<jnlp spec="1.0+" codebase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/" href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<jar href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" download="eager" main="true"/>
<nativelib href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" download="eager" main="false"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" documentbase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/game" width="800" height="600"/>
</jnlp>
network: Cacheeintrag gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp, Version: null] prevalidated=true/0
cache: Resource http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp has expired.
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp mit Proxy=DIRECT wird hergestellt
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
cache: Upgrade of entry done
cache: readIndexFile returning success
cache: Trying to update in place C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\1ff11027-574532ab.idx
cache: Upgrade writing to disk for C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\1ff11027-574532ab
security: Datei mit der Liste vertrauenswürdiger Librarys wurde nicht gefunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp: 304
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp: null
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp trennen
temp: new XMLParser with source:
temp: <?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true" />
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" />
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600" />
<security>
<all-permissions />
</security>
</jnlp>
temp:
returning ROOT as follows:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp>
temp: returning LaunchDesc from XMLFormat.parse():
<jnlp spec="1.0+" codebase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/" href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<jar href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" download="eager" main="true"/>
<nativelib href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" download="eager" main="false"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" documentbase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/game" width="800" height="600"/>
</jnlp>
cache: JNLPPreverifyClassLoader.initialize: FAILED: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00
basic: Plugin2ClassLoader.addURL2 called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00
basic: Plugin2ClassLoader.drainPendingURLs addURL called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00
basic: Plugin2ClassLoader.addURL2 called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00
basic: Plugin2ClassLoader.drainPendingURLs addURL called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00
network: LaunchDownload: concurrent downloads from LD: 4
network: Total size to download: -1
security: Security check for progress jars: allSigned=true
network: SyncFileAccess.openLock: handled OverlappingFileLockException, remainint TO : 10000
network: Cacheeintrag gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00, Version: null] prevalidated=false/0
cache: Resource http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 has expired.
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 mit Proxy=DIRECT wird hergestellt
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00: 304
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00: null
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 trennen
network: Downloaded http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00: C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\7672fd9a-3ab71d78
network: Download Progress: jarsDone: 1
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx-481.ah.bpcdn.net/applet/loading.gif?__cv=8948a154c2c16d3f2a836802397bee3a00, Version: null]
network: Verbindung von http://xxxxxxxxxxx-481.ah.bpcdn.net/applet/loading.gif?__cv=8948a154c2c16d3f2a836802397bee3a00 mit Proxy=DIRECT wird hergestellt
network: Verbindung von http://xxxxxxxxxxx-481.ah.bpcdn.net:80/ mit Proxy=DIRECT wird hergestellt
cache: Upgrade of entry done
cache: readIndexFile returning success
network: CleanupThread used 403203 us
network: Cacheeintrag gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00, Version: null] prevalidated=false/0
cache: Resource http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 has expired.
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 mit Proxy=DIRECT wird hergestellt
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00: 304
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00: null
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 trennen
network: Download Progress: jarsDone: 2
network: Created version ID: 1.6+
network: Created version ID: 1.7.0.05
network: Created version ID: 1.7.0.05
network: Created version ID: 1.7
basic: LaunchDesc location: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp
network: Created version ID: 1.0+
network: Created version ID: 7.0
basic: Ausnahme: Nicht signierte Anwendung fordert uneingeschränkten Zugriff auf das System an
Nicht signierte Ressource: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00.
ExitException[ 3]JNLPException[category: Sicherheitsfehler : Exception: null : LaunchDesc:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp> ]
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Ignored exception: ExitException[ 3]JNLPException[category: Sicherheitsfehler : Exception: null : LaunchDesc:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp> ]
security: Zugriff auf Schlüssel und Zertifikat im Mozilla-Benutzerprofil: null
security: Speicher für abgelehnte Sessionzertifikate zurücksetzen
basic: Dialog type is not candidate for embeddingWouldn't it be a good idea to completely invalidate the applet cache in the JRE installer?Yes, I guess it should be an option for user of the app on first start after upgrade, not for the JRE installer. There are many large applications that users would want to avoid re-download.
From the log, there is some hidden exception during first launch. The best way to proceed is to file a bug, including some guest/debugging access to the game. -
Generated JNLP and closing the original browser window
Hi All, This is my first post so bear with me. Here is my problem.
I am using Web Start for an application.
I need to check to see if web start is installed or not.
If it is NOT I need to auto-install
if it is I need to call a servlet that dynamically generates the jnlp with the user that I passed in as <arguments/> maybe other arguments in the future also
I need to shut the original browser window
I will use this servlet in multiple web apps
I have it working like this but I don't think it is clean enough
I call a servlet with the syntax checkJREServlet?USER=username
this servlet writes out:
<html>
<body>
<h1>Installing Java Runtime</h1>
<OBJECT
CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="0" height="0"
codebase="http://<myservler>/<plugins folder>/j2re-1_4_2-windows-i586.exe#Version=1,4,2,0">
<PARAM NAME="code" VALUE="redirectAndClose.class"> //my applet class
<PARAM NAME="archive" VALUE="RedirectUtil.jar"> //the jar where my applet class is stored
<PARAM NAME="archive_cache" VALUE="RedirectUtil.jar">
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME="where_to_next" VALUE="http://<myservler>/<mywebapp>/openAppServlet?USER=username">
You did not install Java.
<p>Please use the <b>Back</b> button to return to the previous page.
</OBJECT>
</body>
</html>
I have redirectAndClose which is:
import java.applet.Applet;
import java.net.URL;
import java.net.MalformedURLException;
import netscape.javascript.*;
public class redirectAndClose
extends Applet
java.util.Timer timer = null;
int seconds = 5;
public void start()
try
getAppletContext().showDocument(
new URL(getCodeBase(), getParameter("where_to_next")), "_blank");
//now we have to close ourselves in 5 seconds
timer = new java.util.Timer();
timer.schedule(new java.util.TimerTask()
public void run()
timer.cancel(); //Terminate the timer thread
destroy();
, seconds * 1000);
catch(MalformedURLException e)
throw new RuntimeException(e);
public void destroy()
super.destroy();
//close this window because we don't need it
JSObject win = (JSObject)JSObject.getWindow(this);
win.eval("window.opener=self;self.close();");
If try to close without a timer my entier session gets killed, including my webstart app that the openAppServlet wrote out the jnlp for
I hate this because it is not definite. I want to DEFINITELY know when my webstart app is open and I can close this original window. Like a whenWindowExists then close me but I have no clue how to do this.
The "where_to_next" location is a servlet that will dynamically build a jnlp file specific for each web app building it from parameters in web.xml for each individual web app. Basically I will have to store the actual name of the class, the jar href's I will be needing, title, vendor, description, basically everything that can be different.
So what I need is some kind of library so I can include it in multiple web apps EASILY. I don't want to have to write a document on how to include this thing. It should be self explainatory. I originally just mapped to the first servlet in my web.xml and then included the jar file but it appears to be non-existent in my project. Maybe some suggestions on what others would do may help me.
Thanx in advanceI don't want to use a timer because who knows if the servlet that writes out the dynamic jnlp will get hung up for a little while or any number of other reasons. If that did happen the timer would kick off and close my web start app. I cannot have this.
-
How to include .class or xml file in a JNLP
Hi,
I want to include an xml file in the JNLP file. Can any one tell me the syntax to include it plzzzzz.....
Regards,
PrasannaYou mean as related-content?
If so, put it in a native-lib as myXml.jar and have href="jar:myXml.jar!/actualXmlFile.xml"
Bye. -
Please help beginner! Few pong questions.
So, I have just started creating my own pong game after
learning the basics of Flash 8. Everything went perfectly until
now, I got a bit stuck.
I got to point where I have fully working menu, multiplayer
and singleplayer, you can play against another person using mouse
and arrows. The scoring system works too and I actually managed to
get the computer to follow the ball but here comes the first
problem. I found a whole actionscript for the ball on the internet
here it is:
onClipEvent(load){
s = {l:10,r:490,t:20,b:405,w:10,h:10};
function setSpeed(){
xspeed = Math.round(Math.random()*5)+1;
yspeed = Math.round(Math.random()*5)+1;
xspeed *= Math.round(Math.random()*2)==1 ? -1 : 1;
yspeed *= Math.round(Math.random()*2)==1 ? -1 : 1;
setSpeed();
_root.cscore = _root.pscore = 0;
onClipEvent(enterFrame){
_x += xspeed;
_y += yspeed;
if(_x+(s.w/2)+xspeed>s.r){
_x = s.r/2;
_y = s.b/2;
setSpeed();
_root.cscore += 1;
if(_x-(s.w/2)+xspeed<s.l){
_x = s.r/2;
_y = s.b/2;
setSpeed();
_root.pscore += 1;
if(_y+(s.h/2)+yspeed>s.b){
_y = s.b-(s.h/2);
yspeed *= -1;
if(_y-(s.h/2)+yspeed<s.t){
_y = s.t+(s.h/2);
yspeed *= -1;
if(this.hitTest(_root.player)){
_x = _root.player._x - _root.player._width/2;
xspeed *= -1;
xspeed *= 1.08;
yspeed *= 1.08;
if(this.hitTest(_root.computer)){
_x = _root.computer._x + _root.computer._width/2;
xspeed *= -1;
xspeed *= 1.08;
yspeed *= 1.08;
As I said I am a beginner and I dont really understand the
code. The problem is that after every hit the ball gets faster and
faster and faster until it is impossible to see it.
Here comes another problem: I have got the enemy just
following the ball so it is impossible to score the script for
enemy is:
onClipEvent(enterFrame){
ydist = _root.ball._y - _y;
_y = _root.ball._y;
Now my question is can someone plese tell me what do I have
to change in the ball code so it stays at the constant speed or it
just increases a little bit. The second qustion is how can I make
the enemy computer not perfect? So you can actually win the game?
Something like hit it randomly.
My last question is: The game should be quiz pong. So if you
score a point a qustion will pop up and you will have to answer it.
What is the best way to do that? I think it should mean somethin
like this: If score=+1 gotoandplay(lets say the question will be at
frame 20) I dont know if that is the way it should be formed in the
action script it is just my guess.
Please if someone can help me at least with one of those
questions I would be incredibly oblidged. thankshey, im not great at this easier, but i think the speed
problem can be solved by getting rid of the 2 lines
xspeed *= 1.08;
yspeed *= 1.08;
I think this increases the speed by 8% after every hit. You
can also try lowering the number, but if you go elow 1 it will slow
down.
Maybe you are looking for
-
How to call a report via a URL, showing a parameter prompt, but no controls
Hi, I want to be able to call a report online by passing in the URL to Portal. Want to show a prompt for a parameter value and nothing else, until the parameter is entered. I can get the report to display the parameter and the controls, and I can get
-
I am using Outlook 2010. Changes made to my iPhone 4 or my iPad2 appear on each other (tasks, calendar, Contacts) but not in Outlook. Why is this? Also, changes made in Outlook do not appear on Phone or IpAd
-
Contacts app is not on my newly purchased 4s iPhone home screen. Why? And please how do I resolve this? Thanks in anticipation!
-
IChat not displaying online buddies
I can still log into iChat successfully, but once im logged in, my online buddies dont appear, just all of my groups with all of my buddies in the "offline" category, i was told to delete the iChat files and restart my computer to configure the iChat
-
I put an SD card in my Macbook Pro and it snapped inside.
A small piece of the top of the SD card is stuck inside there. What do I do? It'll cost a fortune to get it fixed at Apple. Any suggestions? It's stuck behind the SD card pins and that's obscuring the SD card reader from reading any card.