About java web start and *.jnlp

very strange. I can start it if I replace http://127.0.0.1/ with
file:///d:/ I copy the same .jar, .html, .jnlp to the www root, then my
browser can't start it, just display it as a text file. like the
following. Who knows what's happening here. Thanks!
<?xml version="1.0" encoding="UTF-8" ?>
- <jnlp spec="1.0+" codebase="http://127.0.0.1/test"
href="Geostatistics.jnlp">
- <information>
<title>Geostatistics Demo App</title>
<vendor>NCGIA UCSB</vendor>
<homepage href="http://127.0.0.1/test/Geostatistics.html" />
<description>This is an active learning demo for
geostatistics</description>
<icon href="../image/duke.jpg" />
<offline-allowed />
</information>
- <security>
<all-permissions />
</security>
- <resources>
<j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="classes.jar" />
</resources>
<application-desc main-class="sampling.SampleApp" />
</jnlp>

Hi,
-To make IE associate with .jnlp is the same way you set in the explorer.
-but i'm using Netscape which is my prefer.. I just set it in....
EDIT -> Preferences -> Navigator -> Helper Application -> [New Types]
then Set MIME : "application/x-java-jnlp-file" and Application to Use : javaws.exe (Java Web Start)...
ummm this should make Netscape See JNLP file and launch it with JWS...
PS. Ummm... I have to say that i'm newbie.. sometime i know how to make it works but i don't know how to make it work properly. So if somethings wrong, DON'T hesitate to give an advice. I really want to know how to make those work properly.
Hope it works.
Jeng

