Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

extension tag not validated by JaNeLa

843802Sep 13 2010 — edited Sep 15 2010
Hello I'm making one javafx application from Netbeans 6.8

I 've already deployed and even check from JaNeLa but it gives some red maks for extension tag:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'extension'. One of '{property, package}' is expected.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'extension'. One of '{property, package}' is expected.
So I've even deleted the extension and finally validate my jnlp.

But my javafx application won't work when I deleted extension tag

My jnlp looks like this:(before deleting extension tag)
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://java.webnep.com.np/twitter/" href="Twitter_browser.jnlp">
    <information>
        <title>Tweet World</title>
        <vendor>WEBNEP</vendor>
        <homepage href="http://java.webnep.com.np/twitter/"/>
        <description>Twitter Application</description>
        <icon kind="splash" href="http://dl.javafx.com/1.3/splash.png"/>
        
    </information>
	
	<security>
		<all-permissions />
	</security>
	
	<update check="always" policy="always" />
    
    <resources>
		
        <j2se version="1.5+"/>		
	<jar href="Twitter.jar" main="true" size="578357" download="eager"/>
        <jar href="lib/bitlyj-2.0.0-SNAPSHOT.jar" size="26811" download="eager"/>
        <jar href="lib/twitter4j-core-2.1.4-SNAPSHOT.jar" size="417767" download="eager"/>
        <jar href="lib/restfb-1.5.2.jar" size="176371" download="eager"/>
        <jar href="lib/log4j-1.2.16.jar" size="496974" download="eager"/>	
        <property name="jnlp.packEnabled" value="true"/>
        <property name="jnlp.versionEnabled" value="true"/>
        <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.3/javafx-rt.jnlp"/>
        
    </resources>

    <applet-desc name="Twitter" main-class="com.sun.javafx.runtime.adapter.Applet" width="640" height="451">
        <param name="MainJavaFXScript" value="twitter.Main"/>
    </applet-desc>
    
</jnlp>
Further more suddenly today my javafx application is not running any more. Is there any problem with javafx ->js.
My html page is like this:
<script src="http://dl.javafx.com/1.3/dtfx.js"></script>
<script>


    // Get value of "access_token" from URL
    var url = window.location.href;
    var index = url.indexOf('access_token=') + 13;
    var accessToken = url.substring(index,url.indexOf('&'));


    javafx(
        {
				  
              archive: "http://webnep.com.np/java/twitter/Twitter.jar",
              draggable: true,
              width: 640,
              height: 451,
              code: "twitter.Main",
              name: "Tweet World"
        },
		
      {
            access_token: accessToken,
	    "progress.icon.url" : "img/logo.png",
	    "progress.icon.x" : 220,
	    "progress.icon.y" : 20			
        }
		
    );
</script>
Edited by: narayan_gop_mah on Sep 13, 2010 10:33 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2010
Added on Sep 13 2010
2 comments
322 views