Refelction with JNLP launched app

This code runs fine when running in Eclipse, or double clicking the jar file. However when I launch using jnlp, I get an error.
code:
          String cname = "dbObjects.DBO_"+sel;
          ClassLoader cl = ClassLoader.getSystemClassLoader();
          try {
               Class myClass = Class.forName( cname, false, cl ); //cl.loadClass(cname);
               Object obj = myClass.newInstance(); error:
java.lang.ClassNotFoundException: dbObjects.DBO_ZipCodes
     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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at GUI.PnlAdmin.onSelChange(PnlAdmin.java:114)jnlp:
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Tmgr Download -->
<jnlp spec="1.0+" codebase="http://www.earthbest.com" href="tmgr.jnlp">
    <information>
       <title>TMgr</title>
       <vendor>Simple Software</vendor>
       <description>tmgr</description>
       <description kind="short">tmgr Download</description>
       <offline-allowed/>
       <icon href="TMgr.png" />
       <icon kind="splash" href="TMgr.png" />
       <shortcut online="false">
            <desktop />
       </shortcut>
     </information>
        <security>
                <all-permissions/>
        </security>
     <resources>
       <j2se version="1.6.0_10+" href="http://java.sun.com/products/autodl/j2se" />
       <jar href="tmgr.jar"/>
     </resources>
     <application-desc main-class="TMgr">
        <!-- <argument>...</argument> -->
     </application-desc>
</jnlp>I checked the jar file and the class files are there.
Peter

Changing to:
//          ClassLoader cl = ClassLoader.getSystemClassLoader();
          try {
               Class myClass = Class.forName( cname, false, null ); //cl.loadClass(cname);
               Object obj = myClass.newInstance(); produced this error when running in eclipse
java.lang.ClassNotFoundException: dbObjects/DBO_Stats
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:247)
     at GUI.PnlAdmin.onSelChange(PnlAdmin.java:114)and still doesn't work when launched with jnlp.
Peter

Similar Messages

  • Using SSL with client auth from a JNLP-launched app

    We have an application that is launched by JNLP, and which needs to make a mutually authenticated SSL connection to a server. The client cert and trusted certs that it needs to do this are stored in the Sun\Java\Deployment\security directory where JNLP knows to look for them. And Java WebStart itself seems to be able to use these certs just fine. However, our app seems blithely unaware of the location of the keystore/truststore unless we explicitly set the system properties javax.net.ssl.keystore and truststore. But we don't want to do that (it could be different for different users), and we shouldn't have to do that. So the question is, how can we use the same KeyManager/TrustManager that Java WebStart itself is using? Are they somehow available for the JNLP-launched app to use?
    Failing that, is there a way for a JNLP-launched app to query the deployment properties? There are a bunch of properties to direct the behavior of Java WebStart (see [http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html]), such as deployment.user.security.trusted.cacerts. These don't seem to be System properties. Can the app see them, or are the "private" to Java WebStart itself?

    HI:
    see also shine enterprise pattern.
    I have worked with it and it helps me and results spead up.
    it has a class which is named "code" and does encryption and ... by md5. it is incredibly secure! tey it.
    you can download it via links bellow:
    http://groups.google.com/group/j2sos.
    http://sourceforge.net/projects/shine-enterpris/
    it has also document

  • Jgol error with JNLP Applet Launcher

    I've been able to deploy my applet with the JNLP launcher and jogl, but whenever I try to use an animator in my program applet crashes with this error. Am I forgetting to add something in the code? Any help is appreciated.
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/jogamp/opengl/util/Animator
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: com/jogamp/opengl/util/Animator
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
    and other stuff.
    My html code is
    <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
    width=600
    height=400
    archive="http://download.java.net/media/applet-launcher/applet-launcher.jar,
    http://download.java.net/media/jogl/jsr-231-2.x-webstart/nativewindow.all.jar,
    http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl.all.jar,
    http://download.java.net/media/gluegen/webstart-2.x/gluegen-rt.jar,
    https://sites.google.com/site/popesdev/ElementLearner.jar">
    <param name="codebase_lookup" value="false">
    <param name="subapplet.classname" value="ElementLearner">
    <param name="subapplet.displayname" value="ElementLearner">
    <param name="noddraw.check" value="true">
    <param name="progressbar" value="true">
    <param name="jnlpNumExtensions" value="1">
    <param name="jnlpExtension1"
    value="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-core.jnlp">
    <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
    <param name="jnlp_href" value="https://sites.google.com/site/popesdev/ElementLearner.jnlp">
    </applet>
    My jnlp file is
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp href="ElementLearner.jnlp">
    <information>
    <title>ElementLearner</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <homepage href=""/>
    <description>ElementLearner</description>
    <description kind="short">Brian Paul's Gears demo ported to Java and JOGL.</description>
    <offline-allowed/>
    </information>
    <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
    <property name="sun.java2d.noddraw" value="true"/>
    <jar href="https://sites.google.com/site/popesdev/ElementLearner.jar" main="true"/>
    <extension name="jogl-all-awt" href="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-all-awt.jnlp" />
    </resources>
    <applet-desc
    name="ElementLearner"
    main-class="ElementLearner"
    width="600"
    height="600">
    </applet-desc>
    </jnlp>

    p0pes wrote:
    running JaNeLA gives me this error.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'extension'. One of '{property, package}' is expected.
    The help here http://pscode.org/janela/help.html really didn't help too much.
    The help for that error states:
    This one fools a lot of people. It most often means that elements are out of the correct order in the launch file. Check the spelling, then try shifting the element further up the document. Did you check the file against the documentation for creating JNLP files? Did you try reordering the elements? Did you check the spelling of the element name?
    Note that those type of errors are produced by the J2SE based XML APIs when validating an XML document against an XSD. That means that there should be thousands of hits across the internet that discuss that error.
    Any other ideas?Some:
    - Do not expect the people here to spoon feed answers to you.
    - Describe what actual methods you used to try and resolve the error, rather than just state the tools are 'not that helpful'.
    - Mention whether the JNLP can be launched as a free floating app., like I suggested you try. After all, we are not psychic.
    It might be obvious that I am a little irritated by your reply. JaNeLA was primarily written by me, though it has significant contributions from another developer. It was written for the purpose of helping people to validate JNLP files and resources, but the user must be able to think for themselves & do some research, in order to get good use from it.
    When I initially saw the thread to do with a problem in regard to the JNLP applet launcher, I was about to pass it by completely. These forums are not for providing support for 3rd party APIs. But since the JNLP was obviously wrong I decided to give you some help on that, in the hope that would solve the problems.
    If it doesn't solve the problem, or if you continue with this 'helpless lamb' attitude, I will be opting out of the thread.

  • Any Recommanded JNLP launcher for webstart app?

    Dear All:
    I have some special requirement(such as load class dynamically by add URL to classloader of JNLP launcher,or to launch additional JNLP app from parent JNLP app.),but I can not wait until next versions webstart console .Cause IIOP/rmi object communication require some JVM version at both sever side and client side,force my webstart application have to stay in jre 1.4.x
    Can any one recommend me any open-source webstart launcher ?
    compatibility to sun's webstart console is also concerned.

    Looks nice.
    One note:
    You should prevent to let drive letters to sneak into URLs:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File Created with JarCreator 0.9, 5 oct 2001, [email protected]  -->
    <jnlp spec="1.0+"
    codebase="http://150.205.100.31/applications"
    href="c:/myJar.jnlp">
    <information>
      <title>Application 1.0</title>
      <vendor></vendor>
      <homepage href="index.html"/>
      <description>A good application</description>
      <description kind="short">A waouuuuh good application</description>
      <icon href="pics/JarCreator.gif"/>
      <offline-allowed/>
    </information>
    <security>
      <all-permissions/>
    </security>
    <resources>
      <j2se version="1.3"/>
        <jar href="c:/myJar.jar"/>
    </resources>
    <application-desc main-class="d:/main"/>[/b]
    </jnlp>

  • I upgraded my new iPad (iPad 3) to IOS 6 and everything went well except Siri won't launch apps. When asked say "launch Facebook" Siri responds with "it doesn't look like you have an app named Facebook" and I get the same results when trying to launch any

    I upgraded my new iPad (iPad 3) to IOS 6 and everything went well except Siri won’t launch apps. When asked say “launch Facebook” Siri responds with “it doesn’t look like you have an app named Facebook” and I get the same results when trying to launch any app. Siri works for everything else it just won’t launch apps. Any ideas? Thanks.

    I have this same problem... Seems like nobody else does. Siri won't launch any apps for me, including native apps.

  • Windows.Launch contract failed with error: The app didn't start..

    We have installed windows 8 Prof X64 Edition; none of the Metro apps are not getting launched; the system is added in domain, the event viewer has the below information for one of the app.
    Event Under: Applications
    App microsoft.windowscommunicationsapps_8wekyb3d8bbwe!Microsoft.WindowsLive.Chat did not launch within its allotted time.
    Event Under: AppHost
    The App Host has encountered an unexpected error and will terminate. The error is  0x8007000E.
    Event Under: Microsoft-Windows-TWinUI/Operational
    Activation of the app microsoft.windowscommunicationsapps_8wekyb3d8bbwe!Microsoft.WindowsLive.Chat for the Windows.Launch contract failed with error: The app didn't start..
    Regards Ajinkya Ghare MCITP-Server Administrator | MCTS

    Hi,
    Try to put a machine disjoin the domain to see if the same issue occurs.
    Sometimes the Windows 8 machines cannot use metro app once join the domain, you can try this method:
    1- Open "Local Group Policy Editor"
    2-Navigate to "Computer Configuration - Administrative Templates - Network Isolation"
    3- Open "Internet Proxy Servers for Metro Style Apps" and set the value to your proxy server address like 172.16.0.1:8080.
    Regards,
    Leo  
    Huang
    Leo Huang
    TechNet Community Support

  • Launch apps with oracle jre 7

    With Apple discontinuing support jre 7 on its mountain lion, i am trying to find a way to launch my mac apps with oracle jre7. There are two situations occuring to me.
    1. Oracle jre7 could be before hand installed and my app should be able to detect and launch
    2 Or Bundle the oracle jre 7 with my Mac app and get into lauching it on mountain lion without any issues.
    Is there a better way or apple providing support in this regards.
    Help appreciated.

    Thanks NickClark_uk,
      I am able to install the java 7, but the Mac app i am trying to launch is unable to detect the oracle jre 7 and works fine with app store jre's. So we may need to bundle the jre or modify our apps to detect the installed JRE.
    I was looking at what would be the better approach in order to have my Mac app run with oracle jre 7.
    Thanks

  • Launching apps 11.5.10 with different users

    Is it possible to launch apps 11.5.10 with two different usernames on the same instance?

    Hi,
    Have a look at the following documents:
    Note: 272585.1 - Users Cannot Open Multiple Forms Sessions On The Same PC In Applications 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=272585.1
    Note:375403.1 - How Can I Restrict Applications Users To Be Signed In Only Once At Any Time
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=375403.1
    I have also found one thread which was created by you and cover the same issue.
    Multiple sessions of Oracle APPS open for the same instance? how possib
    Multiple instances of APPS for the same database?
    Regards,
    Hussein

  • Has anyone out there experienced problems with launching apps after downloading the iOS 5.1?

    Has anyone out there experienced problems with launching apps after downloading the iOS 5.1?

    I tried calling support and they want to sell me $79 worth of support in order to get it straightened out!

  • Jnlp-launch consumes too much time to operate

    Hello all!
    I want to discuss the UX we have using jnlp launch in JavaFX.
    You can find jira-discussion here:
    http://javafx-jira.kenai.com/browse/RT-14930
    As you can see, it was recognized as major bug.
    What's wrong with jnlp-start?
    1. When user launch jnlp-file, red confusing window "Java 7..." appears immediately.
    While it can be slightly useful in promotion purposes, but many of today's users will be disturbed. There is no association "Java means cool" today. Users wanted to launch new sexy app, but all they see is strange poster with "Java........."
    Imagine pop-up window with "Adobe Flash XX.XXX" for several seconds every time when you try to launch flash game. Is it fine UX you await?
    2. I don't know, is it independent issue, or tightly coupled with previous one, but jnlp-start really consumes large amount of time.
    On my machine with SSD most JavaFX apps can be launched from jar in less than 1 second.
    But launching same app via jnlp take about 4-5 seconds total.
    I suppose, it is self-evidently that launch of app with .jar files on disk must consume not much time than direct jar-launch.

    Hello,
    1) Should there even be a jnlp-start pop-up? Maybe a setting with no web-start pop-up or maybe the developer can provide own image to pop-up?
    2) It does seem a little slow. I see that in the jnlp file there are references to external URL's.... could it be that these URL's are being accessed every time the JNLP is launched causing this delay? Is the performance of the jnlp startup tied to the performance of the external site and its network?
    thanks
    jose

  • JNLP Launching Error

    Hi,
    I am facing the problem of launching an application through JNLP file.
    When I am launching the application with JNLP file as
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for RMI-IIOP sample -->
    <jnlp spec="1.0+" codebase="http://localhost:8181"
                                  href="AyaamClient/launch.jnlp">
    <information>
    <title>Ayaam Network</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <description>Ayaam Network</description>
    <description kind="short">Ayaam Network Application </description>
    <icon href="resources/splash.jpg"/>
    <icon kind="splash" href="resources/splash.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.6+"/>
    <jar href="AyaamClient/Startup.jar" />
    <extension href="AyaamClient/Activation.jnlp"/>
    </resources>
    <application-desc main-class="com.ayaam.applicationFramework.gui.view.uicontainer.concomponent.network.AymNetWorkDialog">
    </application-desc>
    </jnlp>
    The application is working fine i.e. successfully launched and i'm able to perform my operation but when I am chaning the codebase="http://localhost:8181" to codebase="http://10.249.8.243:8181" it is not starting the application.
    The only change that i am making in JNLP file is that I am changing the localhost with the IP address of server. The changed JNLP file for reference is
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for RMI-IIOP sample -->
    <jnlp spec="1.0+" codebase="http://10.249.8.243:8181"
                                  href="AyaamClient/launch.jnlp">
    <information>
    <title>Ayaam Network</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <description>Ayaam Network</description>
    <description kind="short">Ayaam Network Application </description>
    <icon href="resources/splash.jpg"/>
    <icon kind="splash" href="resources/splash.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.6+"/>
    <jar href="AyaamClient/Startup.jar" />
    <extension href="AyaamClient/Activation.jnlp"/>
    </resources>
    <application-desc main-class="com.ayaam.applicationFramework.gui.view.uicontainer.concomponent.network.AymNetWorkDialog">
    </application-desc>
    </jnlp>
    The error that is coming is
    JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    #### Java Web Start Error:
    #### JAR resources in JNLP file are not signed by same certificate
    Although I have signed all the JAR files with the same JDK version.
    It is working fine when I am launching the application with localhost but as soon as I am changing the localhost with the port number of server it is throwing exception.
    Please suggest how to remove this error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    bjamin wrote:
    ..I need to deploy an application (which is not mine)..Wow. Can you say NOT MY FAULT, PLEASE SOLVE IT FOR ME 'CAUSE I HAVE NO IDEA WHAT I'M DOING AND LIED TO GET THIS JOB any louder?
    Well, before you get any (further) misconceptions, I will point out that nobody here cares who wrote the application..
    .. using java web start.
    I succeeded deploying 'Sun dynamic tree example', but when I try to launch my app, the browser print.. 'Print' or 'display'? The first I've never heard of, the second is relatively easy to fix.
    But when I click on the jnlp file (from the windows explorer), the application start !!!
    How can I debug my problem ???Get some CRC into your keyboard. It might end up electrocuting you, but at least it will unstick that '?' key.

  • JNLP launch in ZDM 7

    I have 3 JNLP files I need to make available through the app launcher window for students (restricted desktop). I can run the app if I go to the folder and double click the jnlp file, but when I try to launch it through the app launcher, it does not fly. Either "not a valid win32 app", or "Could not launch (app name) (id-123. The filename, directory name, or volume label syntax is incorrect" I have the app pointing directly to the JNLP file, do I need to be doing something differently? Thanks in advance!
    Jim

    On 8/18/2011 2:56 PM, jims1969bt wrote:
    >
    > To those that may run into the same: In the app, put javaws.exe in the
    > path to the executable, and the path to the jnlp file in the
    > "Parameters" field. I have not tested in 100%, but it worked first try
    > on my workstation...
    >
    >
    That's how you do it. I have an intranet site that they wanted
    shortcutted to the desktop but it had to run in Internet Explorer. I
    just ran iexplore.exe with the site as a parameter.

  • JNLP Swing app. download

    Hi,
    Is there any links from where we can download the JNLP Swing application to test it. Like with login screens, etc.
    Thanks,
    Rithu

    Rithanya wrote:
    ..Is there any links from where we can download the JNLP Swing application to test it. Like with login screens, etc.I offer a number of apps. launched using JWS through [pscode.org|http://pscode.org/], and also have a page dedicated to [demos. and sample code|http://pscode.org/jws/api.html] specifically related to the JNLP API.
    There are also of course, these [213 JWS launched apps. at Sun|http://www.google.com/search?as_filetype=jnlp&as_sitesearch=java.sun.com].

  • Launch apps one at a time and disable iTunes at startup

    Hey guys
    I have two questions:
    The first one is, is there any way to launch apps at Login but one after the other and not all at the same time? For instance, I would like to launch Adobe Ps, then Ai after Ps loaded, then Mail, and then others. Is this possible?
    The second one is, how can I disable iTunes from launching at Login? I've checked my Starup Items and iTunes is not on the list. Also, I've right clicked the icon in the Dock and "Open at Login" is disable as well but it keeps launching every single time I start up my computer.
    Any helps is much appreciated.

    In my case, I do need to launch Adobe Ps, Ai and Br, Mail, iChat, Safari, Pages and Cinema 4D every single day for work. Almost everything opens up fast, but like you said, Adobe apps take a lot of memory so they take longer to open. I really hate waiting for these to open up, so I'm looking for a way to make them launch one at a time as soon as I get into the office while I take care of some paper work.
    In that case I don't think you need to put in a delay in between the apps to make sure the next only opens after the earlier is finished. I open 5 apps every morning with no delay in between and it always goes smoothly and very fast. Try that first then you can go back and edit the workflow to add the pauses in if you need it.
    Is Automator user friendly? I've never used it before. Is it very easy to understand and setup?
    It's very user friendly. I've only made about 3 apps (each workflow can be saved as it's own application), the launching multiple application being the last one and it was very easy, took about 5 minutes to create. Of course, someone on here had told me how to do it so that made it very easy.
    Unfortunately, I haven't upgraded to Leopard yet and it looks like the interface is very different from Tiger. In Tiger when you open Automator it gives you a list of applications on the left, click on one to select and it will then give you a list of actions available for that application just to the right of that. Double click on the action and it adds it in as your workflow in a large space on the right.
    In this case the app I chose was Finder, then Launch Application action. When that is added to the workflow I then had a popup menu of all my apps in my Applications folder so I would just choose the one I wanted. There is even an Other at the bottom to choose an app from elsewhere in case you have any outside the main Applications folder.
    To add the pause select Automator from the left hand list of apps and you get a new list of actions, double click on Wait For User Action, which it will put right under the app you are launching as the next step. You can then set the time for how long you want it to wait.
    Then go back to Finder and Launch Application and repeat the process for each app you want to open. All the actions in the workflow can be dragged around as much as you want to create a different order.
    Very simple. Leopard's interface works differently but I suspect you still need to choose Finder to get to Launch Application and Automator to get to Wait For User Action. Each app has it's own set of actions it can perform but they can all be added together for a workflow.
    Then save it as an app and put it on your desktop, or where ever you want, so you can double click to run it then walk away until it's done. Even after saving it you can go back in and edit it at any time, if you wanted to take an app out or add one in, for instance, or want a shorter or longer pause time, etc.

  • Itunes store does not show on ipad when i launch app its pages are blank

    itunes store does not show on ipad when i launch app its pages are blank

    This indicates there might be an issue with the time configuration on the device.
    Go to Settings > General > Date and time. See if Set automatically is switched to on. If so, switch to off and ensure you set date, time and time zone manually and correctly.
    Power off the device (hold sleep button for four seconds, then slide to power off), then power back on.
    If issue persists, switch Set automatically back to on, and if not resolved then restore the device.

Maybe you are looking for