Similar Messages

  • Java Web Start and JNLP Problem

    Hi !
    I�m a student and i need your help for a work that i have to do.
    I have an aplication that parse an XML file.
    The XML file is in ther server, and when i run the aplication with Java Web
    Start and jnlp file i want that the application parse a XML file.
    is this possible??? how can i do ???
    if you dont understand please warn me, that i try to explain better..
    thanks, in advance.
    Rui Silva , Portugal

    I'm not sure that you need webstart.
    Just an applet will allow you to read a file from the server:
    Just open a URL pointing to the .xml file.
    Read the file into a buffer and then parse it.
    Now actually getting the applet to do something with the contents of the .xml file
    is more complicated. Presumably you need to write something which understands the
    contents of the .xml and does something in response to the contents.
    A signed java program can be run from with in webstart which can spawn processes on
    the local machine. os.systemExec("command a b c"); But of course that has cross platform
    problems.
    Good luck

  • Java Web Start and DeployDirector: What's the difference?

    I am the product manager for DeployDirector at Sitraka (now part of Quest Software). I'm NOT in sales; I'd simply like to provide you with some information.
    From talking with DeployDirector users and evaluators, and from my own discussions with the folks at Sun, I have discovered that there is great deal of confusion about the difference between Java Web Start and DeployDirector. I'd like to clarify this by periodically posting some information about the two.
    Though the products seem similar in concept, they are designed for different purposes. They both deploy, auto-update and manage the JRE for client-side Java applications, but beyond that, they are quite different.
    Java Web Start is ideally designed for applications deployed over the Internet, where application-provider trust is an issue. Why? The security sandbox guarantees that application can do no harm. (There's some good information about Java Web Start and sandbox apps on ScheduleWorld at http://www.scheduleworld.com/itsYourLife.html) Web Start's architecture simply consists of a client piece that interprets a JNLP file. Because of the sandbox and its simplicity, I believe JWS is best used for independent software vendors, independent developers, etc.
    Because DeployDirector is ideally designed for internal enterprise applications, it does not enforce the security sandbox. Trust is not an issue here, because internal users typically trust their internal IT group. DeployDirector's architecture consists of both a client and a server piece, which allows us to support more complex deployment and update scenarios (e.g., scheduled and optional updates) and applications management capabilities like rollback, reporting, exception monitoring, authentication/authorization out of the box. All of this is configured through the DeployDirector administration console.
    In some situations, DeployDirector may be unnecessary overhead. In other situations, Java Web Start simply does not provide enough capability and building in this into Web Start can be difficult.
    If you'd like more information, we have whitepapers and case studies (including one specifically about DeployDirector and JWS) available on our website at http://www.sitraka.com/software/deploydirector/
    If you'd like to discuss some of these differences, or if you have questions about DeployDirector, feel free to email me directly. (Or post here, of course.)
    Thanks,
    Sonal Champsee
    [email protected]

    Hi Gerald,
    Given what I know about your emnity towards DeployDirector (which is clearly illustrated in this thread: http://forum.java.sun.com/thread.jsp?thread=348061&forum=38&message=1446155 that was evidently a response to this article: http://www.javaworld.com/javaworld/jw-11-2002/jw-1122-autoupdate.html) I'm going to take a (pardon the expression) "don't feed the trolls" approach here.
    I'm simply re-iterate that JNLP, and its implementations such as Web Start and OpenJNLP, are designed for a very different set of users that DeployDirector. The differences in functionality between the two products reflect that.
    The enterprise has different requirements in a deployment mechanism for its internal, critical applications than software vendors and independant developers. DeployDirector addresses the requirements of the enterprise. Frankly, most of our recent customers only chose to buy the product after initially rejecting it and (unsucessfully) attempting to use JNLP and Web Start. Sometimes people only learn the hard way: different users have different requirements which are suited to different tools or technologies.
    Sonal

  • Mac OS 10.4.8 , Java Web Start and JRE version of 1.4.2 and 1.5.0 problem

    Hello,
    I've been searching internet and reading the problems related to Java Web Start and JNLP.
    But no solution I read can solve what I faced.
    I'm running Mac OS x 10.4.8 and Macintosh updates the Java in my machine so that it has Java version 1.4.2 and Java 1.5.0
    The application I'm running needs to be running in JRE 1.4.2.
    So I changed the Java Preferences so that the default Java setting is JRE 1.4.2. However, the JNLP application still running in Java 1.5.0
    So I changed the MIME and make sure the JNLP is opened with Java Web start instead. The Java Web start is for version 1.4.2. I also change its preference so that the console is opened.
    I tried to run the JNLP application once again. Java web start 1.4.2_09 starts and console open, but the Java Runtime is still showing Java 1.5.0
    I adjust the JNLP file so that the version is only showing 1.4.2_09 (ignoring all other variables of version 1.4.1, 1.4.2, etc found in the original JNLP file). That didn't work either.
    I search on methods on how to uninstall Java 1.5.0 in Mac - apple page told me that I can't do that unless I reinstall the whole OS.
    I am henceforth declare that I am stuck now !!!! Heellllpp....

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • Java Web Start and C++ executable

    Can anyone please help me to deploy an application including three C++ executables using Java Web Start?
    I packaged each .exe file into .jar and created a java program called "ExecTest" that attempt to launch the .exe by calling Runtime.exec (someapp.exe).
    My JNLP file looks like:
    <resources>
    <jar href="app/someapp.jar"/>
    <jar href="ExecTest.jar" />
    </resources>
    <application-desc main-class="ExecTest">
    The problem I am having is that Runtime.exec wants the full absolute pathname for the executables. But the cached jar files all have some arbitrary letters prefixed, so I cannot specify them beforehand.
    Any ideas?
    Thanks in advance.
    Suh from Toronto. (Go! Leafs Go!)

    I've deployed serialio.com's replacement for javax.comm via Java Web Start, and I managed to package the .dll in a .jar without any difficulties.
    Perhaps the System.loadLibrary() function knows about the renaming that Java Web Start does...
    If so, then the following might do the trick:
    - Use System.loadLibrary() to load your .exe file. Windows uses the same fileformat for DLLs and EXE files, and hence System.loadLibrary() should be a safe no-op. Presumably you are
    - Use System.mapLibraryName() to find the full path to your .exe.
    �yvind

  • Java Web Start and pack200

    Hi!
    What do I have to do to deploy my jar-archives that are packed with pack200? Do I have to change the jnlp files? Do I have to change any server settings?
    At the moment I successfully deploy our software using Java Web Start and simple jar files. If I pack with pack200 the archives shrink to 1/4 of the original size. That is nice, but when I put the xxx.jar.pack.gz files on our web server they are ignored by Java Web Start. Explicitly use the xxx.jar.pack.gz files in the jar arguments of the jnlp file doesn't work either (because JWS expects .jar archives there it tells me that the archives are corrupted).
    I figure that I have to change either the jnlp file, the server settings or the JWS clients settings.
    In another posting I have read that JWS in its normal configuration does not support pack200 at all. Is that correct? Or is there a straight-forward documentation how to use JWS with pack200?
    Thanks in advance,
    Chris,
    Hamburg

    Either the JWS plugin should try to request the "xxx.jar.pack.gz" file when it finds a "xxx.jar" reference in the jnlp file.No. You always request jar files, but the Accepted-Ecnoding can differ. If omitted or empty the server should send back the contents of the jar, if it's "gzip" than the stuff of the jar.gz (Content-Encoding: gzip) and if it "pack200-gzip" the stuff of the jar.pack.gz (Content-Encoding: pack200-gzip).
    The diagrams shown here make it pretty obvious:
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
    So... you need some server sided logic for handling that. If you can run servlets - great... just use Sun's example. If you can't, you'll need something else like apache's mod_rewrite and a php script.
    mod_rewrite is used for redirecting requests server sided. For example:
    http://onyx.bubblegumcrises.jp/jnlp/downloads/fake.jar [no real url]
    becomes:
    http://onyx.bubblegumcrises.jp/jnlp/jarbounce.php?file=fake.jar (internally) [no real url]
    by rewriting like this(jnlp/.htaccess):
    RewriteEngine On
    RewriteBase /jnlp
    RewriteRule downloads/(.*) jarbounce.php?file=$1 [NE]
    The php file then checks the filename (for security reasons) and the accepted encoding and sends the contents of a file (picked by AE and availability) back together with the correct headers (Content-Encoding reflecting the picked encoding and Content-Type set to "application/x-java-archive").
    I've written such a script yesterday and I'm going to make it public. However, I want to do some more checks before releasing it (I ended up here by googling around... I wanted to avoid reinventing the wheel again ;)).
    I'll post it over at JGO pretty soon now... in this thread:
    http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=OnLin;action=display;num=1097590751;start=0
    [I'm also planning to write an article about that, but that will take a bit longer]

  • Java Web Start and Java Preferences

    I am having trouble with Java Web Start and Java Preferences. I have tried reinstalling the update with the link http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105 update6.html but to no avail. What else can be done ? Moreover the file /System/Library/Frameworks/JavaVM.framework/Versions/A/ seems to be in place, but Java Web Start wont open and Java Preferences can't access cache files. Any ideas about how to resolve this? I have been having issues with Java for a long time and have already done a clean Leopard reinstall and all the Combo updates. Java Web Start and Java Preferences worked correctly for a while after that but seem to have gone haywire again.

    bump

  • The cache about Java Web Start

    can anybody tell me about the meaning of the jws cache structure?
    i want to konw the meaning of
    P8080
    DMJNLPExamples
    DMapp
    DMlib
    RTjbossall-client.jar
    RCjbossall-client.jar
    RMjbossall-client.jar
    what is meaning of the prefix of this directory and file?
    thanks in advance!
    Gordon

    Warning - the cache structure is internal to Java Web Start and subjuct to change between versions of javaws.
    In fact Sun has plans that would merge the webstart and plugin cache in 1.6.0, completely changing the structure.
    That being said, in the current format, the prefix chars are as follows (from the source bundle of 1.4.2):
    first leter is a Type, second leter is an Attribute:
    Types:
    public final static char DIRECTORY_TYPE = 'D'; // Used internally
    public final static char TEMP_TYPE = 'X'; // Used internally
    public final static char VERSION_TYPE = 'V'; // Used internally
    public final static char INDIRECT_TYPE = 'I'; // Used internally
    public final static char RESOURCE_TYPE = 'R'; // JAR/CLASS/IMAGE
    public final static char APPLICATION_TYPE = 'A'; // Application-Desc
    public final static char EXTENSION_TYPE = 'E'; // Extension-Desc
    public final static char MUFFIN_TYPE = 'P'; // Muffins!
    Attributes:
    public final static char MAIN_FILE_TAG = 'M'; // The main resource (Jar, image or muffin)
    public final static char NATIVELIB_FILE_TAG = 'N'; // A directory where a native lib jar gets expanded into
    public final static char TIMESTAMP_FILE_TAG = 'T'; // The timestamp file
    public final static char CERTIFICATE_FILE_TAG = 'C'; // A certificate stored with the resource
    public final static char LAP_FILE_TAG = 'L'; // LocalApplicationProperties
    public final static char MAPPED_IMAGE_FILE_TAG = 'B'; // Translated images (such as bmp)
    public final static char MUFFIN_ATTR_FILE_TAG = 'U'; // running out of letters - U is for mUffin
    /Dietz

  • Java Web Start and Firefox

    Hello!
    I want to use some java web start applications, which are started directly by clicking a link. My browser (firefox) doesn't know the java web start mime type (*.jnlp). Because of that I can only download the specific JNLP-File instead of executing this file to start the java app.
    There is no jnlp mime type in the firefox section Edit-->Preferences --> Application and I can't add a new mime type because there is no funkction to did that job.
    I have installed the jre and the jdk package. In firefox Tools --> Addons there is the plugin "Java Plug-in 1.6.0_19" listed.
    Has anybody an idea, who to add the jnlp mime type in firefox?
    Thanks for help!
    Best regards,
    Flasher

    Maybe this can help you.
    And related link in Ubuntu Forum.

  • Java Web Start and Policy File

    Hi,
    I've a problem for Java Web Start (JWS) in working with Policy File.
    I like to apply a policy file for a JWS application to fine tune the secuirty setting instead of granting permission in JWS.
    For an applet environment, I can apply policy file like this:
    appletviewer -J"-Djava.security.policy=all.policy" writeFile.html
    However, in JWS environment, I try to apply in JNLP file as below but fail:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://130.18.52.226:8080/testing/"
    >
    <information>
    <title>JWS JFrame App</title>
    <vendor>Java Developer Connection</vendor>
    <homepage href="http://java.sun.com/jdc" />
    <description>Demonstration of JNLP</description>
    <icon href="hsbc.gif" width="32" height="32" />
    </information>
    <resources>
    <j2se version="1.3*" />
    <property name="java.security.manager" value="x" />
    <property name="java.security.policy" value="testing.policy"/>
    <jar href="testing.jar"/>
    </resources>
    <application-desc main-class="JWSJFrameApp" />
    </jnlp>
    The error message like this:
    Java Web Start Console, started Tue Sep 03 09:59:36 CST 2002
    Java 2 Runtime Environment: Version 1.3.0 by Sun Microsystems Inc.
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.manager write)
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.policy write)
    Could anyone please help on this!
    Many thanks!
    Regards,
    Simon Ho

    There are two problems with what you are trying to do.
    First, setting a property PROP=VALUE in the jnlp file does not mean that java will be launched -DPROP=VALUE, instead, javawebstart will call System.setProperty(PROP,VALUE) before your apps main() is called. The difference is, the property will not be set at the time the VM is initialized.
    Second, the javaws security policy will not allow you to set arbitrary properties in an unsigned application. Only properties begining with "jnlp." or "javaws." (and possibly a few other specific props known to the native javaws code) can be set in an application unless <all-permissions> is specified and the app is signed.

  • Java Web Start and Cookies

    Hello All,
    We have the following scenario
    1) A user logs in to our website. The session information for the logged in user is maintained in the cookie.
    2) The User clicks the jnlp link to invoke the applet.
    3) The Java Web Start gets activiated and it tries to dowload the JNLP file.
    4) The Web start is not able to download the file since it cannot send the required cookie to the webserver and the webserver is denying the access.
    Is it possible to pass the existing session information (The session information is stored in cookie) from the browser to the java web start, so that the java webstart will pass the cookies for each subsequent access.
    Thanks and Regards
    Jagadeesh

    I have the following:
    Web page has a link to a servlet which dynamically creates the JNLP file.
    The servlet that produces the jnlp requires basic user authentication.
    When the link is click the Logon dialog appears. User logs in and the jnlp gets dynamically written. When the JNLP file is done being created by the servlet, this cause WebStart to execute the newly created jnlp masterpiece. Since WebStart does not share sessions with the browser, webstart causes the Logon dialog to appear again Forcing the confused user to re-login. What is up with that?
    Does Sun have a solution for this? Is noone doing authentication using webstart. This has to be a definite problem. Sure we could tell the users to login twice, then they would simply stop using our application.

  • Java web start and .JRXML

    Hello everyone.
    I have an application form calling from browsers from client side using Java web start (JNLP) and applications has one report (.jrxml file) which is placed at server. I could start application form from client browsers but at the time of executing report it does not respond. There is no message , I think does not find path of where .jrxml file is placed. Can any one help me. Pl. note that reports get executed when users presses button on form.
    With thanks !
    prashant

    bump

  • Java Web Start and MySQL driver

    I am trying to do a simple query on a MySQL database using the JDBC driver from http://www.mysql.com/downloads/api-jdbc-stable.html When I run my app, it works exactly as it should (connects to db, queries, displays in text boxes). When I package it and run it with Java Web Start, it gives the output below on the console. I have set security to all permissions in the jnlp file.
    Thanks,
    Andy
    Java Web Start Console, started Tue Sep 03 14:10:00 CDT 2002
    Java 2 Runtime Environment: Version 1.4.0_01 by Sun Microsystems Inc.
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:130)
         at SQL.<init>(SQL.java:102)
         at SQL.main(SQL.java:139)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:536)

    Answered my own question....
    Before: Class.forName("com.mysql.jdbc.Driver").newInstance();
    After: this.getClass().forName("com.mysql.jdbc.Driver").newInstance();
    Strange the first worked fine but not for JAWS...

  • Java web start and xforms

    Hi,
    I've written an application which uses Xforms to fill in and save a set of fields to a file and then uses an Xforms submission to launch a java web start application which reads in the saved data. This approach allows me to provide a simple forms gui and process the resultant data on the client side.
    However, this solution is limited and it would be much nicer if my web start application could read the xml instance data direct from the xforms submission (and provide data back to the form).
    I know it's a long shot, but is there a way of doing this? An XForms submission with a post or put simply overwrites my jnlp file if it has permission to do so (as one might expect).
    At the moment I do the following ...
    <xf:submission id="RunJava" method="get" action="http://www..../myfile.jnlp"/>
    If it were possible to do this then Xforms and java web start would make powerful allies imho.
    Thanks for any wisdom.
    -- Rupert

    bump

  • 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

Maybe you are looking for