JavaFX + Applet Troubles

Hey guys, you all have done a great job of answering my questions thus far, but I've got a couple architectural issues I'm trying to get through and would like some expert advice on what's going on.
First of all, it would seem as though the absolute minimum required to get a JavaFX applet up and running is a download (presuming you haven't already run an applet using JavaFX) of a bit over 3 meg. This seems like a pretty hefty payload requirement...is there anything that be done to cut back on the initial loading cost?
Second, I am scaling my content and it would seem as though the SwingTextField gets very odd mouse text selection issues when scaled up. Is there anything I can do fix that?
Third, I'm getting errors every ~10th time I run the application. This inconsistency is rather worrisome. I get similar trouble when running as an Applet where it shows me the "Java downloading cycle progress display thingy" and just sits there spinning, but if I hit refresh in the browser it immediately launches the app the second time around. I'm launching via JNLP using the new JavaScript commands Sun provides.
Thanks!

Like any good developer I have fixed my problem.
This blog gave me some clues and I think it comes down to how i have built and deployed it.
http://lexique-du-net.com/blog/index.php?post/2008/12/08/Deploy-a-JavaFX-app-as-an-applet-with-the-Java-Deployement-Toolkit
In the meantime to see it work in a browser i have opened it offline and just opened the html page that was in my dist folder created by netbeans.

Similar Messages

  • JavaFX applets hang on Vista 64

    I'm unable to run any applet that uses JavaFX on my 64-bit Vista machine (Vista Business 64-bit, SP2). The applet hangs during the Java loading animation. It consumes no CPU. For example, the Vancouver Olympics medal viewer (http://www.vancouver2010.com/olympic-medals/geo-view/). This happens on both Firefox (v3.6) and IE 8. On Firefox, it hangs the whole browser until I use Process Explorer to kill the Java subprocess. On IE, it does not hang the browser; the loading animation just spins forever. On Firefox, I turned on logging in the Java console (which also hangs) but saw nothing obvious. The last four lines are
    Load Geographic View
    reset view 2010
    getEligibleCountriesForCurrentYear
    network: Cache entry found [url: http://www.vancouver2010.com//api/country/list.json, version: null] prevalidated=false/0
    I'm using Sun JDK 1.6.0_18, and it happens with both the 32- and the 64-bit versions. (Also, I have the JavaFX 1.2 SDK installed). Note that non-JavaFX applets work fine, for example the demo applets that ship with the JDK. One more data point: the Java EE 6 installer hangs also. The splash screen appears, then it opens a new window, then it hangs. The new window never fully paints. I don't know if this is related to my JavaFX troubles.
    I'm a developer evaluating Java EE 6 and JavaFX for a possible RIA, but this has me completely stuck. Any help much appreciated.

    Okay, here's the stack traces, split across multiple replies to handle the 7,500 character limit:
    Full thread dump Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing):
    "AWT-EventQueue-3" prio=4 tid=0x062fd400 nid=0xe80 runnable [0x0b31e000]
    java.lang.Thread.State: RUNNABLE
    at sun.java2d.d3d.D3DRenderQueue.flushBuffer(Native Method)
    at sun.java2d.d3d.D3DRenderQueue.flushBuffer(Unknown Source)
    at sun.java2d.d3d.D3DRenderQueue.flushNow(Unknown Source)
    at sun.java2d.d3d.D3DBlitLoops.Blit(Unknown Source)
    at sun.java2d.d3d.D3DSwToSurfaceBlit.Blit(Unknown Source)
    at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
    at sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
    at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
    at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
    at sun.java2d.SunGraphics2D.copyImage(Unknown Source)
    at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
    at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.renderClip(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
    at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
    at com.sun.scenario.scenegraph.JSGPanel.paintComponent(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintToOffscreen(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown S
    ource)
    at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
    at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
    at javax.swing.RepaintManager.paint(Unknown Source)
    at javax.swing.JComponent._paintImmediately(Unknown Source)
    at javax.swing.JComponent.paintImmediately(Unknown Source)
    at javax.swing.JComponent.paintImmediately(Unknown Source)
    at com.sun.scenario.scenegraph.JSGPanel.repaintDirtyRegions(Unknown Sour
    ce)
    at com.sun.scenario.scenegraph.JSGPanelRepainter.repaintAll(Unknown Sour
    ce)
    at com.sun.scenario.scenegraph.JSGPanelRepainter$FrameDisplay.run(Unknow
    n Source)
    at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(Unknown
    Source)
    at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(Unknown S
    ource)
    at com.sun.embeddedswing.EmbeddedEventQueue.doPulse(Unknown Source)
    - locked <0x24591090> (a java.lang.Object)
    at com.sun.embeddedswing.EmbeddedEventQueue.access$000(Unknown Source)
    at com.sun.embeddedswing.EmbeddedEventQueue$2.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.sun.embeddedswing.EmbeddedEventQueue.dispatchEvent(Unknown Source
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(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)
    Locked ownable synchronizers:
    - <0x29b02850> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
    "pool-1-thread-1" daemon prio=4 tid=0x062fd000 nid=0xd64 waiting on condition [0
    x0b28f000]
    java.lang.Thread.State: WAITING (parking)
    at sun.misc.Unsafe.park(Native Method)
    - parking to wait for <0x2459cf08> (a java.util.concurrent.locks.Abstra
    ctQueuedSynchronizer$ConditionObject)
    at java.util.concurrent.locks.LockSupport.park(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
    .await(Unknown Source)
    at java.util.concurrent.DelayQueue.take(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.tak
    e(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.tak
    e(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Locked ownable synchronizers:
    - None
    "Long sleeping thread" daemon prio=4 tid=0x062fc800 nid=0x1300 waiting on condit
    ion [0x0b1ff000]
    java.lang.Thread.State: TIMED_WAITING (sleeping)
    at java.lang.Thread.sleep(Native Method)
    at com.sun.scenario.animation.MasterTimer$LongSleepingThread.run(Unknown
    Source)
    Locked ownable synchronizers:
    - None
    "ConsoleWriterThread" daemon prio=6 tid=0x062fc400 nid=0x13a0 in Object.wait() [
    0x0a84f000]
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x29ac88c0> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:485)
    at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unkn
    own Source)
    - locked <0x29ac88c0> (a java.lang.Object)
    Locked ownable synchronizers:
    - None

  • JavaFX applet crashes while setting Group visible

    Hi,
    I have a big problem with my JavaFX applet. Sometimes I have to switch the visibility of some Groups in my applet. But often the GUI crashes and I have to close the browser and start it again. I think it's just the GUI that chrashes because the Java Console tells me the applet is running. Do anyone know how to fix this problem?
    Thanks,
    Tobi

    casperghost wrote:
    Do you mean that it just doesn't react anymore?Exactly. The GUI just freezes.
    var event:String = "" on replace   //if variable changes set visible
          if(event.equals("online"))
                 groupOffline.visible = false;
                 groupOnline.visible = true;
          if(event.equals("offline"))
                 groupOnline.visible = false;
                 groupOffline.visible = true;
    var groupOnline:Group = Group
         var text:Text = Text
              font : Font {
                   size: 24
              x: 50
              y: 100
              content: bind "{user} is online"
         var btn:MyButton = MyButton   //custom node
              title: "Test"
              posX: 100
              posY: 150
              action: function()
                   //Action
         content: [text, btn]
         visible: false;
    var groupOffline:Group = Group
         var text:Text = Text
              font : Font {
                   size: 24
              x: 50
              y: 100
              content: bind "{user} is offline"
         var btn:MyButton = MyButton   //custom node
              title: "Test2"
              posX: 100
              posY: 150
              action: function()
                   //Action
         content: [text, btn]
         visible: false;
    }I've shorten the code. There are more groups like them above. But it's always the same. If the event variable changes I set the visibility of the groups. But on Windows XP with Firefox and IE the GUI freezes sometimes. On Mac I haven't got this problem.

  • Connect JavaFx(Applets) to J2EE - best practice & browser session

    Hi there,
    I’m new to JavaFX and Applet programming but highly interested.
    What I don’t get at the moment is how you connect the locally executed code of the applet to your system running on a server (J2EE).
    Of course there seem to be different ways but I would like to avoid using RMI or things like that because of the problem with firewalls and proxies.
    So I would like to prefer using HTTP(s) connection.
    And here my questions:
    1.) Is there any best practice around? For example: using HTTP because of the problems I mentioned above. Sample code for offering java method via HTTP?
    2.) Is there a possibility to use the browser session? My J2EE applications are normally secured. If the user opens pages he has to login first and has than a valid session.
    Can I use the applet in one of those pages and use the browser environment to connect? I don’t want the user to input his credentials on every applet I provide. I would like to use the existing session.
    Thanks in advance
    Tom

    1) Yes. If you look at least at the numerous JavaFX official samples, you will find a number of them using HttpRequest to get data from various servers (Flickr, Amazon, Yahoo!, etc.). Actually, using HTTP quite insulates you from the kind of server: it doesn't matter if it run servlets or other Java EE stuff, PHP, Python or other. The applet only knows the HTTP API (GET and POST methods, perhaps some other REST stuff).
    2) It is too long since I last did Java EE (was still J2EE...), so I can't help much, perhaps somebody will shed more light on the topic. If the Web page can use JavaScript to access this browser session, it can provide this information to the JavaFX applet (JS <-> JavaFX communication works as well as with Java applets).

  • How deploy javafx Applet in Tomcat

    Hi all!
    Please help me. How i can deploy JavaFX Applet in Tomcat

    Are you using Netbeans or SDK?

  • How to get hold of the JavaFX applet in some java code called from it

    I have a scenario where I am trying to reuse some java libraries that existed before and used the Applet API. In order to give a new UI to these APIs I am redesigning the front end using JavaFX. I can create instances of java classes from these old libraries. Methods on these old classes take java.applet.Applet as an argument.
    When the JavaFX applet is deployed as an applet, how can one get hold of the corresponding Applet object?
    Thanks in advance.

    When run as an applet, FX.getArgument("javafx.applet") will return the JApplet instance.

  • JavaFX Applet only works with Netbeans

    Hello Together,
    i have a Problem with my JavaFX Applet. All works fine but only if Netbeans start the Browser Applikation or Netbeans is runing in the Background. If i start the Website with the Applet without Netbeans only the JavaFX Icon will schow and nothing happens.
    But the Java Platform is loaded if i start the Applet.
    I inserted the Applet via JS like this:
    <script src="http://dl.javafx.com/1.1/dtfx.js"></script>
    <script>
        javafx(
                  archive: "Applet.jar",
                  draggable: true,
                  width: 600,
                  height: 600,
                  code: "bewertung.Main",
                  name: "Bewertung"
    </script> Sorry for my bad english.

    I forget to Post the Message from the Java Console.
    java.io.FileNotFoundException: JNLP not available: classes/bewertungfx/Bewertung_browser.jnlp
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.io.FileNotFoundException: JNLP not available: classes/bewertungfx/Bewertung_browser.jnlp
    But the File classes/bewertungfx/Bewertung_browser.jnlp exists and is readable.

  • Do JavaFX applets tend to download faster than Swing applets?

    Historically, the biggest concern with Java applets is that they take too long to download.
    Is it true that JavaFX applets will download faster?
    In particular, by using CSS properties instead of all the Swing method calls, will JavaFX applets tend to be smaller and download faster (since the browser, not the bytecode, will do the work of translating the CSS code to graphics commands that the operating system can understand)?
    Thanks,
    John

    I do not think size is the main issue for startup.
    It is only applicable to cold start (i.e. first launch) as on subsequent launches jars will be coming from cache.
    And it does not impact much "perceived" startup as typically application can appear to be "live" earlier than it is fully loaded
    (e.g. using preloaders).
    For the warm start scenario it is still the same plugin but
    a) JavaFX applications are by default deployed in a way to minimize number of network connections
    b) JavaFX toolkit is initialized instead of AWT/Swing
    This gives JavaFX fundamental benefit over "Swing applet" scenario but ...
    a) it does not magically make it instant as jvm still need to be started, etc.
    (if your application is slow to start as standalone it will not be starting instantly in the browser)
    b) JavaFX runtime and Java deployment code may have bugs that lead to suboptimal performance
    Best is to give it its own try and see if it is fast enough for you.

  • JavaFX Applet launching issue on MAC OS 10.8.2

    On MAC OS 10.8.2, JavaFX Applet is launching fine when .jar or .jnlp file is executed; but from browser the applet is not launching.
    On Safari it's showing a message "Content can not be displayed using your Web browser. Please open this page using another browser".
    On FireFox 16.0.1 it's showing a message "JavaFX 2.0 is required to view the content but JavaFX is currently unsupported on this platform. Please consult the JavaXF documentation for list of supported platforms".
    Can some body help me regarding the same.

    If the Mac is running 10.8 there is some incompatibility between JavaFX and Safari on 10.8 which causes JavaFX not to work, perhaps because 10.8 was released after JavaFX 2.2. This incompatibility has fixed for an upcoming JavaFX release, e.g. JDK7u10 (JavaFX 2.2.4).
    See http://javafx-jira.kenai.com/browse/RT-23529 "Mac: FX applets do not load in OS X 10.8 + Safari"
    Embedding in Mac browsers was not supported for JavaFX 2.1.
    Support for embedding in some Mac browsers was added in JavaFX 2.2.
    - JavaFX will run in Safari on the Mac, but as of JavaFX 2.2.3, only when the Mac is running OSX 10.7.
    - JavaFX doesn't run in Chrome on the Mac currently => JavaFX on the Mac is only available in 64 bit and Chrome on the Mac is 32 bit.
    - JavaFX will run in Firefox on Mac OS 10.7 and 10.8.
    - JavaFX won't run in other browsers like Opera.
    Embedding JavaFX in Firefox, Chrome and IE on Windows has been supported since JavaFX 2.x was first released.

  • JavaFX Applet not loading in IE. How can i make it work in IE?

    My helloWorld JavaFX applet is not loading in IE, It does however load in firefox. Can anyone give me any advice on why it does not load in IE?
    Below is the log from the console when attempting to load in IE.
    exception: null.
    java.io.FileNotFoundException: JNLP not available: HelloApplet_browser.jnlp
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.io.FileNotFoundException: JNLP not available: HelloApplet_browser.jnlp
    I have also include the HTML I have used.
    <html>
    <head>
    <title>Wiki</title>
    </head>
    <body>
    <h1>Wiki</h1>
    <script src="http://dl.javafx.com/dtfx.js"></script>
    <script>
    javafx(
    archive: "HelloApplet.jar,javafxrt.jar,Scenario.jar",
    draggable: true,
    width: 150,
    height: 100,
    code: "HelloApplet",
    name: "Wiki"
    </script>
         END     compliled
    </body>
    </html>
    Edited by: CaptainRhino on Dec 17, 2008 8:26 PM

    Like any good developer I have fixed my problem.
    This blog gave me some clues and I think it comes down to how i have built and deployed it.
    http://lexique-du-net.com/blog/index.php?post/2008/12/08/Deploy-a-JavaFX-app-as-an-applet-with-the-Java-Deployement-Toolkit
    In the meantime to see it work in a browser i have opened it offline and just opened the html page that was in my dist folder created by netbeans.

  • Hide the java's logo in javafx applet

    How I can hide the java's logo during the execution of the javafx applet.I'd want execute javafx applet like flash app..
    Thanks a lot..

    Yes, but the javafx applet run on web page with this script:
    <script>
    javafx(
    archive: "ColorTraversalTest.jar",
    draggable: true,
    width: 250,
    height: 250,
    code: "misc.ColorTraversalTest",
    name: "ColorTraversalTest",
    id: "app"
    </script>
    how i can lunch the javafx applet whitout the java's logo.

  • JavaFX applet and embedded font. Browser compatibility?

    I'm trying to embed font to the JavaFX applet. I'm following instructions from [JavaFX Tutorial|http://download.oracle.com/javafx/1.3/tutorials/custom_fonts/index.html]
    It works fine on Mac OS X using Safari and Firefox browsers, but doesn't work in Chrome and Opera. As well it doesn't work in window's browsers!
    How to get it to work?
    Edited by: 842622 on Mar 8, 2011 4:29 AM

    Only workable solution yet is:
    def awtFont = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, Main.class.getResourceAsStream("custom font.ttf"));
    def m = java.awt.GraphicsEnvironment.class.getMethod("registerFont", java.awt.Font.class);
    m.invoke(java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(), awtFont);
    def fxFont = Font {name: awtFont.getName() size: 18}seems ugly, but works
    Edited by: fedotows on Mar 25, 2011 4:40 AM

  • JavaFx Applet Finalizer?

    Hi, I have the need to do some "cleanup" whenever the my JavaFx applet is closed for usage.
    Can someone point me to info on how to do that?

    FX.addShutdownAction(
        function():Void{
            //do something
        );

  • JavaFX Applet with User having JavaFX

    So I have built a JavaFX applet. It's a simple graph of an xml file. I have it embbed nicely on a webpage, but I am having an issue running it on random computers that may not have JavaFX and that I can't installe javaFX on(school computers, company computers etc.)
    Is there a way to have a JavaFX applet on a website, and not require the user to have JavaFX?
    Thanks!

    A JavaFX applet deployed in a browser must have Java, a JavaFX runtime, a browser and the JavaFX browser plugin installed.
    If the computers don't have Java or JavaFX installed, then (as long as the system will meets the minimum requirements for the runtime), the JavaFX applet deployment toolkit will provide instructions to the user for installing the right version of Java or JavaFX on their machine to run your application. The user must follow these instructions to be able to use your application. Further information is available here: http://docs.oracle.com/javafx/2.0/deployment/deployment_toolkit.htm
    If the user of the computer is unable (or does not want to) install software on the machine, e.g. the machine is in a library and the user does not have administration rights for software installs on the machine, then the user will be unable to use your application on that machine.

  • Javafx applet load error

    Hi
    i'm getting the following error while loading javafx applet in browser and javafx applet is not loading.Can some one suggest a solution to eliminate this error.
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: com/sun/javafx/runtime/location/NumericLocation
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.sun.javafx.runtime.adapter.Applet.launchStage(Unknown Source)
         at com.sun.javafx.runtime.adapter.Applet$1.lambda(Unknown Source)
         at com.sun.javafx.runtime.adapter.Applet$1.invoke(Unknown Source)
         at com.sun.javafx.runtime.adapter.Applet$1.invoke(Unknown Source)
         at com.sun.javafx.runtime.Entry$2.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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)
    Caused by: java.lang.ClassNotFoundException: com.sun.javafx.runtime.location.NumericLocation
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         ... 15 moreThanks in advance,
    Naveen

    This is the jnlp file i'm using.
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="./" href="videoPlayer.jnlp">
        <information>
            <title>Player</title>
            <vendor>xyz</vendor>
            <homepage href=""/>
            <description></description>
            <offline-allowed/>
            <shortcut>
                <desktop/>
            </shortcut>
        </information>
         <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.5+"/>
            <jar href="../sisJars/VideoPlayer.jar" main="true" download="eager" />
            <extension name="JavaFX Runtime" href="http://dl.javafx.com/javafx-rt.jnlp"/>
        </resources>
        <applet-desc name="VideoPlayer" main-class="com.sun.javafx.runtime.adapter.Applet" width="646" height="375">
            <param name="MainJavaFXScript" value="com.sis.recordit.jfx.player.Main">
        </applet-desc>
        </jnlp>Thanks

Maybe you are looking for