Java Webstart in Windows 7

I have a Java Webstart application running on a Windows 7 Laptop. An Apache Tomcat webserver is also installed on this laptop so everything is self contained. When the laptop is not connected to a network and I start the application, Webstart gives me two instances of the application. When the laptop is connected to a network, I get one instance.
I also have an identical installation on a Windows Vista PC. Irrespective of whether or not this PC is connected to a network, I always get one instance of the application when I start it.
I would like to hear from anyone who has noticed similar behaviour and whether they have an explanation and whether they can advise if this is a 'bug' or a 'feature'.

Thanks a lot for your reply.
but no luck. still nothing happens.... javaws just dies without logging anything?
maybe its a security problem?
here is the system event log again:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-10-01T18:41:12.000000000Z" />
<EventRecordID>3719</EventRecordID>
<Channel>Application</Channel>
<Computer>XXXXXX</Computer>
<Security />
</System>
- <EventData>
<Data>javaws.exe</Data>
<Data>10.7.2.10</Data>
<Data>503d8a47</Data>
<Data>javaws.exe</Data>
<Data>10.7.2.10</Data>
<Data>503d8a47</Data>
<Data>c0000417</Data>
<Data>00011d9c</Data>
<Data>16c0</Data>
<Data>01cda004542d62eb</Data>
<Data>C:\Program Files (x86)\Java\jre7\bin\javaws.exe</Data>
<Data>C:\Program Files (x86)\Java\jre7\bin\javaws.exe</Data>
<Data>92310d7c-0bf7-11e2-bd20-6cf049e5f1f7</Data>
</EventData>
</Event>
Edited by: 962394 on 01.10.2012 11:44

