A RCP Application using javafx deployed by java web start,in jre8u25 run have problem.

a RCP Application using javafx deployed by java web start,in jre8u20 can use jre7run the applicat,but in jre8u25 use jre7run application have problem.
in jre8u20 use jre7 run the application can run success.
but in jre8u20 the control print:
java.lang.UnsupportedClassVersionError: com/sun/javafx/runtime/VersionInfo : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(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 java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.deploy.config.JfxRuntime.runtimeForPath(Unknown Source)
at com.sun.deploy.config.JREInfo.<init>(Unknown Source)
at com.sun.deploy.config.JREInfo.setInstalledJREList(Unknown Source)
at com.sun.deploy.config.ClientConfig.storeInstalledJREs(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
the reason (i think) is that the application will use javafx's com.sum.javafx.runtime.VersionInfo,i use e(fx)clipse load the javafx runtime.in jre8u20,the web start use jre7's class.in jre8u25,the web start use jre8's class.
so i use jre7 run the application get this result.
how could i solve this problem?

Hi,
I have created client stubs for a webservice using axis wsdl2java tool. When I try calling these stubbed methods from JUnit tests, they are working fine but when I try to execute the jar (it is a swing) I get the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(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 java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.Gudds.SeCURE.MainUI.<init>(MainUI.java:76)
at com.Gudds.SeCURE.Main.Start(Main.java:62)
at org.owasp.webscarab.WebScarab.main(WebScarab.java:34)
I have put the jaxrpc.jar in the classpath and I suppose this jar has the java.xml.rpc.service class but I donot understand why it fails while executing the jar but works fine from the eclipse IDe. Plase help me.
Regrdas,
Kundan

Similar Messages

  • Call report from java with deployment of java web start

    I need call report from java,the call function is:execURL ( String pURL )
    pURL is a url link to call report from report services .
    such as :http://10.20.1.43:8888/reports/rwservlet?destype=cache&desformat=PDF&report=test.rdf&user=scott/tiger@cims
    public static void execURL ( String pURL )
    String tempstr = new String();
    int posIdx = 0;
    if ( (System.getProperty("os.name").equals("Windows NT"))||
    (System.getProperty("os.name").equals("Windows 2000")) )
    posIdx = pURL.indexOf("&");
    while ( posIdx > 0 )
    tempstr = pURL.substring(0,posIdx)+"^"+pURL.substring(posIdx);
    pURL = tempstr;
    posIdx = pURL.indexOf("&",posIdx+2);
    try
    Runtime.getRuntime().exec("cmd /c start "+pURL);
    catch (Exception e1) {System.out.println(e1.getMessage()); }
    else
    try
    Runtime.getRuntime().exec("start "+pURL);
    catch (Exception e2)
    System.out.println(e2.getMessage());
    It's run with no problem with deployment of simple jar.
    But when i call report with deployment of java web start,it can not.
    I think it's java secuity problem,so i add
    Permission java.io.FilePermission "c://winnt//system32//cmd.exe", "execute";
    in java.policy file in client(windows 20000).However ,it can not too.
    Who can help me,Thanks in Advance!

    David,
    In your code, 'cmd' is invoked as Runtime.getRuntime().exec("cmd /c start "+pURL);
    but in your policy file you specify
    Permission java.io.FilePermission "c://winnt//system32//cmd.exe", "execute";
    Before creating a new process, the security manager checks for FilePermission(cmd,"execute")
    if cmd is an absolute path, otherwise it calls checkPermission with
    FilePermission("<<ALL FILES>>","execute"). Try specifying
    FilePermission("<<ALL FILES>>","execute") in your policy file.
    But, I believe using exec, may not be the right solution as it may not work on
    other platforms. Also you will have to expect the client m/c to relax security
    permission.
    Did you consider using java.net.HttpUrlConnection class instead to access the report
    service URL?
    HTH,
    Sathish.

  • SQL Server JDBC problem of JClient deploy in java web start

    I have a test of JClient, it use SQL Server JDBC ,and I download the Microsoft SQL Server 2000 Driver for JDBC from microsoft(msbase.jar, mssqlserver.jar, msutil.jar), add the driver in jdevelop libraries, I can right click the java file to run this application in application navigator , I want run it in java web start and deploy in oc4j, and setup application follow the document of
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfjclientbcwebstart.pdf
    ,but application catch the exception of com.microsoft.jdbc.sqlserver.SQLServerDriver ClassNotFoundException, how to load SQL Server JDBC in embedded oc4j server or standalone oc4j server
    Thaks for helping me!

    How to load SQL Server JDBC to OC4J server

  • Java Web Start doesn't run by clicking on the link, how can I fix it?

    Hello,
    I've been trying to make a Java Web Start application, I finished everything, but when I click on the link which is connected to the jnlp file, it only displays the XML code in the explorer instead of running the program. But if i download the jnlp file and double click it, it starts the Java Web Start. Anyone can tell me how to fix this?
    I thought may be JRE installation, but I tried to click on some sample on the web, it works fine for other Java Web Start application, but not mine.
    Thanks you.
    Kit

    Does your webserver know about JNLP? You need to map the .jnlp extension to "application/x-java-jnlp-file".
    See the Web Server Setup section of http://java.sun.com/developer/technicalArticles/Programming/jnlp/

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Why sun leader do not think about  "Why Java Web Start not be used widely"

    {color:#ff0000}Why sun leader do not think about "Why Java Web Start not be used widely"
    {color}
    Java Web Start was instruduced in jdk1.2, it's about ten years ago,But it's still not widely used--WHY?
    it's not because the design, it's becasue the code--the garbage code-- even the last version not work in many user computers,
    just not work suddendly -- noboday know reason--- if you do not believe, please google internet, many people suffered and suffering from web start!
    It's incredible that a famous big company like sun can not resolve an deployment problen in ten years that some very small company can do good work in much more short time !!!
    That' sun-- always say and design good things, then publish trouble and pain to their users. I really do not know what the sun's engineers are doing in so
    many years! -- why they do not know deployment is so important than others -- if deployment work fine, then the wrong thing can be correct easy !
    Sun, please do an famous big company -- give happy to user rather than pain !!! Please give us -- your users an stable and fast java web start to save us.
    {color:#ff6600}(Note: I use java web start to depoly our application, then receive endless complains, not work, slow and so on. now, we has no way just to give it up--design ourself's deployment-- that's also done by many pained people---just google it){color}
    Here is an desing suggestion:
    Client-end should be simple and stable, should let the server-end do complex thing .(now sun do opposite thing, they make Client-end complex, but server simple) ---it's because that Client-end will take widely effect on user's computer. update a few server is much more easy then update a amount of clients!
    Edited by: Jethro-Soft on Jun 30, 2008 8:49 PM
    Edited by: Jethro-Soft on Jun 30, 2008 8:52 PM

    Please check:
    http://joust.kano.net/weblog/archive/2006/04/06/why-i-will-never-deploy-with-java-web-start-again/
    http://kylecordes.com/2006/04/08/auto-update-no-web-start/

  • Exception while using Java Comm and Java Web Start together

    Hello Java Experts!
    Here's the problem that's been bothering me. The application i'm developing uses Java Comm API to listen to Serial Ports. The application works absolutely fine when it is run locally.
    Now, I need to deploy this remotely using java web start. All resources(dependent jar files) are present on the server and are referenced properly in the JNLP file. All jar files are signed properly.
    Still, it throws the following exception.
    java.lang.NullPointerException: name can't be null
         at java.io.FilePermission.init(Unknown Source)
         at java.io.FilePermission.<init>(Unknown Source)
         at java.lang.SecurityManager.checkDelete(Unknown Source)
         at javax.comm.CommPortIdentifier.getPortIdentifiers(CommPortIdentifier.java:70)
    The exact line of code where it apparently seems to error out is...
    Enumeration portList = CommPortIdentifier.getPortIdentifiers();
    Are there any security issues involved here? Can a application deployed through java web start access serial ports on the system?
    Any pointers as to what the problem might be would be much appreciated.
    Thanks in advance!

    I have the IBM Communications API. I've
    been told that it works with Java Web Start but I
    have not tried it. IBM has changed it's download site
    so.... I can't point you to it. But I have it(55k zip'ed)
    and can send it to you if you post your E-Mail address
    of where you would like it sent.
    Bruce Houghton
    PS If it does work with Web Start please post the
    news here. I will be watching.

  • Java Web Start running JasperReports

    The following is the exception that is thrown when trying to compile an .xml report template to a JasperReport object, from an app that has been deployed via the Java Web Start:
    dori.jasper.engine.JRException: Errors were encountered when compiling report expressions class file:
    C:\Program Files\mozilla.org\Mozilla\DailyReport.java:4: package dori.jasper.engine does not exist
    import dori.jasper.engine.*;
    * I have deployed the application properly via Java Web Start; however, when running the application it is not able to compile the xml file to a JasperReport object.
    * The .java file is created properly; but the app does not seem to be able to find the dori.jasper.engine.*; library.
    * I have signed and included the jasperreports-0.5.0.jar (and it's dependencies) with the app, and have put the path to all of it in the Class-Path of the manifest file.
    * NOTE: Just FYI, I am able to run this without any problems under netbeans.

    Dear Patrick,
    Recently I have used iReports for generating report through java & deploy it through java web start.
    I had taken all the measures you had mentioned in your previous replies. But I am not able to view the report. ( might be it is not compiliing)
    I am using new version of jasperreports-0.5.3.jar
    also through console it is running well.
    Also it is not giving any errors. can u have any idea about this.
    Might be it is silly mistake I have done.
    My code for report generation is :
    public class SReportA
         public SReportA()
         try
         JasperDesign jasperDesign = JasperManager.loadXmlDesign("/home/ora/iReport/RSENIORITYLIST-A.xml");
         dori.jasper.engine.design.JRBshCompiler theCompiler = new dori.jasper.engine.design.JRBshCompiler();
         JasperReport jasperReport = theCompiler.compileReport(jasperDesign);     
         Map parameters = new HashMap();
         parameters.put("uname","admin");               
         Connection con=null;
         try
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con=DriverManager.getConnection("jdbc:oracle:thin:@158.144.71.219:1521:dbadp","acom","admin123");
         catch(Exception e)
              System.out.println("Exception in test.jsp "+ e);
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,con);
         JasperManager.printReportToPdfFile(jasperPrint,"ReportA.pdf");
         JasperViewer.viewReport(jasperPrint,false);
         catch(Exception e){ System.out.println("There is exception here"+ e); }

  • Java Web Start issue

    Hi,
    since we deploy JRE using Software distribution in Active Directory, the msi file provided with the Java installation is not well usable. Not sure, if it is still the case, that triggering the msi file a second time after successfull installation destroys the exisiting Java installation.
    So I have built my own msi file for internal deployment using Advanced Installer. Finally all seemed to work (had some intermediate issues with outdated keys in HKCU), but now a new corporate application arrived, which creates a Java Web Start shortcut on the desktop. This shortcut fails to start with the error "Can not find message file".
    Not very helpful. I found out, that the shortcut points to the javaws.exe in system32 folder (if I create the shortcut with the Cache Viewer, the same happens). And this javaws.exe file is also bringing up this message if double clicking. If I manually alter the shortcut to point to Program Files\Java\jre6\bin\javaws.exe, the application launches.
    So there must be something wrong in my package with the javaws.exe in the Windows system folder. But what? I compared already several registry keys with a non corporate machine, on which I installed from download, and here it functions well, but could not find any visible differences.
    Would be nice, if somebody could point me to either a way to fix the javaws.exe file in system32 (without using the downloaded Java installer, which cannot be deployed) or default created shortcuts to point to Program Files\Java instead of Windows\system32.
    Thanks and best greetings from Germany
    Olaf

    907297 wrote:
    Hi and thanks for the answer.
    That is my guess as well. As mentioned I already tried to compare the registry keys related to javaws on two machines and found no visible differences, which would explain, why this functions on one and not on the other. But maybe I simply did not stumble over the needed key.I wonder if there is a way to sniff out which registry keys a native application is referencing. That could also provide some clues into which keys need to be cleaned up to fix a broken JDK installation, which too many people are suffering from.

  • Help with Java Web Start

    Hi everybody,
    I have a simple Java application that has a JFrame containing a TextField displaying some text inside it. I am using the NetBeans IDE. I am trying to Enable Java Web start for this application. The steps I have taken upto now are:
    1. Right click on Project, Java Web Start -> Enable Java Web Start. This created the jnlp file.
    2. In the Resources section, I added the jar file for swing. ( I am not sure if I have to add the path for jnlp.jar etc, or are these found automatically?)
    3. Right click on Project, Java Web Start -> Deploy with Java Web Start. This launches the browser with the Click me link, but on clicking this link, I get the following error.
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class jnlp.sample.servlet.JnlpDownloadServlet or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.ClassNotFoundException: jnlp.sample.servlet.JnlpDownloadServlet
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)I have all the jnlp files in my jdk directory, and I am not sure why it can't find it. Is there something I am missing?
    Thanks
    George

    I am not sure what it has to do with servlets, I just followed a tutorial on using Netbeans with Java Web Start, and did only the steps as mentioned in my first post. And ended up with the error.
    Anyways, I added the jnlp jar files(jnlp.jar, jnlp-servlet.jar, jardiff.jar) in the WEB-INF/lib directory. And it seems to deploying it now. I can get my application to load on clicking on the "Click me" link. But the controls on my application don't seem to be working.
    Also, when I try to Right click on my project -> Java Web Start -> Run with Java Web Start, I get the following error message,
    javaws-run: C:\Documents and Settings\Lux\Visualization\nbproject\build-jaws-impl.xml:36: Execute failed: java.io.IOException: CreateProcess: C:\j2sdk1.4.2_13\bin\javaws "file:///C:/Documents and Settings/Lux/Visualization/Visualization.jnlp" error=2
    BUILD FAILED (total time: 0 seconds)
    Any help appreciated.
    Thanks.
    George

  • Error while running Java Web Start in JDK 1.5

    I have been running an application using Jboss3.2 in JDK1.4.2_09. The Java Web Start application ran perfectly then.
    Now, I am running Jboss3.2 with JDK 1.5.0_11. While some applications (HTML client and some Java Web Start applications are working correctly) are working correctly, this particular Java Web Start application fails.
    General Tab:
    An error occurred while launching/running the application.
    Title: Server_Security
    Vendor: df
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http://localhost:8080/webapp/SampDB1/Server_Security/application/javassist.jar - null
    Exception Tab:
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:617)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(DownloadProtocol.java:884)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:698)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:662)
         at com.sun.javaws.Launcher.downloadResources(Launcher.java:1032)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:375)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
         at com.sun.javaws.Launcher.run(Launcher.java:165)
         at java.lang.Thread.run(Thread.java:595)

    You appear to be using a 1.4.x program on a file belonging to 1.5. Check your path variable, it's probably the cause.

  • Java Web Start and JAAS

    Has anybody tried to use JAAS in an application launched via Java Web Start?
    I'm experiencing problems with it. (The application works fine when being launched directly on the client.)
    If somebody already successfully tried, please let me know.
    Do I need to modify tags in the JNLP file? Do I need to re-configure my webserver or servlet engine?

    OK I got a response from the Java Web Start engineering folks. It sounds like using JAAS directly, to login to an ejb app server or whatever, is out of the question with Java Web Start on JDK1.3:
    << begin Sun's email >>
    The problem you got is due to JAAS 1.0 (jaas.jar) uses systemClassLoader to load
    classes that are defined in the JNLP application jar files, which should be
    loaded by the contextClassLoader instead. For more information on classLoading
    with JWS, look at:
    http://java.sun.com/products/javawebstart/faq.html#54
    http://java.sun.com/products/javawebstart/docs/developersguide.html#dev
    The new JAAS that comes with JDK 1.4 fixed this problem, which uses
    contextClassLoader in their class.
    Thanks for your interest in Java Web Start.
    << end of Sun's email >>
    FYI our workaround: We use a SOAP servlet as a proxy for the app server and we've defined a SOAP xmlrpc api between our client and the application server. This has the advantage of being able to get thru firewalls, as our variant of SOAP is transported on HTTP. Java Web Start installs and starts the SOAP client.
    I would hope the JWS folks would search the Sun provided services and see which ones ignore the current thread's class loader and fix them.
    David Harvey
    Siemens Energy and Automation, Inc.
    Gardner Systems Business Unit

  • Java web start security dialog with Java 7 update 51

    I build a Java Web Start application signed with a valid certificate.
    When I star the application the security dialog appear correctly as show in this figure
    http://www.java.com/en/img/download/trusted_signed.jpg
    My issue is about the "do not show again" checkbox.
    If the attributes href are present in the jnlp tag of the jnlp file the checkbox appear.
    If the attribute are not present, the checkbox doesn't appear and the run needs to be confirmed every time.
    (Example:
    <jnlp spec="1.0+" codebase=
    "http://docs.oracle.com/javase/tutorialJWS/samples/deployment/webstart_ComponentArch_DynamicTreeDemo"
    href="dynamictree_webstart.jnlp">
    This is a problem because my jnlp file is under a password protected directory and if href is specifed, the Java Web Start application try to retrieve it as the other resources. ( result in access denied because only the browser session is authenticated and the run fails)
    The documentation at Deploying a Java Web Start Application said:
    The codebase and href attributes are optional when deploying Java Web Start applications that will run on at least the Java SE 6 update 18 release or later. You must specify the codebase and href attributes when deploying Java Web Start applications that will run with previous releases of the Java Runtime Environment software.
    What is the right code? With href or without?
    Is this a BUG or a feature?
    How can I show the "don't show again" checkbox without having to specify the href attribute?

    From the documentation at JAR File Manifest Attributes for Security
    If the Application-Library-Allowable-Codebase attribute is present and matches the location from which the RIA is started, then a single host is listed in the Location field for the prompt and the option to hide future prompts is provided.
    This issue is also discussed here: Java Web Start security dialogs with Java 7 update 51 - Stack Overflow

  • Deploying no java applications using Java Web Start

    Hi,
    I am new to java web start. Is it possible to distribute non java applications using java web start. I have an APP which can run on a desktop in standalone mode. The app has jusy HTML and Java script files. Is it possible to package this app and deploying using java web start? I am assuming If it is possible, I can make updates to the packaged app in the web servers and the updates will be downloaded next time the app is used provided configurations are correct?
    thx

    The app has jusy HTML and Java script files. Is it possible
    to package this app and deploying using java web start? Not really. Resources for JWS need to be zipped,
    while this HTML/JS app. will (I guess) not work from
    inside the depths of a Jar (or Zip) archive.
    Note that you can organise for those files to be
    downloaded and expanded onto a known place
    on the user's disk, by using an 'installer' element,
    but..
    ...I am assuming If it is possible, I can make updates to the
    packaged app in the web servers and the updates ..installers are only called once, and do not 'update'.

  • Application started using Java Web Start doesn't launch the first time

    I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4.
    I signed my application and make use of all security settings.
    Here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="http://www.antaki.ca/bloom/jars"
         href="http://www.antaki.ca/bloom/Bloom.jnlp">
    <information>
        <title>Bloom</title>
        <vendor>Carl Antaki</vendor>
        <icon kind="splash" href="http://www.antaki.ca/bloom/Bloom.jpg"/>
        <icon href="http://www.antaki.ca/bloom/bloom32.jpg"/>
      <shortcut online="false">
      <desktop/>
      <menu submenu="Bloom"/>
      </shortcut>
    </information>
        <resources>
            <j2se version="1.5+" initial-heap-size="32m" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" />
            <property name="sun.java2d.d3d" value="false"/>
            <jar href="http://www.antaki.ca/bloom/jars/Bloom.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/BrowserLauncher2-1_3.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/SmartProgressMonitor.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/facebook.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/forms-1.1.0.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/json_simple.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swing-worker-1.1.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/glazedlists_java15.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swingx-0.9.1.jar"/>   
            <jar href="http://www.antaki.ca/bloom/jars/jhbasic.jar"/>
       </resources>
    <security>
         <all-permissions/>
      </security>
    <application-desc main-class="ca.antaki.www.bloom.gui.Bloom" />
    </jnlp>Here is the link for my application http://antaki.ca/bloom/Bloom.jnlp
    The first time the application is installed using a link on the browser it's downloaded then the certificate dialog is shown, after that I check the checkbox to accept the certificate permanently. The application doesn't load, it only loads the second time although I see it in the task manager. If I don't accept the certificate permanently it does load. This happens on both Firefox 2 and IE 7. I enabled the console and logging but nothing shows up there.That's really a weird problem, I wonder if Java Web Start is a viable deployment option, it does have great capabilities such as autoupdate but still seems to have important bugs.
    Does anyone have any clue about what is going on.
    The problem doesn't occur on Ubuntu 7.10.
    Thanks,
    Carl Antaki

    >
    You were right my XML file was not correct. I still couldn't find a valid JNLP validator. Sun has to provide that.>No they don't (have to supply a validator for their own document type, though it makes sense to do so), but yes they do (provide a tool that validates XML against schemas). Java can validate XML against a DTD or XSD.
    Check these two threads (and chase the links) for more details.
    JNLP xsd schema
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/c6f65bf1df5f105d/30c6b7e2dc342dc4>
    Validate XML against DTD? XSD OK. SSCCE.
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/5b997a1edb765b11/e831f3066eb4aa38>
    Look especially for the posts by Piotr Kobzda.
    I had a tool on my site based largely on Piotr's codes, that linked to a valid JNLP DTD and XSD, but unfortunately my site is offline at the moment. Andy assures me that the JNLP 6.0 DTD has been corrected for the developer ..download tutorials of web start, though the online (web site) version may still be invalid.

Maybe you are looking for

  • Adding an attribute to some pre-existing XML

    Hi all, I have a table with some small XML documents in a CLOB column and i'd like to add an attribute to one of the elements using SQL. Neither the table nor the XML is "mine" so I can't make any significant changes to the structure or current conte

  • How to create a button with an attached menu?

    I don't know how these buttons are called but I'll try to explain what I want to do. I have a toolbar where I have a button that cycles through several functions on every action - I use it to cycle through display modes. Because I do not want to swit

  • Error in BAPI_INCOMINGINVOICE_CREATE Function Module ?

    Hi,     I got error while testing BAPI_INCOMINGINVOICE_CREATE Function Module as        "  Enter a reference to a valid goods receipt (line 000001) " for Creating Invoice liike as MIRO. Please Tell me how to solve & how to ( MIRO ) Create Invoice for

  • ContetServer +MaxDB 7.6 +Apache

    Hello Experts , When starting Apache server i am getting this error i am using on sun solories 9 OS ./apachectl start Syntax error on line 233 of /usr/users/sapcs/conf/httpd.conf: Cannot load /usr/users/sapcs/modules/mod_sapcs2.so into server: ld.so.

  • Adobe flash player on iMac

    Does the adobe flash player works on imacs? we are trying to view a video on YouTube, but it keeps asking to download the latest adobe flash player. i did but still not working.