Java3D via Web Start

Is there a way to specify in the jnlp the requirements of the java3D installation to be able to run this application?

I got most of this information from a combination of searching these forums, the Web Start Developer's Guide, at http://java.sun.com/products/javawebstart/docs/developersguide.html, and the Unofficial JNLP/Web Start FAQ, which is at http://lopica.sourceforge.net/faq.html. Any mistakes or misconceptions in this explanation are my own, but if it leaves you confused or if I have failed to answer any questions, those are the documents that allowed me to get a Java3D application running via Web Start.
First important point: you WILL NEED to sign all the .jars you distribute, so if you don't know how to do that, go read a tutorial on security and jarsigner/keystores FIRST. You can create your own cert to sign against, so long as your users trust you enough to click 'Yes' when Web Start asks them if they trust you. :)
So, now you've gotten yourself set up with a signing cert, either your own or a $400 one from Verisign or similar. Now, you're going to need to sign copies of your application .jar, any other .jars you distribute (log4j.jar, the java3d jarfiles from the java3d distribution, in my case I have a data .jar that's separate from the application code .jar, etc.) Note that, to make Web Start transparently distribute the Java3D jars along with your application, you do in fact have to unpack them from the installer, sign them, and include them in the way I outline below. The approach I take is to copy all the files to some directory as unsigned.<original jar name>. Then, the jarsigner command line looks like this:
jarsigner -keystore /path/to/keystore/file -storepass <password> -keypass <other password> -signedjar <original jar name> unsigned.<original jar name> keyAlias This applies equally for any other .jars you distribute (log4j is a popular example), including your own application .jar.
If you use ant, the <signjar> task will do all the above for you! Have a look at the Ant manual.
Put all these signed jarfiles in some directory where your web server can serve them up, e.g., /var/www/<yourapp>/lib on the Web Start server. Now all the pieces needed are in place and securely signed so that Web Start will trust your application to use them; you just have to tell Web Start to make them available to the runtime classpath. Below are my .jnlp file and main() method from my java3d application. Note especially the <security> stanza of the JNLP file, which is what both requires the signing of all the .jars, and allows Java3D to talk to the DirectX or OpenGL layer, access files stored on disk (the .jars in the Web Start cache, for example), and
just generally behave as a native app might.
First the JNLP file:
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Your Application -->
<jnlp
  spec="1.0+"
  codebase="http://your.webstart.server/yourapp"
  href="http://your.webstart.server/yourapp/yourapp.jnlp">
  <information>
    <title>Your Application</title>
    <vendor>Some Company</vendor>
    <!--<homepage href="docs/help.html"/> -->
    <description>This is your application</description>
    <description kind="short">A longer application description</description>
    <!-- <icon href="images/swingset2.jpg"/> -->
    <offline-allowed/>
  </information>
  <security>
      <all-permissions/>
  </security>
  <resources>
       <j2se version="1.4.2" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="64m" />
       <jar href="http://your.webstart.server/yourapp/lib/yourApplication.jar"/>
       <jar href="http://your.webstart.server/yourapp/lib/some3rdPartyLibrary.jar"/>
  </resources>
  <resources os="Windows">
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/windows/j3daudio.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/windows/j3dcore.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/windows/j3dutils.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/windows/vecmath.jar"/>
    <nativelib href="http://your.webstart.server/yourapp/heartcad/lib/core/Java3D/jars/j3d/windows/j3dDLL.jar"/>
  </resources>
  <!-- Linux IBM J2RE 1.3.0 -->
  <resources os="Linux" arch="x86">
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3daudio.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3dcore.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3dutils.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/vecmath.jar"/>
    <nativelib href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3d.so.jar"/>
  </resources>
  <!-- Linux SUN JRE1.3.1 -->
  <resources os="Linux" arch="i386">
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3daudio.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3dcore.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3dutils.jar"/>
    <jar href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/vecmath.jar"/>
    <nativelib href="http://your.webstart.server/yourapp/lib/core/Java3D/jars/j3d/linux/i386/j3d.so.jar"/>
  </resources>
  <application-desc main-class="com.some.company.yourapp.YourApp"/>
</jnlp> And then the main() method:
     public static void main(String[] args) throws Exception {
          if(System.getProperty("javawebstart.version") != null) {
               // for Web Start it is necessary to "manually" load in native libs
               String os = System.getProperty("os.name");
               log.debug("loading " + os + " native libraries ..");
               if (os.startsWith("Windows")){
                    // order matters here!
                    // load those libs that are required by other libs first!
                    log.debug("j3daudio.dll .. ");
                    // drop ".dll" suffix here
                    System.loadLibrary("j3daudio");
                    log.debug("OK");
                    log.debug("J3D.dll .. ");
                    System.loadLibrary("J3D");
                    log.debug("OK");
               } else if (os.equals("Linux")){
                    log.debug("libj3daudio.so .. ");
                    // drop "lib" prefix and ".so" suffix
                    System.loadLibrary("j3daudio");
                    log.debug("OK");
                    log.debug("libJ3D.so .. ");
                    System.loadLibrary("J3D");
                    log.debug("OK");
               } else {
                    throw new Exception("OS '" + os + "' not yet supported.");
          // and then launch the app
          new MainFrame(new yourApp(), width, height);
     }

Similar Messages

  • Can't run application via Web Start 7 if there is query string in href

    Java Web Start 7 cannot run application if there is query string in href attribute in jnlp file.
    For example:
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp?query_string">
    </jnlp>
    There are no any errors. Web Start just does not run application.
    But this jnlp could be processed by Java Web Start 6 without any problems.
    Is this a bug in Java Web Start 7?
    Or using query string in href attribute is not correct by some reason?

    I use following example to test this problem - http://www.mkyong.com/java/java-web-start-jnlp-tutorial-unofficial-guide
    If you use default jnlp from this example - everything works ok.
    But if add any query string to href attribute then Web Start 7 cannot start application.
    For example:
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp?param=value">
    </jnlp>
    The problem is with Java Web Start 7 Update 7 (build 1.7.0_07-b11).
    WebStart 6 can start application using this modified jnlp without any problems.
    Edited by: vbez on Oct 11, 2012 2:57 AM
    Edited by: vbez on Oct 11, 2012 2:58 AM

  • Problem running app via web start shortcut icon

    Hi,
    I need to install my application using java web start. I have created the jnlp file and when I run the jnlp file by double clicking on it, my app is starting well. Shortcut and desktop icons are being created. But when I double click on the desktop icon, then app does not run at all. In the log file , I notice that it is referring to some other location rather than the cache location and says "File not found".
    Same way, when I use an html file to run the app, then my app does not run at all. That is, the html file displays a link, such that when I click on the link, the jnlp file is run. But app does not start. Log says it is referring to still another location and says "File not found". Can anyone help me out...
    Thanks in advance.

    Yes, this is with IE as the default browser. But, the FileNotFound Exception is not raised for the jnlp file. Instead FileNotFound Exception is raised for other files/folders used in my Application.
    JNLP file is present in the web start cache. Sorry for not telling this clearly in my first post....
    Actually what I need to do is to deploy Jetty server through web start. Jetty's "start.jar" has the main class and this class refers to the xml files and keystores in "etc" folder in the jetty home directory. As I need to transfer them through web start, I pack the "etc" folder into "etc.jar" and transfer it. When I run the JNLP file directly, jetty server is started. But, running the web start icon does not start the server.
    I get the following exception in the console...
    "java.io.FileNotFoundException:C:\Documents and Settings\..\Desktop\etc\jetty.xml(The system cannot find the path specified)
    Is there a way to embed Jetty server in web start....?

  • EXCEPTION_ACCESS_VIOLATION in Web Start

    Hi,
    I am using JDK 1.5. And there is an EXCEPTION_ACCESS_VIOLATION when I tried to launch a program via Web Start.
    The program just crash after I press some items.
    Do you have any idea ?
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d267ada, pid=3980, tid=576
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
    # Problematic frame:
    # C [fontmanager.dll+0x27ada]
    --------------- T H R E A D ---------------
    Current thread (0x0086e8a0): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=576]
    siginfo: ExceptionCode=0xc0000005, reading address 0x52f2db8e
    Registers:
    EAX=0x00017769, EBX=0x52efecb0, ECX=0x52efecbc, EDX=0x00008000
    ESP=0x4a38ec38, EBP=0x4a38ec44, ESI=0x00007d23, EDI=0x00000000
    EIP=0x6d267ada, EFLAGS=0x00010202
    Top of Stack: (sp=0x4a38ec38)
    0x4a38ec38: 4a38ee9c 52efecba 52efecb0 4a38ec78
    0x4a38ec48: 6d2680d2 6c61746e 52efecbc 00008000
    0x4a38ec58: 00000019 6d266076 6c61746e 6d269bad
    0x4a38ec68: 6c61746e 0086e960 43fb9b78 43fb9b78
    0x4a38ec78: 4a38eefc 6d26a14f 6c61746e 00000019
    0x4a38ec88: ffffffff 4a38ef14 0086e8a0 43fb9b78
    0x4a38ec98: 43fb9b78 00000000 0086e8a0 0084ab60
    0x4a38eca8: 42bea9a0 00000000 4a38ef0c 00000000
    Instructions: (pc=0x6d267ada)
    0x6d267aca: 8b c8 5a d3 e2 8b 4d 0c 2b f2 89 55 10 8d 04 76
    0x6d267ada: 0f b6 1c 41 8d 04 41 c1 e3 08 0f b6 48 01 03 cb
    Stack: [0x4a350000,0x4a390000), sp=0x4a38ec38, free space=251k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [fontmanager.dll+0x27ada]
    C [fontmanager.dll+0x280d2]
    C [fontmanager.dll+0x2a14f]
    j sun.font.SunLayoutEngine.nativeLayout(Lsun/font/Font2D;Lsun/font/FontStrike;[FII[CIIIIIIZLjava/awt/geom/Point2D$Float;Lsun/font/GlyphLayout$GVData;)V+0
    j sun.font.SunLayoutEngine.layout(Lsun/font/FontStrikeDesc;[FIILsun/font/TextRecord;ZLjava/awt/geom/Point2D$Float;Lsun/font/GlyphLayout$GVData;)V+70
    j sun.font.GlyphLayout$EngineRecord.layout()V+90
    j sun.font.GlyphLayout.layout(Ljava/awt/Font;Ljava/awt/font/FontRenderContext;[CIIILsun/font/StandardGlyphVector;)Lsun/font/StandardGlyphVector;+480
    j sun.font.ExtendedTextSourceLabel.createGV()Lsun/font/StandardGlyphVector;+70
    j sun.font.ExtendedTextSourceLabel.getGV()Lsun/font/StandardGlyphVector;+9
    j sun.font.ExtendedTextSourceLabel.createCharinfo()[F+1
    j sun.font.ExtendedTextSourceLabel.getCharinfo()[F+9
    j sun.font.ExtendedTextSourceLabel.getLineBreakIndex(IF)I+1
    j java.awt.font.TextMeasurer.calcLineBreak(IF)I+96
    j java.awt.font.TextMeasurer.getLineBreakIndex(IF)I+38
    j java.awt.font.LineBreakMeasurer.nextOffset(FIZ)I+44
    j java.awt.font.LineBreakMeasurer.nextLayout(FIZ)Ljava/awt/font/TextLayout;+15
    j java.awt.font.LineBreakMeasurer.nextLayout(F)Ljava/awt/font/TextLayout;+7
    j com.symantec.sef.management.ui.NavigatorPanel.formatTip(Ljava/lang/String;)Ljava/lang/String;+61
    j com.symantec.sef.management.ui.NavigatorPanel.getSectionDefinition(Lorg/w3c/dom/Element;)Lcom/symantec/sef/management/ui/NavigatorPanel$SectionDefinition;+294
    j com.symantec.sef.management.ui.NavigatorPanel.getSections(Lorg/w3c/dom/Node;)[Lcom/symantec/sef/management/ui/NavigatorPanel$SectionDefinition;+219
    j com.symantec.sef.management.ui.NavigatorPanel.walkXmlTree(Lorg/w3c/dom/Node;)V+24
    j com.symantec.sef.management.ui.NavigatorPanel.<init>(Lcom/symantec/sef/management/ui/NavigatorPanel$ContentProvider;Lcom/symantec/sef/management/ui/PrivilegeChecker;)V+79
    j com.symantec.sef.management.ui.AbstractConfigurationCBA.getUI()Ljavax/swing/JPanel;+88
    j com.symantec.sef.management.ui.UI.setUI(Lcom/symantec/ssmc/commoncontrols/IContentBuilder;)Z+136
    j com.symantec.ssmc.commoncontrols.CBANavigationTreeCtrl.treeElementClicked(Ljavax/swing/tree/DefaultMutableTreeNode;Z)V+55
    j com.symantec.ssmc.commoncontrols.CBANavigationTreeCtrl.valueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+24
    j javax.swing.JTree.fireValueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+35
    j javax.swing.JTree$TreeSelectionRedirector.valueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+17
    j javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+35
    j javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Ljava/util/Vector;Ljavax/swing/tree/TreePath;)V+84
    j javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths([Ljavax/swing/tree/TreePath;)V+454
    j javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Ljavax/swing/tree/TreePath;)V+23
    j javax.swing.JTree.setSelectionPath(Ljavax/swing/tree/TreePath;)V+5
    j javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Ljavax/swing/tree/TreePath;Ljava/awt/event/MouseEvent;)V+266
    j javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelectionImpl(Ljava/awt/event/MouseEvent;Ljavax/swing/tree/TreePath;)V+126
    j javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Ljava/awt/event/MouseEvent;)V+107
    j javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Ljava/awt/event/MouseEvent;)V+9
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+21
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+54
    j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
    j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477
    J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    J java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V
    j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+126
    j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
    J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
    J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    V [jvm.dll+0x845a9]
    V [jvm.dll+0xd9317]
    V [jvm.dll+0x8447a]
    V [jvm.dll+0x841d7]
    V [jvm.dll+0x9ed69]
    V [jvm.dll+0x109fe3]
    V [jvm.dll+0x109fb1]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb50b]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.font.SunLayoutEngine.nativeLayout(Lsun/font/Font2D;Lsun/font/FontStrike;[FII[CIIIIIIZLjava/awt/geom/Point2D$Float;Lsun/font/GlyphLayout$GVData;)V+0
    j sun.font.SunLayoutEngine.layout(Lsun/font/FontStrikeDesc;[FIILsun/font/TextRecord;ZLjava/awt/geom/Point2D$Float;Lsun/font/GlyphLayout$GVData;)V+70
    j sun.font.GlyphLayout$EngineRecord.layout()V+90
    j sun.font.GlyphLayout.layout(Ljava/awt/Font;Ljava/awt/font/FontRenderContext;[CIIILsun/font/StandardGlyphVector;)Lsun/font/StandardGlyphVector;+480
    j sun.font.ExtendedTextSourceLabel.createGV()Lsun/font/StandardGlyphVector;+70
    j sun.font.ExtendedTextSourceLabel.getGV()Lsun/font/StandardGlyphVector;+9
    j sun.font.ExtendedTextSourceLabel.createCharinfo()[F+1
    j sun.font.ExtendedTextSourceLabel.getCharinfo()[F+9
    j sun.font.ExtendedTextSourceLabel.getLineBreakIndex(IF)I+1
    j java.awt.font.TextMeasurer.calcLineBreak(IF)I+96
    j java.awt.font.TextMeasurer.getLineBreakIndex(IF)I+38
    j java.awt.font.LineBreakMeasurer.nextOffset(FIZ)I+44
    j java.awt.font.LineBreakMeasurer.nextLayout(FIZ)Ljava/awt/font/TextLayout;+15
    j java.awt.font.LineBreakMeasurer.nextLayout(F)Ljava/awt/font/TextLayout;+7
    j com.symantec.sef.management.ui.NavigatorPanel.formatTip(Ljava/lang/String;)Ljava/lang/String;+61
    j com.symantec.sef.management.ui.NavigatorPanel.getSectionDefinition(Lorg/w3c/dom/Element;)Lcom/symantec/sef/management/ui/NavigatorPanel$SectionDefinition;+294
    j com.symantec.sef.management.ui.NavigatorPanel.getSections(Lorg/w3c/dom/Node;)[Lcom/symantec/sef/management/ui/NavigatorPanel$SectionDefinition;+219
    j com.symantec.sef.management.ui.NavigatorPanel.walkXmlTree(Lorg/w3c/dom/Node;)V+24
    j com.symantec.sef.management.ui.NavigatorPanel.<init>(Lcom/symantec/sef/management/ui/NavigatorPanel$ContentProvider;Lcom/symantec/sef/management/ui/PrivilegeChecker;)V+79
    j com.symantec.sef.management.ui.AbstractConfigurationCBA.getUI()Ljavax/swing/JPanel;+88
    j com.symantec.sef.management.ui.UI.setUI(Lcom/symantec/ssmc/commoncontrols/IContentBuilder;)Z+136
    j com.symantec.ssmc.commoncontrols.CBANavigationTreeCtrl.treeElementClicked(Ljavax/swing/tree/DefaultMutableTreeNode;Z)V+55
    j com.symantec.ssmc.commoncontrols.CBANavigationTreeCtrl.valueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+24
    j javax.swing.JTree.fireValueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+35
    j javax.swing.JTree$TreeSelectionRedirector.valueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+17
    j javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Ljavax/swing/event/TreeSelectionEvent;)V+35
    j javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Ljava/util/Vector;Ljavax/swing/tree/TreePath;)V+84
    j javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths([Ljavax/swing/tree/TreePath;)V+454
    j javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Ljavax/swing/tree/TreePath;)V+23
    j javax.swing.JTree.setSelectionPath(Ljavax/swing/tree/TreePath;)V+5
    j javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Ljavax/swing/tree/TreePath;Ljava/awt/event/MouseEvent;)V+266
    j javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelectionImpl(Ljava/awt/event/MouseEvent;Ljavax/swing/tree/TreePath;)V+126
    j javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Ljava/awt/event/MouseEvent;)V+107
    j javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Ljava/awt/event/MouseEvent;)V+9
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+21
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.AWTEventMulticaster.mousePressed(Ljava/awt/event/MouseEvent;)V+8
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+54
    j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
    j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477
    J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    J java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V
    j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+126
    j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
    J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
    J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x52efae70 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=216]
    0x008a2170 JavaThread "Image Animator 2" daemon [_thread_blocked, id=2296]
    0x008f5300 JavaThread "StatusThread" [_thread_blocked, id=1740]
    0x008f5490 JavaThread "Thread-56" [_thread_in_vm, id=640]
    0x008e65a0 JavaThread "Timer-0" [_thread_blocked, id=2584]
    =>0x0086e8a0 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=576]
    0x0086edd0 JavaThread "AWT-Shutdown" [_thread_blocked, id=3672]
    0x00824e70 JavaThread "DestroyJavaVM" [_thread_blocked, id=672]
    0x00853bd0 JavaThread "TimerQueue" daemon [_thread_blocked, id=2356]
    0x0084b500 JavaThread "ConsoleWriterThread" daemon [_thread_blocked, id=2628]
    0x00842760 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2308]
    0x0083de70 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3460]
    0x0083bd30 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2536]
    0x008311d0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2800]
    0x008305e0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2220]
    0x0082f690 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2400]
    0x0082ebe0 JavaThread "Finalizer" daemon [_thread_blocked, id=2264]
    0x0082d8f0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2052]
    Other Threads:
    0x0082cbe0 VMThread [id=3212]
    0x00834580 WatcherThread [id=3288]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 18240K, used 13464K [0x02bd0000, 0x03f90000, 0x07a90000)
    eden space 16256K, 74% used [0x02bd0000, 0x037a51d8, 0x03bb0000)
    from space 1984K, 67% used [0x03bb0000, 0x03d010e0, 0x03da0000)
    to space 1984K, 0% used [0x03da0000, 0x03da0000, 0x03f90000)
    tenured generation total 241984K, used 32860K [0x07a90000, 0x166e0000, 0x42bd0000)
    the space 241984K, 13% used [0x07a90000, 0x09aa71d8, 0x09aa7200, 0x166e0000)
    compacting perm gen total 20480K, used 20423K [0x42bd0000, 0x43fd0000, 0x46bd0000)
    the space 20480K, 99% used [0x42bd0000, 0x43fc1c40, 0x43fc1e00, 0x43fd0000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040c000      C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe
    0x7c920000 - 0x7c9b5000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c91d000      C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e47000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e50000 - 0x77ee1000      C:\WINDOWS\system32\RPCRT4.dll
    0x77d10000 - 0x77d9e000      C:\WINDOWS\system32\USER32.dll
    0x77ef0000 - 0x77f37000      C:\WINDOWS\system32\GDI32.dll
    0x77be0000 - 0x77c38000      C:\WINDOWS\system32\MSVCRT.dll
    0x76300000 - 0x7631d000      C:\WINDOWS\system32\IMM32.DLL
    0x621f0000 - 0x621f9000      C:\WINDOWS\system32\LPK.DLL
    0x73fa0000 - 0x7400b000      C:\WINDOWS\system32\USP10.dll
    0x6d670000 - 0x6d804000      C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
    0x76b10000 - 0x76b3a000      C:\WINDOWS\system32\WINMM.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0_06\bin\hpi.dll
    0x76bc0000 - 0x76bcb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d640000 - 0x6d64c000      C:\Program Files\Java\jre1.5.0_06\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0_06\bin\java.dll
    0x6d660000 - 0x6d66f000      C:\Program Files\Java\jre1.5.0_06\bin\zip.dll
    0x6d000000 - 0x6d167000      C:\Program Files\Java\jre1.5.0_06\bin\awt.dll
    0x72f70000 - 0x72f96000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x76990000 - 0x76acd000      C:\WINDOWS\system32\ole32.dll
    0x5a410000 - 0x5a447000      C:\WINDOWS\system32\uxtheme.dll
    0x736d0000 - 0x73719000      C:\WINDOWS\system32\ddraw.dll
    0x73b30000 - 0x73b36000      C:\WINDOWS\system32\DCIMAN32.dll
    0x738b0000 - 0x73980000      C:\WINDOWS\system32\D3DIM700.DLL
    0x74680000 - 0x746cb000      C:\WINDOWS\system32\MSCTF.dll
    0x73640000 - 0x7366e000      C:\WINDOWS\system32\msctfime.ime
    0x6d1f0000 - 0x6d203000      C:\Program Files\Java\jre1.5.0_06\bin\deploy.dll
    0x76680000 - 0x76723000      C:\WINDOWS\system32\WININET.dll
    0x765e0000 - 0x76672000      C:\WINDOWS\system32\CRYPT32.dll
    0x76db0000 - 0x76dc2000      C:\WINDOWS\system32\MSASN1.dll
    0x770f0000 - 0x7717c000      C:\WINDOWS\system32\OLEAUT32.dll
    0x77f40000 - 0x77fb6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x75c60000 - 0x75cfc000      C:\WINDOWS\system32\urlmon.dll
    0x77bd0000 - 0x77bd8000      C:\WINDOWS\system32\VERSION.dll
    0x7d590000 - 0x7dd83000      C:\WINDOWS\system32\SHELL32.dll
    0x77180000 - 0x77282000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x5c820000 - 0x5c8b7000      C:\WINDOWS\system32\comctl32.dll
    0x6d5d0000 - 0x6d5ef000      C:\Program Files\Java\jre1.5.0_06\bin\RegUtils.dll
    0x49230000 - 0x494f6000      C:\WINDOWS\system32\msi.dll
    0x6d240000 - 0x6d27d000      C:\Program Files\Java\jre1.5.0_06\bin\fontmanager.dll
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_06\bin\net.dll
    0x71a10000 - 0x71a27000      C:\WINDOWS\system32\WS2_32.dll
    0x71a00000 - 0x71a08000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_06\bin\nio.dll
    0x77fc0000 - 0x77fd1000      C:\WINDOWS\system32\Secur32.dll
    0x76eb0000 - 0x76eec000      C:\WINDOWS\system32\RASAPI32.DLL
    0x76e60000 - 0x76e72000      C:\WINDOWS\system32\rasman.dll
    0x69a00000 - 0x69a54000      C:\WINDOWS\system32\NETAPI32.dll
    0x76e80000 - 0x76eaf000      C:\WINDOWS\system32\TAPI32.dll
    0x76e50000 - 0x76e5e000      C:\WINDOWS\system32\rtutils.dll
    0x77c40000 - 0x77c63000      C:\WINDOWS\system32\msv1_0.dll
    0x76d30000 - 0x76d48000      C:\WINDOWS\system32\iphlpapi.dll
    0x72240000 - 0x72245000      C:\WINDOWS\system32\sensapi.dll
    0x759d0000 - 0x75a7e000      C:\WINDOWS\system32\USERENV.dll
    0x49520000 - 0x49548000      C:\WINDOWS\system32\rsaenh.dll
    0x719b0000 - 0x719ee000      C:\WINDOWS\system32\mswsock.dll
    0x605b0000 - 0x60605000      C:\WINDOWS\system32\hnetcfg.dll
    0x719f0000 - 0x719f8000      C:\WINDOWS\System32\wshtcpip.dll
    0x76ef0000 - 0x76f17000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f80000 - 0x76f88000      C:\WINDOWS\System32\winrnr.dll
    0x76f30000 - 0x76f5c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76f90000 - 0x76f96000      C:\WINDOWS\system32\rasadhlp.dll
    0x71a30000 - 0x71a3b000      C:\WINDOWS\system32\wsock32.dll
    0x5d860000 - 0x5d86d000      C:\WINDOWS\system32\pstorec.dll
    0x76af0000 - 0x76b01000      C:\WINDOWS\system32\ATL.DLL
    0x6d3c0000 - 0x6d3df000      C:\Program Files\Java\jre1.5.0_06\bin\jpeg.dll
    VM Arguments:
    jvm_args: -Xms256m -Xmx1024m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_06\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_06\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_06\bin -Djnlpx.splashport=1803 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_06\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=256m,1024m
    java_command: com.sun.javaws.Main C:\DOCUME~1\NHsiao\LOCALS~1\Temp\javaws4
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\java\jdk1.5.0_04
    CLASSPATH=.;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
    PATH=C:\Program Files\Java\jre1.5.0_06\bin;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\java\j2sdk1.4.2_02\bin;C:\veritas\products\appsaver\collector\bin;C:\veritas\products\appsaver\forensics\bin;C:\Program Files\VERITAS\VERITAS Object Bus\bin;C:\Program Files\RSA Security\RSA SecurID Software Token\;C:\PROGRA~1\ATT\Graphviz\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Reflection\;;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\java\jdk1.5.0_04\bin;"C:\Program Files\Java\jre1.5.0_06\bin"
    USERNAME=NHsiao
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1046744k(370004k free), swap 2519784k(1552064k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0

    After looking at the threads it looks like the bug has been around since an earlier release of 1.3. Unfortunately weblogic does not support the latest jdk and looks like we are stuck with this problem (for now).
    At least I will have some info to pass up the food chain.
    Thanks again.

  • Can a Web Start application run on client without write permission?

    Hello,
    we have a customer who operates a large number of Windows clients with an installed Java applications on it. The installation can only be done by an administrator, because the users have only write permission on temp directories and are not allowed to install something on their own. This of course leads to long rollout phases of new software releases.
    That's why we thought about deploying the application via Web Start, but we don't have experience in that field yet. But we assume that this would be the best way to go, since porting it to a browser-based web application is not easy due to the rich client gui.
    So my question is - can Web Start operate in such a scenario, where there is only write permission on temp directories for the user?
    By operating I mean the deployment and starting of the application - the application itself does not have to write anything on disk.
    Thanks for any help,
    regards, Geziefer

    ..the users have only write permission on temp directories ..Can the location of the Java cache be set to those temp directories by the administrator?

  • RMI & Web Start Client (ClassNotFound)

    Hi,
    I've been using RMI with a client application and it works find but now I have tried to run the same application via web start I'm getting RMI issues. I've fixed all sorts of other issues but Im stuck on the RMI one. I get a ClassNotFound exception when Register.lookup() is called.
    The code in the client is :
    Registry registry = LocateRegistry.getRegistry("localhost", 1234);
    // lookup the factory
    universe = (IMyFactory) registry.lookup("rmi:///MyFactory");
    The exception is thrown on the lookup. It can't find IMyFactory_stub. If I put the following line in after the Register creation :
    register.list()
    and dump the contents it has one entry
    rmi:///MyFactory
    I take it this implies that the web start client has talked to the server to get hold of the classes that have been bound. This appears to match exactly what I am looking up. So its not getting the interface file ! Im know RMI expert to why would this be the case with Web Start but not standalone ?
    The MyFactory class is contained in a jar file declared in the jnlp file and available to the client. The IMyFactory and MyFactory_stub classes are in a jar file available to the server. MyFactory implements IMyFactory which is a Remote.
    Oh also the jnlp file has all permisions set.
    As I say it works fine as a stand alone client.
    Any idea's what this could be ? Some setting unique to web start, different format for the url required (I tried using Naming.lookup() but this failed also).
    The app seems to hang for a few seconds before the exceptions is thrown. If I give it a url to the wrong box it blows up str8 away.
    The exception is :
    java.rmi.UnmarshalException: error unmarshalling return; nested
    exception is:
    java.lang.ClassNotFoundException: com.me.MyFactory_Stub
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at com.me.getMyServer(getMyServer.java:116)
    at com.me.main(agentsupport.java:6825)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.me.MyFactory_Stub
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
    at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
    at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
    at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
    at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    ... 21 more
    Thanks for any help, I'm out of idea's and totally stuck.
    Steve

    Hi Kal,
    since we're currently evaluating the software and haven't acquired a license, we cannot contact support.
    I only need to know if this is a solved bug or not. Does it have to do with the classloading process (I cannot think of anything else)?
    Thank you again very very much!
    Cheers,
    Paul.

  • Very urgent  !! pls help!! web start for applet vs Japplet..

    this does not work with web start. but if i chnge it to Applet , it works fine..
    Why?
    public class NewJApplet extends javax.swing.JApplet {
       public void paint (java.awt.Graphics g)
         g.drawString ("Hello world!", 45, 30);
         System.out.println ("singhhhHello world!");
    }

    actually it does... there is option you may give in the jnlp that it's not application rather it's an applet. Though it's not highly recommended.
    BTW. i am having another problem .. if anyone know about it...
    In NetBeans IDE 5.5, i have enabled "java Web Start"
    but when ever i tried to run via web start it asks me "please select a main Class" alert.
    what is it.
    thnx

  • Problem with Using Spring IoC and Web Start

    Greetings Everyone,
    I have a small Swing app that runs using spring to load its dependencies. I can run it from a single signed jar file locally, and I setup my .jnlp file to try it with Web Start.
    Unfortunately, I get the following:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
         at java.lang.Class.checkMemberAccess(Class.java:2157)
         at java.lang.Class.getDeclaredMethods(Class.java:1790)
         at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:429)
         at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:412)
         at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:363)
         at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:745)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:448)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
         at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:597)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:366)
         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
         at org.chibgrant.main.MainPOE.main(MainPOE.java:31)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.javaws.Launcher.executeApplication(Launcher.java:1321)
         at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1267)
         at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066)
         at com.sun.javaws.Launcher.run(Launcher.java:116)
         at java.lang.Thread.run(Thread.java:619)
    I am running build 1.6.0_13-b03. Anyone run into this before?
    Thanks for any insights...!

    I suspect you may have solved this yourself by now, but in case not.
    I've recently created a desktop application that uses Spring and is launched via Java Web Start and I did have a problem getting it to launch via Web Start until I modified my code to ensure the classloader setup is done before any Spring methods are called.
    i.e.
        // This is needed for Java Web Start compatibility.
        UIManager.getLookAndFeelDefaults().put("ClassLoader", Loader.class.getClassLoader());In may application this code is invoked in the class that starts my application (Loader) before I load anything via Spring.
    Cheers,
    Stephen.

  • Mac OSX 10.6.2 Java 6 Web Start not always version checking on launch

    When launching a Swing app via Web Start on Snow Leopard, it will often fail to discover and download the new version. This feature works consistently with Java 6 on Linux and Windows PC's.
    The web-start app is accessed using an Application Bundle created with the Java Preferences app. If I clear the cache in Java Preferences, Web Start will nicely download the application and run it. However, after deploying a new version of the app, the Mac client will often run the cached version of the app without downloading the new version. Is anyone else experiencing this problem?

    Re: "Alternatively, if you don't want to do this, the only other option I am aware of to solve this problem is to buy software like Fusion or Parallels and install Leopard (10.5) as your OS and run MX 2004 within a virtual environment."
    Just so this is perfectly clear.....   NO CAN DO
    I have VMWare and Parallels on a Brand New MacBook Pro. It came with 10.5.11 and that is absolutely the OLDEST Mac OS I can install in a virtual environment. Believe me, I tried Tiger, Panther and Jaguar to no avail.
    If the Mac in question came loaded with Snow Leopard, it has a "Snow Leopard or better" firmware write on the logic board and it will not allow an older OS to be installed.... even in a virtual environment, unless there's a secret that nobody I've spoken to in support for both VM clients knows.

  • Question about using third party jar files in Java Web Start Environment

    Hi everybody, I got a very strange problem and still can't figer out how to solve it. Can anyone help to overcome this problem?? Thanks in advance.
    Question: I wrote a simple java swing application to connect to Oracle database. I packed whole my classes and a third party jar file(classes12.jar) to a new jar file named "IRMASSvrMgntGUI.jar" and then use command 'jarsigner' to signed IRMASSvrMgntGUI.jar. There is no problem when I execute 'java -jar IRMASSvrMgntGUI.jar' in the command line. But when I execute this application via Web Start Environment, an "java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    " error occured with the following detail log shown in Jave Web Start Console:
    =============================================================
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at DBConnection.getNewConnection(DBConnection.java:25)
         at IRMASSvrMgntGUI.actionPerformed(IRMASSvrMgntGUI.java:524)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    ==========================================================================
    contents of the manifest file I used to create this jar file are as follows
    ===================================
    Manifest-Version: 1.0
    Main-Class: IRMASSvrMgntGUI
    Class-Path: classes12.jar
    Created-By: 0.9a (itoh)
    ===================================
    and file structures in "IRMASSvrMgntGUI.jar" is
    ====================================
    META-INF/
    classes12.jar
    DBAuthenticateDialog.class
    DBConnection.class
    IRMASSvrMgntGUI.class
    ====================================

    If you directly include classes12.jar in IRMASSvrMgntGUI.jar, the classloader won't be able to find the classes inside classes12.jar. You should sign classes12.jar separately and include that in jnlp along with your application specific jar. When you're launching your app using "java -jar somefile.jar" then the classpath settings in manifest file are used, but that's not the case when you start using JWS since in this case the classpath is based only on the " <jar href=..." entries in jnlp.

  • Web start and multiple documents

    I am working on a rich client application that I want to deploy via web-start. There is a requirement for it to present the multiple-document-interface. Each time I double-click on a file, web-start kicks off the application in what appears to be a new JVM (at least, a new javaw.exe appears in the process list under windows-XP).
    Can anyone suggest a way for each instance after the first to detect the first instance, and to delegate the file-name to the first instance?
    I would prefer to keep the interaction between the instances as hidden and localized as possible. I have seen this done in C++ using CreateMutex and SendMessage. It looks like it may be possible to do this with RMI, by having each instance attempt to connect to a server, and on failure become a server, but that leads to race conditions, and may allow communications that cross to other machines. Named pipes would have worked, but Java does not support them. Sockets would work, but I would have to reserve some port number (which one would be safe on all machines?) and I don't know how to ensure that the socket would not be visible to other machines.
    Regards,
    Danny

    The JNLP file can add a file assciation for an app., the [FileOpen/SaveService example|http://pscode.org/jws/api.html#fs] declares file type text/sleepytime.
    As to making sure it is one VM, or one instance, look to the SingleInstanceService.

  • How to debug when Web Start keeps closing

    Hi,
    I'm trying to deploy a simple hello world application. I've
    created and signed the jar. When I run the application via
    Web Start, I get as far as a window asking if I trust the
    person, and I click yes. Then Java Web Start immediately
    closes with no useful information.
    Is there a log file somewhere? Is there a debug mode in
    which I can get more information about the problem?
    Ken Z.

    using at least javaws 1.5.0, go to the control panel and select advanced tab, trace on. Then create file . home directory called .javawsrc and add lines:
    TraceBasic=true
    TraceSecurity=true
    TraceTemp=true
    then run again.
    you shoul get trace files in the log dir <deployment.user.home>/log.
    /Andy

  • Deployment Issues - Web Start?

    Problem: I have inherited 3 year old .Net code that is a jumbled mess, developed by a group over seas. My employer wishes to provide a "web-based version" of the same product, due to the many issues that the users of the application have in installing our software (primarily the fact that the user has to be a local administrator and install a windows service). Briefly, the software is used to upload / download data and recordings from power quality devices, view graphical representations of the data and provide in-depth analysis of said data. Devices can be connected via ethernet, usb, serial, bluetooth or wifi. The application works fine as it is, however, because the developers bid on the project based on only one page of specs, there are ridiculously many layers of completely unnecessary abstraction (in some cases 4+ layers ... the developers themselves knew it was bad after they started full-fledged development, as evidenced by comments such as "//too many layers of abstraction here???"). Scarier still is that the original developers are no longer working on the project and the new group knows very little about the code base - and it's been a nightmare bringing them up to speed. We currently have a 1/3 completed web application that replicates much of the functionality of our desktop version. However ... the issue is the following: our users are going to have to stream 2GB of data to our servers, just to be able to see a simple graph. That could take hours ... days in some instances. Obviously, this isn't going to work. So I've been spending the past week and a half refactoring this code, only to realize that it's beyond repair. It's not worth fixing ... it just needs to be redone. I've been given the yellow light. I've researched a bunch of different technologies and have settled on Java Web Start. (The current version of the software is over 50 MB, but that's due to an enormously heavy dependence on 3rd party UI, graphics and data processing libraries (I counted over 70 dlls)). After reviewing the functionality, I am 100% certain that I can shrink that by several MB - making it a worthy candidate for Web Start.
    Here's the thing, though. I don't know of anyone who deploys their commercial applications via Web Start. I've seen it used all over the place on intranets and the like, but having actually deployed a commercial application with the technology ... ????
    So here is my question: is this wise? I mean, is this a viable choice? Anyone ever done anything like this? There will be some pretty heavy use of JNI ... while the simple tests I've used seem to work fine - has anyone ever tried JNI via WS for anything non-trivial?
    Thanks in advance.

    baftos wrote:
    Since you talk about DLL's and JNI, I would take a look at the Microsoft 'click once' technology.
    It is supposed to be just like Java WebStart. I have no experience with it, I only know it exists.Yes, I've already looked at it - it's far more restrictive than Web Start.
    Also, the goal is to also open the software up to multiple platforms, as we have many customers using Linux and Solaris. Not about to try Mono ......
    (Side note: while there are currently dozens of dlls, there will only - ideally - be one .dll / .so)

  • Access local disk via Java Web Start??

    HI all ,
    I had saw the JWS document.
    It indicate we can't access local disk via JWS in that Security.
    If I need to access local disk by command, does anyone have better suggestion.
    And can I run *.bat via Java Web Start?
    Thanks very much for your help.
    Morris

    I do the both thing but still don't access to Local disk.
    I just write a simple test class within extend another that create a file (and of course sign it)but still can't create a file Local disk. this MAKE ME MAD and LOOSE MY JOB .
    here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Pensionsrechner -->
    <jnlp
    spec="1.0+"
    codebase="file:///d:/"
    href="test.jnlp">
    <information>
    <title>Me</title>
    <vendor>myself</vendor>
    <homepage href="http://www.me.com"/>
    <description> test test test</description>
    <description kind="short">Test creatin of log file on client </description>
    </information>
    <offline-allowed/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4"/>
    <jar href="test2.jar"/>
    </resources>
    <application-desc main-class="secMan.Test"/>
    </jnlp>

  • Error executing Webservice for Process Start via Web Dynpro

    Hi Community,
    I have a strange issue when executing a webservice that starts a process using web Dynpro. I have configured, the Service Group, the Communication profile.
    When I try to execute the Service via Web Dynpro, I get the following exception which is in my opinion fully missleading and does not make sense to me. As the Authentication Profile and the Communication profile allow the same Authentication Methods.
    com.sap.esi.esp.lib.mm.config.exceptions.TechnicalException: Failed to create Logical Port for Service Reference with id [YourID here].
    Reason for the failure is that no one of the following Authentication Methods [None], [SAP Logon Ticket], or [SAML Assertion] is allowed in the related Communication Profile.
    Such an Authentication Method is needed as the Authenticaton Profile is [businessOrTechnicalUser] and no User Account is assigned, so the Authenticaton Profile is considered to be noAuthentication or businessUser.
    Related Communication Profile is [SAP_DEFAULT_PROFILE 1] and it allows Authentication Method(s) [User Name/Password (Basic), X.509 Client Certificate, SAP Logon Ticket, SAML Assertion, X.509 Certificate Doc.Auth., User Name/Password Doc.Auth.]
    Thanks for your support.
    Best Regards Nicolas

    Hi Nicolas,
    make sure you have
    - assigned a communication profile (with no- or basic authentication) to the provided service
    - created a provider system with a similar profile
    - assigned the provider system to the (consumer) service group
    For a full guide on service configuration please check this article:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40dabb46-dd66-2b10-1a9a-81aa620098b3
    Best Regards,
    Christian

Maybe you are looking for

  • Macbook to HDMI TV

    I have a MacBook 13" Intel. I want to connect it to a 37 inch HDMI LCD so as to use Front Row on the bigger screen. What cable type connectors do i need. Thanks

  • Cross-Company consignment to customer

    I'm an MM guy but this has landed on my plate. Requirement: Sales Org A (Company Code A, Plant A not-HUM managed) is the customer facing one.  They receive the consignment request. The stock is held at Plant B (Plant B is HUM managed, 'owned' by Comp

  • Text in Billing document should determine into output

    Dear Friends, Help me to determine billing document item text into printout as a line item description. My Scenario is: Generally in printout item description is determined.But i need to determine the billing item text as a item description. Thanks i

  • TADM51_70  Certification Exam

    HI, Please let me know if anyone knows the Passing Marks/Percentages in the Associate Level TADM51_70 Certification exam. Thanks, Chandresh Pranami

  • Intel IMac sometimes don't launch Audio Instrum

    Hi! Recently I purchased a Intel IMac 1.8 and an M Audio Midi One interface. As it's a very new machine, I decided to install the OS using the DVDs that came with the IMac, and then search for the upgrades at apple. Well, after installing everything,