Similar Messages

  • PI 7.1 ESR and Java Webstart very slow

    Hi,
    I have been using the PI ESR and IB on the snow leapord OS with Mozilla and Safari browsers. The java webstart seems to be very slow  and working on the ESR objects is sometimes a pain as it takes long time to save , activate or change and sometimes I end up java heap space issues although we are running at a 2 gig heap size. Is it only me or is anyone else facing the same issue?
    Is it time to go back to good old windows XP? or can this be fixed in Mac ...I love my Mac for other reasons though...:)
    Teresa

    Hi,
    >>>serverXXXPI71
    add this server info with related IP address into your hosts file
    and it will work
    Regards,
    Michal Krawczyk

  • Java 6 Update 12 64bit Java Webstart documentation

    I notice that 64bit 6 Update 12 comes with 64bit version of Java Webstart - I am just wondering whether there are any documentation on how 64bit Java Webstart works? For example:
    1) By default it will use the 64bit JRE to launch an application. What if an JNLP embedded some 32bit JNI DLLs that requires the use of 32bit JRE?
    2) How can an app specify larger heap if it runs on 64bit host, but less on a 32bit host?
    3) Is there any new extensions to JNLP to support 64bit Java?
    Thanks.

    1.) The initial release of the 64 bit version of javaws will work only with 64 bit JRe's. There is no support yet for mixing.
    2.) You can specify different dlls for use with 64 bit and 32 architectures just as you can with operating systems as follows:
    <resources>
    <java version="1.6+"/>
    <jar href="myapp.jar" main="true"/>
    <resources os="Windows" arch="i586">
    <nativelib href="mydll32.jar"/>
    </resources>
    <resources os="Windows" arch="amd64">
    <nativelib href="mydll64.jar"/>
    </resources>
    </resources>
    3.) There are no new JNLP extensions.
    /Andy

  • Java WebStart and Mac OS X 10.8

    I'm a bit afraid that Java WebStart applications are encountering a problem with the latest OS X release because of the Gatekeeper settings preventing Java WebStart applications from running. Is it really true that if an application is not signed with an apple developer id that it will no longer be allowed to start unless changes are made to the Gatekeeper settings?
    https://blogs.oracle.com/talkingjavadeployment/entry/java_applications_and_gatekeeper
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html#gatekeeper
    If this is the case then of course my question would be how can I additionally sign my webstart application built with maven on windows with a free apple developer id?

    doing a test app where you replace the .png with a .jpg might be a good idea. If you do not have a "test app", you probably should for JWS. It does not have to do much.

  • Strange when using BouncyCastle in Java WebStart

    I write a Java Application which can save a PKCS#12 Keystore to a file.
    The application run well in native mode. But when I use it in
    Java WebStart, a strange error jumped out, and I don't know why?
    Here is the Error message:
    java.io.IOException: exception encrypting data - java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
         at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.wrapKey(JDKPKCS12KeyStore.java:564)
         at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineStore(JDKPKCS12KeyStore.java:1026)
         at java.security.KeyStore.store(Unknown Source)
         at com.wellsoon.security.frameMain.SaveKeystoreAs(frameMain.java:270)
         at com.wellsoon.security.frameMain.btnSaveKeystore_actionPerformed(frameMain.java:508)
         at com.wellsoon.security.frameMain_btnSaveKeystore_actionAdapter.actionPerformed(frameMain.java:628)
         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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.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)
    Here is my JNLP file:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://192.168.1.76:8080/genKeyCSR" href="genKeystore.jnlp">
    <information>
    <title>genKeystore</title>
    <vendor>genKeystore</vendor>
    <homepage href="genKeystore.html" />
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3+" />
    <jar href="genKeystore.jar" />
    <jar href="bcprov-jdk14-120.jar" />
    </resources>
    <application-desc main-class="com.wellsoon.security.genKeystoreApp" />
    </jnlp>
    All the jar packages are signed by my key.
    The JKS Keystore can be saved without any errors.
    Anybody know the true reason?
    Thanks.

    I have done that and the result is unchanged.
    I have registed Security Provider in my code, so I needn't to
    write security.provider.6=org.bouncycastle.***.** in java.security.
    You know, the application can execute well in native mode, the
    error only happened when the app is running from Java Webstart.

  • Error with Java WebStart Signed Jars on 1.6.0_19's new Mixed  Code

    All,
    First, we have a valid code signing certificate/keystore from Thawte that works for signing webstart jars as of update 18. For some reason, if you run our webstart application on update 19 JRE, the runtime believes that some of the jars are not signed and some are. Even though we create and sign the jars in the exact same way and after inspecting the jar the JRE believes are not signed they have the necessary signing entries/files in the manifest folder. Not sure why the signing process would work for some of our jars and not for others. There is nothing really all that different.
    So, because the JRE believes some of the jars are not signed the new security warning "...contains both signed and unsigned code." pops up ( [Error Description|http://java.com/en/download/help/error_mixedcode.xml] ). If I press yes, then I get the following exception.
    java.lang.SecurityException: trusted loader attempted to load sandboxed resource from https://path-to-our.jar
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at main.JwsMain.main(JwsMain.java:32)
         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.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)If I press "no" I get the following exception (I get this exception if I try to run our WebStart application with no signed jars as well, no warnings about missing certs, just straight to error)
    java.lang.NullPointerException
         at com.sun.deploy.cache.CachedJarFile.findMatchingSignerIndices(Unknown Source)
         at com.sun.deploy.cache.CachedJarFile.entryNames(Unknown Source)
         at com.sun.deploy.cache.DeployCacheJarAccessImpl.entryNames(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler.assertTrust(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler.access$700(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at main.JwsMain.main(JwsMain.java:32)
         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.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Does anyone know why this would be happening? It only occurs with the new update. We use the same keystore and process for signing all of our jars so it really doesn't make since why some of them work and some of them don't. Also, our JNLP is correct or it wouldn't work in update 18.
    Edit: We've tried it on Windows XP SP3 and compiled the code using update 18 and used jarsigner both from 18 and 19 with same results.
    Edited by: chenthor on Apr 1, 2010 8:44 AM
    Edited by: chenthor on Apr 1, 2010 8:51 AM

    Hi All,
    So we've been battling this bug for a year or so now, and I've come up with a solution to the webstart bugs
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6967414
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    (see the bugs for more details)
    From what we can tell the bug stems from the way that the jar signers information is "cached" by webstart.
    When a jar is loaded by webstart, it is represented by a CachedJarFile instance. When loading and using classes the signature for the jar is verified. The signers used is the one that is stored in the CachedJarFile instances. These "signers" are stored as SoftReferences. SoftReferences are like WeakReferences, except that they only become eligible for garbage collection when there is a small amount of available heaps space remaining and that the object is only softly reachable. (That's a pretty crude description, but it will do for now)
    So what we found was happening is that when the JVM reached a certain heap size threshold and needed to allocate more heap, that these soft references (and hence the signers information) werebeing garbage collected. if you attempt to load a class after this you get the security error.
    So I came up with a hack to work around this. At application startup, iterate through all of the CachedJarFile objects on the classpath and create a hard reference to each of the signers info by putting them in a static list somewhere. From our tests this seems to work. (though with the intermittent nature of the problem, it has been hard to prove conclusively, though we've had some success repro-ing the issue, by reducing the intial heap size and using VisualVM to watch for heap expansions and forcing gc's)
    Below is the code for the hack, to run it just call JarSignersHardLinker.go() and it will do some sanity checks (running on webstart on java 1.6 update 19 or higher) before spawning a new thread to create hard refs for all signers info for all jars on the classpath.
    import java.io.IOException;
    import java.lang.ref.SoftReference;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.jar.JarFile;
    * A utility class for working around the java webstart jar signing/security bug
    * see http://bugs.sun.com/view_bug.do?bug_id=6967414 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    * @author Scott Chan
    public class JarSignersHardLinker {
        private static final String JRE_1_6_0 = "1.6.0_";
         * the 1.6.0 update where this problem first occurred
        private static final int PROBLEM_JRE_UPDATE = 19;
        public static final List sm_hardRefs = new ArrayList();
        protected static void makeHardSignersRef(JarFile jar) throws java.io.IOException {
            System.out.println("Making hard refs for: " + jar );
            if(jar != null && jar.getClass().getName().equals("com.sun.deploy.cache.CachedJarFile")) {
                 //lets attempt to get at the each of the soft links.
                 //first neet to call the relevant no-arg method to ensure that the soft ref is populated
                 //then we access the private member, resolve the softlink and throw it in a static list.
                callNoArgMethod("getSigners", jar);
                makeHardLink("signersRef", jar);
                callNoArgMethod("getSignerMap", jar);
                makeHardLink("signerMapRef", jar);
    //            callNoArgMethod("getCodeSources", jar);
    //            makeHardLink("codeSourcesRef", jar);
                callNoArgMethod("getCodeSourceCache", jar);
                makeHardLink("codeSourceCacheRef", jar);
         * if the specified field for the given instance is a Softreference
         * That soft reference is resolved and the returned ref is stored in a static list,
         * making it a hard link that should never be garbage collected
         * @param fieldName
         * @param instance
        private static void makeHardLink(String fieldName, Object instance) {
            System.out.println("attempting hard ref to " + instance.getClass().getName() + "." + fieldName);
            try {
                Field signersRef = instance.getClass().getDeclaredField(fieldName);
                signersRef.setAccessible(true);
                Object o = signersRef.get(instance);
                if(o instanceof SoftReference) {
                    SoftReference r = (SoftReference) o;
                    Object o2 = r.get();
                    sm_hardRefs.add(o2);
                } else {
                    System.out.println("noooo!");
            } catch (NoSuchFieldException e) {
                e.printStackTrace();
                return;
            } catch (IllegalAccessException e) {
                e.printStackTrace();
         * Call the given no-arg method on the given instance
         * @param methodName
         * @param instance
        private static void callNoArgMethod(String methodName, Object instance) {
            System.out.println("calling noarg method hard ref to " + instance.getClass().getName() + "." + methodName + "()");
            try {
                Method m = instance.getClass().getDeclaredMethod(methodName);
                m.setAccessible(true);
                m.invoke(instance);
            } catch (SecurityException e1) {
                e1.printStackTrace();
            } catch (NoSuchMethodException e1) {
                e1.printStackTrace();
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
            } catch (IllegalAccessException e) {
                e.printStackTrace();
            } catch (InvocationTargetException e) {
                e.printStackTrace();
         * is the preloader enabled. ie: will the preloader run in the current environment
         * @return
        public static boolean isHardLinkerEnabled() {
             boolean isHardLinkerDisabled = false;  //change this to use whatever mechanism you use to enable or disable the preloader
            return !isHardLinkerDisabled && isRunningOnJre1_6_0_19OrHigher() && isRunningOnWebstart();
         * is the application currently running on webstart
         * detect the presence of a JNLPclassloader
         * @return
        public static boolean isRunningOnWebstart() {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            while(cl != null) {
                if(cl.getClass().getName().equals("com.sun.jnlp.JNLPClassLoader")) {
                    return true;
                cl = cl.getParent();
            return false;
         * Is the JRE 1.6.0_19 or higher?
         * @return
        public static boolean isRunningOnJre1_6_0_19OrHigher() {
            String javaVersion = System.getProperty("java.version");
            if(javaVersion.startsWith(JRE_1_6_0)) {
                //then lets figure out what update we are on
                String updateStr = javaVersion.substring(JRE_1_6_0.length());
                try {
                    return Integer.parseInt(updateStr) >= PROBLEM_JRE_UPDATE;
                } catch (NumberFormatException e) {
                    //then unable to determine updatedate level
                    return false;
            //all other cases
            return false;
          * get all the JarFile objects for all of the jars in the classpath
          * @return
         public static Set<JarFile> getAllJarsFilesInClassPath() {
              Set<JarFile> jars = new LinkedHashSet<JarFile> ();
             for (URL url : getAllJarUrls()) {
                 try {
                     jars.add(getJarFile(url));
                 } catch(IOException e) {
                      System.out.println("unable to retrieve jar at URL: " + url);
             return jars;
         * Returns set of URLS for the jars in the classpath.
         * URLS will have the protocol of jar eg: jar:http://HOST/PATH/JARNAME.jar!/META-INF/MANIFEST.MF
        static Set<URL> getAllJarUrls() {
            try {
                Set<URL> urls = new LinkedHashSet<URL>();
                Enumeration<URL> mfUrls = Thread.currentThread().getContextClassLoader().getResources("META-INF/MANIFEST.MF");
                while(mfUrls.hasMoreElements()) {
                    URL jarUrl = mfUrls.nextElement();
    //                System.out.println(jarUrl);
                    if(!jarUrl.getProtocol().equals("jar")) continue;
                    urls.add(jarUrl);
                return urls;
            } catch(IOException e) {
                throw new RuntimeException(e);
         * get the jarFile object for the given url
         * @param jarUrl
         * @return
         * @throws IOException
        public static JarFile getJarFile(URL jarUrl) throws IOException {
            URLConnection urlConnnection = jarUrl.openConnection();
            if(urlConnnection instanceof JarURLConnection) {
                // Using a JarURLConnection will load the JAR from the cache when using Webstart 1.6
                // In Webstart 1.5, the URL will point to the cached JAR on the local filesystem
                JarURLConnection jcon = (JarURLConnection) urlConnnection;
                return jcon.getJarFile();
            } else {
                throw new AssertionError("Expected JarURLConnection");
         * Spawn a new thread to run through each jar in the classpath and create a hardlink
         * to the jars softly referenced signers infomation.
        public static void go() {
            if(!isHardLinkerEnabled()) {
                return;
            System.out.println("Starting Resource Preloader Hardlinker");
            Thread t = new Thread(new Runnable() {
                public void run() {
                    try {
                        Set<JarFile> jars = getAllJarsFilesInClassPath();
                        for (JarFile jar : jars) {
                            makeHardSignersRef(jar);
                    } catch (Exception e) {
                        System.out.println("Problem preloading resources");
                        e.printStackTrace();
                    } catch (Error e) {
                         System.out.println("Error preloading resources");
                         e.printStackTrace();
            t.start();
    }

  • Get error when lauching java webstart.

    Hi all,
    I just use the java webstart framework of Eclipse 3.1. I successfully launch the sample rcp but fail to lauch the real rcp product after successfully downloading all the jar and even popup the sign security window. I check the log, here are the error msg:
    !ENTRY org.eclipse.update.configurator 2005-10-19 21:16:48.49
    !MESSAGE c:\Documents and Settings\Ryan\Application Data\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P9081\DM.DyWebPortlet\DMproduct\plugins is not a valid plugins directory.
    Actually, I use portlet as the web interface. I think that will not be the problem as I successfully lauch the sample through portal.
    I even take a look on the cache of the javaws, the structure of those two is the same...
    could anyone give me some suggestions? thank you very much!

    A NoClassDefFoundError is thrown not when a class is missing, but rather when a class in the hierachy is not available (e.g. Class B extens Class A; B is available but A is not).
    I would expect that the most likely cause of this is Fedora Core 4 using gnu classpath, which is an open source implmentation of the Java runtime libraries.
    We've not certified using gnu classpath at all; I would suggest as an initial test to download Sun's JRE for Linux from java.sun.com, and re-try launching the workbench
    Regards,
    Dermot.

  • Automatic detection of installed version of Java WebStart

    Hi,
    1) In my html file I detect if Java webStart is installed on the client machine
    2) Is there a way to determine which version of Java webstart is installed?
    eg: Let's say the client machine has Java WebStart 1.0.1.01 installed and Java webStart 1.0.2.01 is available and supported, is there a way to prompt the client to upgarde to the latest version of WebStart.
    Is there a JavaScript or VBScript to detect installed version of Java WebStart?
    Thanks

    here is the detecting...
    <SCRIPT LANGUAGE="JavaScript">
    var javawsInstalled = 0;
    var javaws12Installed = 0;
    var javaws142Installed=0;
    isIE = "false";
    if (navigator.mimeTypes && navigator.mimeTypes.length) {
    x = navigator.mimeTypes['application/x-java-jnlp-file'];
    if (x) {
    javawsInstalled = 1;
    javaws12Installed=1;
    javaws142Installed=1;
    } else {
    isIE = "true";
    </SCRIPT>
    <SCRIPT LANGUAGE="VBScript">
    on error resume next
    If isIE = "true" Then
    If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then
    javawsInstalled = 0
    Else
    javawsInstalled = 1
    End If
    If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
    javaws142Installed = 0
    Else
    javaws142Installed = 1
    End If
    End If
    </SCRIPT>
    and in the next page this is autdownload (for IE only)
    <OBJECT CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab"
    CLASSID="clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA" HEIGHT="0" WIDTH="0">
    <PARAM NAME="app" VALUE="/theapp.jnlp">
    <PARAM NAME="back" VALUE="true">
    <!-- Alternate HTML for browsers which cannot instantiate the object -->
    <br>
    <img src="get_java_blue-button.gif" width="88" height="31" border="0">
    </OBJECT>

  • Problem using Java Webstart to kick off CORBA Client

    Dear all,
    I am currently having a problem in using the Java Webstart to kick off
    the CORBA Client, I set up the JNLP file jvm properties as following:
    <resources>
    <j2se version="1.4*" java-vm-args="-Xms64m -Xmx256m -verbose -esa
    -Xnoclassgc -client -Dswing.useSystemFontSettings=false ">
         <resources>
         <property name="vbroker.orb.initRef"
    value="NameService=corbaloc::10.35.55.82:20005/NameService"/>
    </resources>
    </j2se>
    </resources>
    The problem I have is that when the webstart starting the client, the
    client just simply dies during the startup and I find the log message
    following:
    org.omg.CORBA.ORBPackage.InvalidName
         at com.inprise.vbroker.orb.ORB.resolve_initial_references(ORB.java:943)
    So it is showing that there is problem with the vbroker.orb.initRef
    setting, know that if I don't use the webstart to start the client and
    simply use the windows batch file, using the jvm properties as:
    java -Dvbroker.orb.initRef=NameService=corbaloc::10.31.51.80:20001/NameService
    It would work perfectly.
    Could you tell if I miss anything when configuing the webstart jnlp
    file on this regard? Currently, I think that the only way I can set
    the JVM properties in the JNLP file is to use its properties tag to
    set the system properties for the application.
    Thanks heaps in advance for any help you can give here !!!
    Victor

    Hi, Andre,
    No, I have tried both of your suggestion and there was no joy. I still have the following error and the client jvm just crashes during starting up:
    org.omg.CORBA.ORBPackage.InvalidName
         at com.inprise.vbroker.orb.ORB.resolve_initial_references(ORB.java:943)
    I believe it is still related to the jvm properties:
    <property name="vbroker.orb.initRef" value="NameService=corbaloc::10.35.55.82:20005/NameService"/>
    And know that when I used "-Dvbroker.orb.initRef=NameService=corbaloc::10.35.55.82:20005/NameService" in the windows batch file, the client runs ok.
    Is this indicating that there is the limitation of using the webstart to invoke CORBA client?
    Any further help would be very appreciated!
    Victor

  • JAVA Webstart preferences panel doesn't show

    Hello,
    I am running on Windows 2000 and I have installed JAVA Webstart including JRE 1.3.1_01. After the installation I have added 'javaws.cfg.proxy.setting=NONE' into my javaws.cfg file, which enabled me to finally start the JAVA Webstart application manager. But- I can't get the preferences panel to show up? When I click on the preferences- tab basically nothing happens!
    I have already tried to deinstall WebStart and install it again, but this didn't solve the problem. Is anybody out there, who had this problem as well and knows how to solve it?

    Hello,
    I have now been able to add an entry to the 'javaws.cfg' files (javaws.cfg.showConsole=true), which now brings up the JAVA Console. When I now press the 'preferences' options to bring up the JAVAWS preferences panel, I get the following errors displayed:
    java.lang.NullPointerException
    at com.sun.javaws.proxy.WinInternetProxy.getNSVersion(Unknown Source)
    at com.sun.javaws.proxy.WinInternetProxy.getBrowserInfo(Unknown Source)
    at com.sun.javaws.ui.prefs.GeneralPanel.<init>(Unknown Source)
    at com.sun.javaws.ui.prefs.WinSubcontrollerCreator.getSubcontroller(Unknown Source)
    at com.sun.javaws.ui.prefs.PrefsPanel.createSubcontroller(Unknown Source)
    at com.sun.javaws.ui.prefs.PrefsPanel.access$0(Unknown Source)
    at com.sun.javaws.ui.prefs.PrefsPanel$1.createSubcontroller(Unknown Source)
    at com.sun.javaws.ui.general.AbstractController.setActiveSubcontrollerIndex(Unknown Source)
    at com.sun.javaws.ui.prefs.PrefsPanel.setSelectedTab(Unknown Source)
    at com.sun.javaws.ui.prefs.PrefsPanel.<init>(Unknown Source)
    at com.sun.javaws.ui.player.Player$4.actionPerformed(Unknown Source)
    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$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.run(Unknown Source)
    Is there any way to get around this?
    Might it have something to do, that I am running on Windows Internet Explorer V.6?
    Please, help me!
    THANKS!

  • Java installer in Windows Vista: error 1721

    Hi,
    I cant install java SE in Windows Vista. I get always this error:
    error 1721. There is a probleme with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.
    Anyone knows how I can solve it? I tryed with other java versions but I get the same error.
    Thanks in advance.

    If all else fails, your Vista could just be screwy.
    If you're willing to go that far, and you've exhausted all other options, you could try reformatting and reinstalling Vista. (Or even XP, since it's way more stable. :D)
    At any rate, this doesn't seem to be the file's problem, as plenty of people have gotten it working.
    Have you installed any ... "distasteful" software on your computer, or tweaked stuff like a hardcore techie? Because it's quite easy to screw with Windows. :)

  • How do i monitor performance in the system of a Java program in Windows XP?

    I want to record the CPU usage and Memory usage on an hourly basis programatically, for an already running java class in Windows XP environment for the purpose of testing the Java class. The recording has to be done independent of the java class.By Cpu usage and Memory usage , i need to know how much of the computer's memory and CPU has been used by the java class.
    I tried the HPROF tool available with J2SE 5.0, but it gives the details of each of the functions' usage in the program's allocated space in memory. moreover, it is not independent of the execution of the class.
    The other option is to make use of the Performance tool available in Windows Xp->Administrative tools. This is a complex procedure, and i am not sure of how to proceed in this direction.

    You can use the windows performance monitor (perfmon.exe / perfmon.msc). I don't know wther it is also included in the XP Home Edition. But this is the tool you are looking for. It can display the information in realtime but also can write to a protocoll.
    Here's a shor description of what to do (i have a german windows so i'm more or less guessing the english terms)
    - Start perfmon.msc
    - In the tree on the you can see "systemonitor" (the realtime display) and "performance protocolls and warnings"
    - open "performance protocalls and warnings", the first sub element should be something like"performance protocalls" or "performance indicator"
    - open the context menu for it and create a new protocoll settings.
    - add the information to it you are interested in and make other changes if you want
    - start the new configuration
    once you have the information you can display it it in the systemmonitor by selecting "display information from protocal" from the toolbar
    It will take some time till you know what you are doing (and most of the information the performance monitor is useless to 99% of the people). But its a quite usfull tool once you know how to use it

  • How to start java.exe from a java program in windows ?

    Hi,
    I did like to know, if its possible to run java.exe from a java program on windows ? The java.exe should be visible from checking the processes that are currently running using the Task Manager on windows.

    Runtime.getRuntime().exec("java Sample");

  • Jar files download problems in Java Webstart with JRE 1.6

    We have encountered a few problems in Java Webstart with JRE 1.6
    In JRE 1.5, the jar files are getting downloaded onto the client
    machine with it's original names.
    Example :
    Server File Name : acm.jar
    Client File Name : RMacm.jar
    But in JRE 1.6, the jar files are getting downloaded with improper file names.
    Example :
    Server File Name : acm.jar
    Client File Name : 4fb074cc-66fc7407
    Moreover the path itself seems to be invalid.
    Example Path :
    JRE 1.5 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\javaws\https\D17.16.23.11\P443\DMtest\DMwebStart
    JRE 1.6 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\6.0\12
    Due to this, we are facing Classpath problems.
    What changes do we have to make to the code, for Java
    Webstart to work ?
    We are using JBoss 4.0.4 and JDK 1.5 in the Server
    On the client machine, we have IE 6 and JRE 1.6.01
    Help would be appreciated.

    Ask your Java Web Start question at:
    http://forum.java.sun.com/forum.jspa?forumID=38

  • Opening a Word Document with a Java program in Windows

    When running a Java program in Windows, is it possible to have a button where when it is clicked it will open a Word document?
    If so, is it hard and can someone tell me how to do it??
    Thanks

    try this instead of Excel.exe you have to use Word.exe
    1. Declare your button
                   JButton butexlcom = new JButton("Carnet Offre");
                   butexlcom.addActionListener( new ButExlCommercial(msgout));
                   butexlcom.setBounds(215,510,110,30);
                   c.add( butexlcom );
    2. run your word document.
    class ButExlCommercial implements ActionListener {
         private JTextArea msgout;
         public ButExlCommercial( JTextArea msg) {
         msgout = msg;
         public void actionPerformed( ActionEvent e ) {
              try {
                   Runtime.getRuntime().exec("c:\\Program Files\\Microsoft Office\\Office\\Excel.exe NameWordDocument");
              catch(Exception en) {
                   msgout.append( "\n*** PROBLEME WORD ***\n" );
    }

Maybe you are looking for

  • Problem in compiling C file with JNI

    Hello to all, I have a simple JNI tutorial But after creating the header file using "javah -jni " command when I use that header file in to the C implementation it gives error Following code is of HelloWorld.cpp in which the header file in included #

  • Hopefully a simple one...

    I'm not a fan of iphoto for organising my photos but use it as a portal to import from my camera or iphone. Once imported I then drag photos to finder where I drop the photos into folders. My macbook gave me a warning that I was running low on disk s

  • Replace view text under icon screen

    hi please my study for change viwe/unviwe text under icon display my phone

  • Windows to MAC, file picks up errors

    Has anybody ever had this problem, I made my movie on a windows pc but now i am trying to put it on a MAC but for some reason when i put it on the MAC i get these problems: 1. My flash movies do not play 2. the buttons on my MIAW do not work 3. My da

  • ITunes won't open connected to a work network

    iTune stopped opening on my laptop when connected to my work network. It will still open when connected to my home network or disconnected from a network. Adam