Problem running JavaFX application as web applet / web start

Hi All,
I need to run a JavaFX application as applet in a web page. To do that I use the html page
generated by javafxpackager and all works fine if I launch the html page locally from my
pc but when I load the html page from web server the application runs slow till freezing the browser.
All jars are signed with a self-signed certificate, I've tried with Firefox, Chrome, IE and different servers.
Same problem with web start (jnlp), locally works fine, launched from web it freezes.
Enabling Java Console I've noticed a lot of log like:
basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
What am I doing wrong?
This is my jnlp (MyApp.jnlp)
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec = "1.0" xmlns:jfx = "http://javafx.com" codebase = "http://www.mysite.com/applet/" href = "MyApp.jnlp">
<information>
<title>MyApp</title>
<vendor>MyApp</vendor>
<description>Sample JavaFX 2.0 application.</description>
<homepage href = "http://www.mysite.com/applet/"/>
<offline-allowed/>
</information>
<resources>
<jfx:javafx-runtime version = "2.2+" href = "http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
</resources>
<resources>
<j2se version = "1.6+" href = "http://java.sun.com/products/autodl/j2se"/>
<jar href = "MyApp.jar" size = "2836601" download = "eager"/>
<jar href = "libs/gson-2.2.2.jar" size = "189285" download = "eager"/>
<jar href = "libs/sun.jar" size = "83743" download = "eager"/>
</resources>
<applet-desc width = "1280" height = "1024" main-class = "com.javafx.main.NoJavaFXFallback" name = "MyApp">
<param name = "requiredFXVersion" value = "2.2+"/>
</applet-desc>
<jfx:javafx-desc width = "1280" height = "1024" main-class = "test.App" name = "MyApp"/>
<update check = "background"/>
</jnlp>
and this my html page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My App</title>
<script src="http://java.com/js/dtjava.js"></script>
<script>
function launchApplication(jnlpfile) {
dtjava.launch( {
url : 'MyApp.jnlp'
javafx : '2.2+'
return false;
</script>
<script>
function javafxEmbed_fxApplication() {
dtjava.embed(
id : 'fxApplication',
url : 'MyApp.jnlp',
placeholder : 'MyAppId',
width : 1280,
height : 1024
javafx : '2.2+'
<!-- Embed FX application into web page once page is loaded -->
dtjava.addOnloadCallback(javafxEmbed_fxApplication);
</script>
</head>
<body>
          <div id="MyAppId"></div>
</body>
</html>
Thank you

Some more info,
I watched the web server logs and I found many repeated log entries like
"GET /applet/myapplet.html/META-INF/services/javax.xml.stream.XMLInputFactory HTTP/1.1" 404 19023 "-" "Mozilla/4.0 (Windows 7 6.1) Java/1.7.0_09"
Googling this I've found many posts regarding similar problems:
http://stackoverflow.com/questions/7997566/web-service-client-applet-keeps-asking-for-meta-inf-services-javax-xml-ws-sp
http://stackoverflow.com/questions/2340969/applet-served-by-java-web-start-resources-requested-to-web-server-before-look-i
It seems to be a strange Behaviour of the JNLPClassLoader that tries to load classes from server instead from jar or local class path.
Somebody suggests to remove all logging entries from code or to add "codebase_lookup = false" to applet parameters but this does not solve the problem.
I use FXML to define my UI and I think that every time an fxml is loaded JNLPClassLoader tries to load the xml parser (javax.xml.stream.XMLInputFactory)
from server.
Somebody have any idea?
Thank you.

Similar Messages

  • Problem running javafx application in web browser

    The application runs fine when i build it in netbeans and run it. but when i try running it in a web browser, it displays a blank square!
    the following is the html page that netbeans generated:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>tasklistinbrowser</title>
    </head>
    <body>
    <h1>tasklistinbrowser</h1>
    <script src="http://dl.javafx.com/1.3/dtfx.js"></script>
    <script>
    javafx(
    archive: "tasklistinbrowser.jar",
    width: 1000,
    height: 1000,
    code: "tasklistinbrowser.Main",
    name: "tasklistinbrowser"
    </script>
    </body>
    </html>does anyone know where i'm going wrong?

    I also have a problem when trying to run my application in a browser. (running with netbeans works)
    Only a grey shape appears.
    But it seems to be a problem with the application itself, because other applications can be run in my browser without any problems.
    any ideas? thanks

  • Issue in running JavaFX application in web browser

    Our team currently was developing a desktop application which now needs to be run in a web browser. Deployment is successful, but while running it in IE 8, the background color of the IE outside the stage (from the desktop application) is coming in grey color. Our applucation's background color is white, hence, this makes it look odd. The more peculiar thing is when we run the url in IE8, the first page (login page) comes without the grey part, ie the whole window is white colored. But after logout, (the login page should be made visible) only the stage size comes in white and the rest of the window comes in grey background color. Please help in fixing this.

    to answer your questions:
    how to set the browser size according to stage sizeTo resize area reserved for application in a web page you can access web page from inside of your app and use javascript to get a handle of application in the web page DOM and then set size on it as you need.
    See
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIAGHE
    and
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIBFGD
    How to get the handle for browser size here?For embedded application you will get initial Stage in the start() sized to browser allocated area.
    And you can you tip i referenced before to resize app if browser will change allocated area (due to user requests).
    However, i think your real question is different:
    that in the login page the stage size is smaller than the browser size we set while packagingDoes it mean your app pops create login stage first and then populate main stage?
    Then good app behavior is like:
    if (runningEmbedded) { //see tip 2.3.1 in the same guide
    //fill given stage with something - e.g. same background as web page or some image
    popLoginPage();
    //once user logged populate main stage
    populateMainStage();
    And create all assets for all stages in the init(). So in start you will only adding panels to the stages and creating new stages.
    You may need to erase "dummy" content from the main stage before you populate it.
    Hope this helps. If not, please explain what you app is doing in more details. What do you do with stage provided in start, how you create login and other stages.
    What you size your application to and what are stage dimensions.

  • Problem in executing javaFX application in web browser.

    Hi,
      When i execute javafx application in web browser the outcome will not fit to the screen.
       so what modifications i have to make so that it fits to the screen.

    Hi,
    you embed a javafx app like this in your html-file:
    <script>
        function javafxEmbed() {
            dtjava.embed(
                    url : 'ASimpleApp.jnlp',
                    placeholder : 'javafx-app-placeholder',
                    width : 1024,
                    height : 768,
                    jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iUGVyc293YXJlLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPlBlcnNvd2FyZTwvdGl0bGU+DQogICAgPHZlbmRvcj5QTUEgU29sdXRpb25zIEdtYkg8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+U2FtcGxlIEphdmFGWCAyLjAgYXBwbGljYXRpb24uPC9kZXNjcmlwdGlvbj4NCiAgICA8aWNvbiBocmVmPSJmaWxlOnNyYy9kYXRhL2ljb25zL2ljb24uaWNvIiAvPg0KICA8L2luZm9ybWF0aW9uPg0KICA8cmVzb3VyY2VzPg0KICAgIDxqZng6amF2YWZ4LXJ1bnRpbWUgdmVyc2lvbj0iMi4yKyIgaHJlZj0iaHR0cDovL2phdmFkbC5zdW4uY29tL3dlYmFwcHMvZG93bmxvYWQvR2V0RmlsZS9qYXZhZngtbGF0ZXN0L3dpbmRvd3MtaTU4Ni9qYXZhZngyLmpubHAiLz4NCiAgPC9yZXNvdXJjZXM+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iUGVyc293YXJlLmphciIgc2l6ZT0iNTIxODkyNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL0N1c3RvbUNvbnRyb2xzRlguamFyIiBzaXplPSI4NjQ4NyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL2pkb20tMi4wLjUuamFyIiBzaXplPSIzMjE0OTIiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9qZnh0cmFzLWxhYnMtMi4yLXI2LmphciIgc2l6ZT0iMTcwNzM4MyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL2p0ZHMtMS4zLjAuamFyIiBzaXplPSIzMjY4NTQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9wZGZib3gtYXBwLTEuOC4xLmphciIgc2l6ZT0iMTA4MTQyMDQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9zcWxqZGJjNC5qYXIiIHNpemU9IjU4NzIyNyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL3N1cGVyLWNzdi0yLjEuMC5qYXIiIHNpemU9IjEwMjEzNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCjxzZWN1cml0eT4NCiAgPGFsbC1wZXJtaXNzaW9ucy8+DQo8L3NlY3VyaXR5Pg0KICA8YXBwbGV0LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSIyLjIrIi8+DQogIDwvYXBwbGV0LWRlc2M+DQogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0icGVyc293YXJlLk1haW4iICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8Zng6cGFyYW0gbmFtZT0iTmFtZU9mQ29tcGFueSIgdmFsdWU9IlRlc3RDb21wYW55Ii8+DQogIDwvamZ4OmphdmFmeC1kZXNjPg0KICA8dXBkYXRlIGNoZWNrPSJiYWNrZ3JvdW5kIi8+DQo8L2pubHA+DQo='
                    javafx : '2.2+'
        <!-- Embed FX application into web page once page is loaded -->
        dtjava.addOnloadCallback(javafxEmbed);
    </script>
    if you change the values of width and height to '100%', your app will use the hole place of your html site.

  • I'm having problems with JavaFX applications run on raspberry pi!

    I'm having problems with JavaFX applications run on raspberry pi. I did all the steps of the videos of the course: overclocking, uncommented what I had to uncomment about the framebuffer but Exceptions are still happening. The Fireworks demo example does not work. Someone went through this problem? Java applications are ok. As the versions of java in netbeans project and also on "properties" and they are all JDK 8. So if someone can give a hint, I'm very grateful!

    Can you provide the exceptions you got so I can help you better?
    Would you like to do a coaching session for this?
    -Vinicius

  • Can't load Stylesheet while runing application on Web Start

    I've got an error "WARNING: com.sun.javafx.css.StyleManager$2 run Resource "null" not found" while runing application on Web Start.
    It works fine while running on local execution. I've already signed jar files. So, It shoud not have any problem with java security.
    I kept css in the jar fie. The code below is used for loading css file.
    String stylesheetName = "/theme/default.css";
    scene.getStylesheets().add(stylesheetName);There was a guy who had the same problem with me but there was still no solution for this problem yet. Applet and css
    Does anyone know how to fix it?

    Hello User,
    Your path is wrong. It can't be good if your css file is inside your jar. (This is not a javaFx problem)
    If you pacaked your application like that:
    myapp.jar
    -----theme
    ---------default.css
    You should try something like this:
    scene.getStylesheets().add(getClass().getClassLoader().getResource("/theme/default.css").toString());Niculaiu
    Edited by: San Nicula on Jul 27, 2011 12:50 AM

  • Problems to download with java web start

    Hola to all.
    I have the following problem. My application not discharge of the server when you exist a new version. The application runs off line but when exist a new version must download the last version, is the idea.
    If I execute for first time the "launch.jnlp" file ( that is to say in the client equipment never execute the application ) java web start connects and download correctly the application and starts application, and creates the icon on the screen. But if the application already existed java web start executes the application that there is in the client and not download the new version of the server. I think, that problem its happen because the time waiting the response of the server is too long, and executes the local application. To resolve this, i execute the application on java control panel in online mode, and this work ok, because find a new version.
    I leave you the launch.jnlp file.
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://XXX/sis/elpaso/" href="launch.jnlp">
        <information>
            <title>El Paso</title>
            <vendor>XXX</vendor>
            <homepage href="http://XXX/"/>
            <description>Sistema comercial de la empresa "El Paso".</description>
            <description kind="short">El Paso</description>
            <icon href="elpaso32.png" kind="default"/>
            <offline-allowed/>
            <shortcut online="false">
                             <desktop/>
                             <menu submenu="Sistemas XXX\El Paso"/>
                        </shortcut>
                        <related-content href="setup.jnlp">
                             <title>Configurar El Paso</title>
                             <description>Configuracion del sistema comercial de la empresa "El Paso"</description>
                             <icon href="elpasoSetup32.png" kind="default"/>
                             <offline-allowed/>
                             <shortcut online="false">
                                  <desktop/>
                                  <menu submenu="Sistemas XXX\El Paso"/>
                             </shortcut>
                        </related-content>
        </information>
        <security>
            <all-permissions/>
        </security>
        <update check="timeout" policy="always"/>
        <resources>
            <j2se version="1.6+"/>
            <extension name="jnlpcomponent1" href="jnlpcomponent1.jnlp"/>
        </resources>
        <application-desc main-class="elPaso.Main">
        </application-desc>
    </jnlp>

    The launch file seems invalid. Try checking it, and the entire launch, using JaNeLA.

  • Problem running java applications on Mac Mini.

    Hi all.
    I have a Mac Mini. Days ago, I started having problems running java applications. Right now, I can not run any java application or even a plugin into a web page.
    I downloaded and reinstalled java from Oracle website, but the problem remains unsolve.
    Anyone can help me?
    Thanks in advance.
    Carlos.

    azofra1 wrote:
    Hi all.
    I have a Mac Mini. Days ago, I started having problems running java applications. Right now, I can not run any java application or even a plugin into a web page.
    What error indications do you get? You have to enable error logging in the Java Control Panel to see the details.

  • Very Urgent Unable to Launch Application using Web Start using JDK 1.4.2

    Hi all
    I am very serious issue i have ejb client swing application that uses
    RMI to contact a session bean deployed in JBoss now i want the client app to be installed in the client machine using web start . Also i understand i require security permission to access network resources. so i have signed all the JAR files with same certificate created using self certificate avialiable in JDK by default also in the JNLP file in have included the following tag
    <security>
    <all-permissions/>
    </security>
    Now when I launch my application using Web start it gives an error that " Unsigned application is trying to access local resources"
    I unable to understand what could be the problem . Please help me with the steps to be followed where in client should be able to RMI call to the server
    Thanks in Advance
    Naveen

    You may have tried this already, but you might have to sign the jars via command line, outside any export process from your IDE.
    $ jarsigner {filename}.jar {key from keystore}
    I also had problems using webstart and RMI through an RCP
    Ben

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

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

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

  • Problem with win2000sp3 and Java web start

    I have JRE and Java web start (1.2.0_01, build b01) which come downloading file j2re-1_4_1_01-windows-i586-i.exe from sun.
    I have win2000pro running on my PC.
    I had updated win2000 to service pack 2 and everything was fine.
    Now i decided to update to service pack 3 (in the process I also updated other components) from Microsoft and:
    1) Java applets seem to be running fine within i.e.
    2) If i try to run an application from java web start my PC freezes and I have to restart it.
    3) Staroffice 6.0, which runs on Java, seems to be fine.
    I reinstalled both sp3 and jre etc, with no result.
    Is this a known problem?
    Thanks to all.
    Maurizio

    I suspect that you have hit a known problem with Swing on Java 1.4.1 with buggy video drivers. Do you have an ATI card? They are the worst offenders. ATI released new drivers for its Radeon line today. They fix the problem.

  • JNLP-run JavaFX application hangs in full screen on Mac

    Hi all,
    I am on Mac OS X 10.9 running JDK 7u45.
    I have the JNLP file below:
    <?xml version='1.0' encoding='UTF-8'?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/jnlpTester">
    <information>
    <title>Title</title>
    <vendor>Vendor</vendor>
    </information>
    <resources><jfx:javafx-runtime version="2.1+"/></resources>
    <resources><jar href="lib/jnlpTester.jar" main="true"/></resources>
    <application-desc main-class="application.JNLPTester"/>
    <security><all-permissions/></security>
    </jnlp>
    The jar file (jnlpTester.jar) contains the following JavaFX application:
    package application;
    import javafx.application.Application;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.ListView;
    import javafx.stage.Stage;
    public class JNLPTester extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) throws Exception {
            Parent root = new ListView<>();
            primaryStage.setTitle("Hello World");
            primaryStage.setScene(new Scene(root, 300, 275));
            primaryStage.show();
    The application starts without any problem (see http://tinypic.com/r/29glonq/5). However, when I click on the full screen icon, the application does not go to full screen and the interface hangs (see http://tinypic.com/r/2mwizk/5). When I run the application from my IDE (eclipse) there is no such problem (see http://tinypic.com/r/2gsleep/5).
    Would anyone have any idea about this?
    Many thanks in advance,
    Hayrettin

    No it's simple, but it's not exactly what you are looking for. What I use this for is just to be able to watch a video like an .avi on my tv while surfing the web or writing a document. I hook up the computer to the tv via HDMI and then set the screens up in extended mode(not mirroring) then just drag the VLC window to the TV screen and choose VLCs full screen once the video has started. The problem is it still acts like one monitor so if you do a desktop or full screen swipe on the MBP both screens swipe resulting in the video missing from the TV. So, as I said not excatly what you want, but works to some extent.

  • Problem running Oracle application server

    Hi,
    I have the following problem.
    After installing Oracle Web Server, I can't start it.
    This is the log file:
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    06/10/10 19:13:37 AVVERTENZA: Application.setConfig Application: system is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: Error loading module file:/C:/product/10.1.3/OracleAS_2/j2ee/home/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\product\10.1.3\OracleAS_2\j2ee\home\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
    Could not create the Java virtual machine.
    10-ott-2006 19.13.37 com.evermind.server.Application setConfig
    AVVERTENZA: Application: system is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: Error loading module file:/C:/product/10.1.3/OracleAS_2/j2ee/home/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\product\10.1.3\OracleAS_2\j2ee\home\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
    Could not create the Java virtual machine.
    06/10/10 19:13:37 Error initializing server: Error initializing ejb-modules: Error loading module file:/C:/product/10.1.3/OracleAS_2/j2ee/home/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\product\10.1.3\OracleAS_2\j2ee\home\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
    Could not create the Java virtual machine.
    06/10/10 19:13:37 Fatal error: server exiting
    Can you help me??
    Thanks
    Rocco

    Hi Recco,
    I hope I'm wrong , I think XP is not supported for AS.
    The second thing is U have not enough memory to run AS, that why U will always get problem with Java.
    The third thing is about your Env. I mis jre path
    ex. at your user profile & system profile just put for example
    ORACLE_HOMe just give your oracle software home
    by PATH U need to say for example c:\oracle_HOME/jre/1.4.2/bin
    Hear from U,
    Regards,
    Hamdy

  • "Run in Browser" and "Web start" errors

    Hello.
    i have a problem with JavaFX and running it outside NetBeans.
    yes, i tried googling it, tried searching this forum. i didnt find anything that could help me.
    the problem is:
    i started learning java fx with tutorials (lets say this one - http://docs.oracle.com/javafx/2/get_started/fxml_tutorial.htm )
    i got it running under netbeans, double click on jar in explorer and java -jar in command line.
    i tried to run jnlp file and ended up with senseless error (link to screenshot - http://i48.tinypic.com/30lc47t.png)
    i also tried to run html file (screenshot here - http://i46.tinypic.com/2u7snl5.png)
    and i do have java installed (after all, my netbeans somehow works...).
    i tried installing java with both 32 and 64 bit versions (my system is 64)
    i even installed java from the "click here to install java" link after normal SDK installation. guess what... nothing changed :)
    edit: instead install java it sometimes is "JavaFX application could not launch due to system configuration. See java.com/javafx for troubleshooting information." )
    i can upload my rar'ed project somewhere, but its really almost unchanged tutorial. and btw - i also tried it on other tutorials (simple and CSS) and it didnt work.
    BUT it did work on "hello world" tutorial (netbeans default).
    i really have no idea what to do next, so i'll be greatful for any tips
    best regards
    RD

    Hello.
    thx for response
    here are answers for ur questions:
    the applet from ur link (clock) works. ensemble (http://download.oracle.com/otndocs/products/javafx/2.0.2/samples/Ensemble/index.html#SAMPLES) also works.
    i currently have 64 bit jdk and jre installed, version 7 update 4, with javafx version 2.1.0.
    my browser promted me to install java again, so i did it. so i have also jre ver 7 u4 32bit and javafx 2.1.0 32bit
    link to screenshot is here: http://i50.tinypic.com/11l7ml0.png
    about full trace:
    Java Plug-in 10.4.1.255
    Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM
    User home directory = C:\Users\radoslaw.domanski
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    preloader: Construct preloader delegate
    network: Created version ID: 1.7.0.04
    network: Created version ID: 1.7
    temp: new XMLParser with source:
    temp: <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="Tutorial2 - Login.jnlp">
      <information>
        <title>Tutorial2 - Login</title>
        <vendor>radoslaw.domanski</vendor>
        <description>Sample JavaFX 2.0 application.</description>
        <offline-allowed/>
      </information>
      <resources>
        <jfx:javafx-runtime version="2.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
      </resources>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
      </resources>
      <applet-desc  width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback"  name="Tutorial2 - Login" >
        <param name="requiredFXVersion" value="2.0+"/>
      </applet>
      <jfx:javafx-desc  width="800" height="600" main-class="tutorial2.login.Tutorial2Login"  name="Tutorial2 - Login" />
      <update check="background"/>
    </jnlp>
    temp: <applet-desc> tag at line number 15 is not closed correctly
    temp:
    returning ROOT as follows:
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="Tutorial2 - Login.jnlp">
      <information>
        <title>Tutorial2 - Login</title>
        <vendor>radoslaw.domanski</vendor>
        <description>Sample JavaFX 2.0 application.</description>
        <offline-allowed/>
      </information>
      <resources>
        <javafx-runtime version="2.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
      </resources>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
      </resources>
      <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="Tutorial2 - Login">
        <param name="requiredFXVersion" value="2.0+"/>
      </applet-desc>
      <javafx-desc width="800" height="600" main-class="tutorial2.login.Tutorial2Login" name="Tutorial2 - Login"/>
      <update check="background"/>
    </jnlp>
    temp: returning LaunchDesc from XMLFormat.parse():
    <jnlp spec="1.0" codebase="file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/" href="file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp">
      <information>
        <title>Tutorial2 - Login</title>
        <vendor>radoslaw.domanski</vendor>
        <homepage href="null"/>
        <description>Sample JavaFX 2.0 application.</description>
        <offline-allowed/>
      </information>
      <update check="background" policy="always"/>
      <resources>
        <javafx-runtime version="2.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
        <java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
      </resources>
      <applet-desc name="Tutorial2 - Login" main-class="com.javafx.main.NoJavaFXFallback" documentbase="file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/" width="800" height="600">
        <param name="requiredFXVersion" value="2.0+"/>
      </applet-desc>
      <javafx-desc main-class="tutorial2.login.Tutorial2Login"/>
    </jnlp>
    preloader: Added pending event 1: ConfigEvent[type=SetVisible, value=true]
    network: Created version ID: 2.0+
    network: Created version ID: 1.6+
    network: Created version ID: 1.7.0.04
    network: Created version ID: 1.7.0.04
    network: Created version ID: 1.7
    basic: LaunchDesc location: file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp
    preloader: Enter wait for preloader jars to be loaded
    security: Security check for progress jars: allSigned=true
    preloader: Using preloader class: null com.sun.deploy.uitoolkit.impl.fx.FXApplet2Adapter@1fd4a63
    preloader: Using default preloader
    preloader: Delivering: ConfigEvent[type=SetVisible, value=true]
    preloader: Skipped all (0) download events prior to null
    preloader: Preloader jars loaded. Error state=null
    preloader: Done with loading of preloader jars. Error=null
    network: Created version ID: 1.0
    network: Created version ID: 7.0
    network: Created version ID: 6.0.18
    network: Created version ID: 6.0.10
    network: Created version ID: 6.0
    network: Created version ID: 1.5
    network: Created version ID: 1.0
    network: Created version ID: 2.0+
    basic: JRESelectException: ignored - relaunch not supported
    preloader: Start progressCheck thread
    basic: passing security checks; secureArgs:true, allSigned:false
    basic: JRESelectException: ignored - relaunch not supported
    basic: continuing launch in this VM
    network: LDUpdater: started background update check
    preloader: Delivering: DownloadEvent[type=verify,loaded=1, total=1, percent=100]
    preloader: Delivering: AppletInitEvent[type=CallConstructor]
    basic: JNLP2ClassLoader.findClass: tutorial2.login.Tutorial2Login: try again ..
    basic: JNLP2ClassLoader.findClass: tutorial2.login.Tutorial2Login: try again ..
    basic: JNLP2ClassLoader.findClass: tutorial2.login.Tutorial2Login: try again ..
    basic: JNLP2ClassLoader.findClass: tutorial2.login.Tutorial2Login: try again ..
    java.lang.ClassNotFoundException: tutorial2.login.Tutorial2Login
         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 sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: load: class tutorial2.login.Tutorial2Login not found.
    java.lang.ClassNotFoundException: tutorial2.login.Tutorial2Login
         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 sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    preloader: Delivering: ErrorEvent[url=null label=tutorial2.login.Tutorial2Login cause=tutorial2.login.Tutorial2Login
    preloader: Stop progressCheck thread
    ui: Can not hide splash as Javascript handle is not avaialble
    cache: Resource file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp has expired.
    network: ResponseCode for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : 200
    network: Encoding for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : null
    CacheEntry[file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp]: updateAvailable=true,lastModified=Tue May 08 17:10:03 CEST 2012,length=934
    cache: Resource file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp has expired.
    network: ResponseCode for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : 200
    network: Encoding for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : null
    CacheEntry[file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp]: updateAvailable=true,lastModified=Tue May 08 17:10:03 CEST 2012,length=934
    cache: Resource file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp has expired.
    network: ResponseCode for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : 200
    network: Encoding for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : null
    CacheEntry[file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp]: updateAvailable=true,lastModified=Tue May 08 17:10:03 CEST 2012,length=934
    cache: Resource file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp has expired.
    network: ResponseCode for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : 200
    network: Encoding for file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp : null
    network: Sever response: (length: 934, lastModified: Wed May 09 13:29:27 CEST 2012, downloadVersion: null, mimeType: application/x-java-jnlp-file)
    network: Downloading resource: file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp
         Content-Length: 934
         Content-Encoding: null
    network: Wrote URL file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp to File C:\Users\radoslaw.domanski\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\13\266793cd-686f133a-temp
    network: Cache: Enable a new CacheEntry: file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp
    network: Downloaded file:/C:/test_workspace/NetBeans/Tutorial2 - Login/dist/Tutorial2 - Login.jnlp: C:\Users\radoslaw.domanski\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\13\266793cd-686f133a
    temp: new XMLParser with source:
    temp: <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="Tutorial2 - Login.jnlp">
      <information>
        <title>Tutorial2 - Login</title>
        <vendor>radoslaw.domanski</vendor>
        <description>Sample JavaFX 2.0 application.</description>
        <offline-allowed/>
      </information>
      <resources>
        <jfx:javafx-runtime version="2.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
      </resources>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
      </resources>
      <applet-desc  width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback"  name="Tutorial2 - Login" >
        <param name="requiredFXVersion" value="2.0+"/>
      </applet>
      <jfx:javafx-desc  width="800" height="600" main-class="tutorial2.login.Tutorial2Login"  name="Tutorial2 - Login" />
      <update check="background"/>
    </jnlp>
    temp: <applet-desc> tag at line number 15 is not closed correctly
    temp:
    returning ROOT as follows:
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="Tutorial2 - Login.jnlp">
      <information>
        <title>Tutorial2 - Login</title>
        <vendor>radoslaw.domanski</vendor>
        <description>Sample JavaFX 2.0 application.</description>
        <offline-allowed/>
      </information>
      <resources>
        <javafx-runtime version="2.0+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
      </resources>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
      </resources>
      <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="Tutorial2 - Login">
        <param name="requiredFXVersion" value="2.0+"/>
      </applet-desc>
      <javafx-desc width="800" height="600" main-class="tutorial2.login.Tutorial2Login" name="Tutorial2 - Login"/>
      <update check="background"/>
    </jnlp>
    security: Blacklist revocation check is enabled
    security: Trusted libraries list check is enabled
    network: CleanupThread used 1359498 usi can see this:
    temp: <applet-desc> tag at line number 15 is not closed correctly
    nb did something wrong? no idea.
    and this:
    java.lang.ClassNotFoundException: tutorial2.login.Tutorial2Login
    its also strange becouse my project looks like that:
    http://i47.tinypic.com/o0a3wh.png
    and i double click the jnlp file here:
    http://i49.tinypic.com/2n8of1d.png
    this is rly confusing...
    i hope i gave u all information u need
    best regards
    EDIT:
    i downloaded LoginCSS.zip file from here:
    http://docs.oracle.com/javafx/2/get_started/basic_deployment.htm
    built it using netbeans and it worked.
    any idea what is wrong with configuration in my nb projects?
    whole project is here: http://www.filefactory.com/file/xjmov7xd77z/n/Tutorial3_-LoginCSS.rar
    Edited by: 932829 on 2012-05-09 07:05
    Edited by: 932829 on 2012-05-09 07:11

  • Problem running stanalone applications created to NetBeans 3.6!!

    Hello everybody.I am using NetBeans 3.6 with j2sdk1.4.2_05.
    I have implemented a jframe application and I would like to run it as a standalone application.
    As far as I know there are two ways to run a jframe as a standalone application.
    As a .bat file, inluded the "java <jframe name>" or via the Java Web Start.
    Actually, is any other way?
    When I try to run it from the command line I simple type:
         c:> java <jframe name >
    and it returns me the message:
    jframe.java:86: package org.netbeans.lib.awtextra does not exist
    getContentPane().add(txtf_statusbar, new org.netbeans.lib.awtextra.Absol
    uteConstraints(0, 210, 310, 20));
    Do I have to include the org.netbeans.lib.awtextra package in my classpath?
    How can I do that?
    Thank you. I really appreciate any help.

    Thank you.But...
    The awtextra folder of NetBeans is located in "C:\Program Files\NetBeans3.6\sources\org\netbeans\lib". I included this in the Path envirnoment variable. The jframe is my a JFame applications(standalone hopefully).The jframe is located in j2sdk1.4.2_05\MyProjects\jframe.
    I also typed from the command line the following:
    c:\j2sdk1.4.2_05\MyProjects\jframe> javac -classpath . Program Files\NetBeans3.6\sources\org\netbeans\lib\awtextra jframe.java
    and
    c:\j2sdk1.4.2_05\MyProjects\jframe> java -classpath .Program Files.NetBeans3.6.sources.org.netbeans.lib.awtextra jframe
    The same problem again.Cannot find package ord.netbeans.lib.awtextra
    Where is the wrong?

Maybe you are looking for