JNLP without web start...

Hi,
I would like to use JNLP as it I like the method of specifying an application's configuration, eg jars, properties and native libraries. It's more controlled and versionable than having to use a command line 3 metres long.
However, we use Marimba Castanet and I want to stick with that, so no need for Web Start. My question then is does the JNLP or another package have an API that will allow me to start a java application using a .jnlp file without going through web start?
Also I need my application to have unfettered securiry access without signing the jars, just as it does at the moment where the application is started from the command line.
Thanks, jamie

with that, so no need for Web Start. My question then
is does the JNLP or another package have an API that
will allow me to start a java application using a
.jnlp file without going through web start?Sun's Java Web Start is just one instance of a client that adheres to the JNLP specs.
There are others. One is
http://openjnlp.nanode.org
a commercial one is offered by Sitraka, if I remember right (deployment director?)
Also I need my application to have unfettered securiry access without signing the jars, just as it does at the moment where the application is started from the command line.What is bad about signing the jars and having the user to accept the certificate one time?
Any sane jnlp implementation will of course feature a similiar security model, or do you have such a trusted environment that you can execute anything?
Regards,
Marc

Similar Messages

  • What is the role of JNLP in web start?

    Sir,
        I am new to web start. I am able to run some application but may you please tell me when Protocol JNLP is work in it. And how the security features  are associate to it. Please explained  me the architecture of it.

    dude
    firstly its architecture is not that complex
    Secondly
    go to
    link:: java.sun.com/javase/technologies/desktop/javawebstart/index.jsp
    or type "HOW to use JNLP in java"
    in GOOGLE
    a tutorial with all basic steps will open up for you
    Happy

  • Syntax of the JNLP file (web start) for JFX to allow desktop shortcut/icon?

    I'm having a hard time getting this to work. I'm using NetBeans v7.1.2. First of all - the resulting .jnlp file comes with the applet, as well as the application specification. The classloader is different in both of the cases from what I've seen.
    <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="jwsapp" >
    <param name="requiredFXVersion" value="2.0+"/>
    </applet>
    <jfx:javafx-desc width="800" height="600" main-class="jwsapp.Main" name="jwsapp" />
    What I did was edit out the applet part - now there is no entry in the "Type" of application in the javaws cache, it's simply blank. And it's still launched as an applet (judging by the console trace). Now we have "<jfx:javafx-desc", instead of application-desc? What does that affect? Is it safe to just fallback to 'application-desc' (then the type is properly detected)? I haven't been able to find any info on this whatsoever.
    Shortcuts.. I have Java 2.1.1 installed and this:
              <shortcut online="false">
                   <desktop/>
              </shortcut>
    does absolutely nothing for me. The shortcut never appears (even though this addition to .jnlp was designated by NetBeans). Moreover, how would I go about attaching icons to this shortcut?
    Does anyone have a working .jnlp example, that is actually able to allocate a shortcut with a predefined icon on the desktop? Thank you.
    Edited by: 919083 on Aug 12, 2012 5:06 AM
    Edited by: 919083 on Aug 12, 2012 5:07 AM

    It works fine for me.
    I'm using latest FX samples and latest 7u6 on Mac OS X.
    Tested with slightly modified version of BrickBreaker.jnlp that includes
    <shortcut online="false">
    <desktop/>
    </shortcut>
    and the shortcut is always created to me.
    Could you please try the latest 7u6 build?
    If it's still reproducible, please file a new bug at http://javafx-jira.kenai.com/
    and also could you please attach an example to reproduce the problem?

  • Security Exception in Web Start

    Hi,
    I have an application that maps the users local directory to a JTree.
    I have implemented a drag and drop interface to move files from the user file system to a remote directory that sits on my server. The application runs fine without web start.
    On deplyoing with web start I get following exception when I try to copy a file from the local file system to the remote file system.
    java.security.AccessControlException: access denied (java.io.FilePermission D:\706\WS_FTP.LOG read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    My jnlp file has the security set to all permissions.
    <security>
         <all-permissions/>     
    </security>
    All my jar files are signed.
    The lines that causes the exception are below.
    DataSource ds = null;
    // getting the data from the file object f
    try{
    ds = new ByteArrayDataSource(f,null);
    }catch (IOException ioe)
    System.out.println("IOException creating data source for tranfer of file
    ioe.printStackTrace();
    DataHandler dh = new DataHandler(ds);
    // call is a Call object.
    call.setMethodName(methodName);
    My understanding of web start is that if I have the "all permissions" set and the jar files signed, I should have unrestricted access to the users file system. However I am getting an error.
    That about sums up my problems.
    I am absolutely lost and am eagerly awaiting some replies/suggestions/clues.
    Thanks
    Shahid

    I have this problem too. For me I have 3 jars but not the same key signed.
    When start app it ask user only one key add method in other class which not the same key throw exception
    java.security.AccessControlException: access denied(java.io.FilePermission C:\file.txt read)

  • 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

  • JFileChooser under Java Web Start

    I have a problem when using a JFileChooser - object
    in a Web Start Application:
    I always get the message that there is no disk
    in drive A:,
    even if I create the JFileChooser object
    with a default path String in the constructor
    JFileChosser fileChooser = new JFileChooser("c:\\");
    This does not happen when I start the application
    without Web Start.
    Can anybody help me ?
    Matthias

    Here's the link to bug 4458949
    http://developer.java.sun.com/developer/bugParade/bugs/4458949.html
    The easy workaround (if you have permission) is to call System.setSecurityManager(null). I actually use the following code to minimize the impact:
    SecurityManager backup = System.getSecurityManager();
    System.setSecurityManager(null);
    JFileChooser fileChooser = new JFileChooser(homeDir);
    System.setSecurityManager(backup);
    Rick

  • Making exe of application which work fine with Web start.

    Hello guys,
    i am working on on-line casino gaming.First thing i want to explain to you is about my current mechanism for downloading game.
    I have used JNLP and web start to download all necessary files at client side and it works fine..At every time it checks new jars are there or not...
    Now i want to make the exe of my java application which i can give to client on movable device like compact disk..so client can install the application from anywhere and play casino games..
    Now I want to know how to make on-line application as executable (exe) and every time it checks for updates which is supported right now by jnlp file..
    which thing i have to consider,which tool is easy to use,which mechanism can solve my query....
    please help me out...
    thank you in advance...

    Hi
    Chris RENAUD 768,
    First of all the PDF files should be set to be read by the application you developed by default.
    To set the default program:
    Control panel \Programs \Default Programs \Associate a file or protocol with a program
    In IE8 There used to be a key called HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}  which stored the File Types that could either
    Auto-Open or not. We can create a .bat file to automatically add a value here to achieve the goal.
    The code is as following:
    @ECHO OFF
    reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}
    if "%ERRORLEVEL%" EQU "1" (
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}" /f /v "PDF.File" /t REG_NONE
    Note: Please Back up the registry before you modified the registry and delete the key  {0002DF01-0000-0000-C000-000000000046} if it has existed in the registry before you ran the .bat file.
    Best regards

  • Unable to use JRE 1.4.2 in Web Start

    LS,
    I have installed Java 2 RE 1.4.2-beta and Web Start lists it under Preferences | Java. But when I try to launch an application with js2e version="1.4.2" specified in the JNLP-file, Web Start tries to download this JRE from java.sun.com. I read in an earlier post this is a documented bug. Web Start can't automatically download Java RE 1.4.2-beta, as is described in the how-to-guide. So I have to manually install the JRE and end up at the beginning of this tale. Can someone help me out of this circle?
    tia
    Mark

    Thanks Dan, I got it working.
    What I don't understand is, that when I specify j2se version=1.4.2 the error reads "Can't download 1.4.2-beta, while when specifying j2se version=1.4.2-beta, it suddenly can download this version. Anyway, it works.
    Mark

  • HT5559 Java web start does not work

    I have followed the instructions in this article, including the last step about web start, but it still does not work, neither applets or web start. When I try to launch a JWS application by double clicking it I get the dreaded warning dialog:
    To open this Web Start application, you need to download the Java Runtime Environment.
    Click “More Info…” to visit the website for the Java Runtime Environment.
    I do have a JRE installed, 1.6, since I for compatibility reasons can't upgrade.
    Trying to launch a web start application from the commandline looks like this:
    $ javaws /tmp/airview.jnlp
    Java Web Start splash screen process exiting ...
    Can not find message file: No such file or directory
    Regular Java-programs work fine.
    $ java -version
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

    Read this thread https://discussions.apple.com/thread/4789691?tstart=0
    This fixed the issue for me:
    sudo /usr/libexec/PlistBuddy -c "Delete :JavaWebComponentVersionMinimum" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta. plist
    In the comments to the linked article someone suggests to comment out the node in stead of deleting it. Probably safer (it's explained further down how to do that). Anyway I already spent to much time on this nonsense, deleted it and it worked, so I'm happy.

  • Java Web Start 1.6 fails to start application without Java Consol on Vista

    Hi All,
    I've faced with problem related to starting my application in IE 7 on Vista SP1 using Java Web Start (JRE 1.6.0_12 and 1.6.0_13). I suppose that issue appears after 11th update of JRE 1.6 since it works fine before.
    There were set settings to indicate initial and maximal size of the Java heap in the JNLP file.
    Application consist of 2 JAR files and they are signed with the same certificate.
    When user tried to start application there is no any activity after accepting certificate. After starting application javaw.exe just disappeared from processes list without any message or error.
    When I changed default setting in Java Control Panel to show Java Console, I noticed that the application began to start. But it's not a solution of the issue, since all customers cannot be required to turn on Java console.
    I believe this is a bug in JRE as the application starts with Java console and doesn't without it.
    When I browsed the web looking for the solution or an advice I found Release notes for 1.6.0_014 where it was said that 6u14 Java Web Start failed to launch and notifies that JARs were not signed, if an insecure Java system property was specified in a sandbox JNLP file. In spite of that 14th updated wasn't used and there was no notification I tried to start application without settings for the Java heap and it worked.
    Could someone help me with advice, since the application cannot be started with default heap size settings.
    Thanks in advance.
    Edited by: vovanst on Jul 28, 2009 8:06 AM

    Hi,
    as the 6u15 just arrived and the above mentioned bug should've been fixed (though I was unable to verify through the release notes), the error is still in there.
    We have no timestamped jars, neither ours nor the bouncy castle ones, all certs are valid, ours is self signed.
    6u13 runs, 6u14/6u15 won't.
    I followed the instructions here: http://bouncycastle.org/devmailarchive/msg10415.html to no avail.
    The bcprov.jar is wrapped in its own jnlp and referred as extension from the "main" jnlp.
    The interesting parts of the stack trace are these:
    Caused by (via getCause): java.lang.SecurityException: JCE cannot authenticate the provider BC
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    Caused by (via getCause): java.util.jar.JarException: Cannot parse https://localhost:8443/deploy/bcprov.jar
         at javax.crypto.SunJCE_c.a(DashoA13*..)
         at javax.crypto.SunJCE_b.b(DashoA13*..)
         at javax.crypto.SunJCE_b.a(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    For me it seems there's a problem with resolving the url of the bcprov.jar, which would explain the lack of a delay which normally occurs when JCE verifies the signature of the bcprov provider classes. The error pops up almost instantly.
    I'm clueless what to do now. Did Sun really achieve to completely destroy JCE provider functionality in Javaws, forcing us to use an alternative implementation?
    Patric

  • Firefox asks me everytime on JNLP files rather than its set 'Java Web Start'

    See I have classes with a 'Java Web Start' program which every week I download different JNLP files to start the Java program.
    I have set fire fox to use 'Java Web Start Launcher' for JNLP files but every time it ignores my setting and still asks every time. What can I do to make not ask and open the JNLP files?
    This Happened: Firefox does this all the time.
    I have Firefox 5.0 Installed.

    Hi,
    You mention that "I've downloaded "jcert.jar", "jnet.jar" and "jsse.jar" and put them in "..jre/lib/ext" used by JWS in client". Did you manually move these jar files into ..jre/lib/ext or using jnlp extension. I been trying to use jnlp extension (wanted to make it unnoticable to our client) to do this for a while now without luck. Can you tell me how you going about do this?
    thanks.

  • Java Web Start (JNLP) getResource return null.

    I have a Java Web Start Swing application and with the Java version 1.6.0_u27.
    same code run from jdk1.1.8 to jdk 1.6, more then 10 customers it's work fine, java web start only run on jdk 1.4.0 and jdk 1.5.0.
    just migrate one customer from Java version 1.5.0_u6 to 1.6.0_u27.
    sometimes, the getResource will return null, when system return null, then system cannot get any other resource, always return null.
    It only happen in Java web start environment, work fine in command line (java/javaw), and same as the WebStart loses resources post,
    "Unfortunately this cannot be reproduced easily. Sometimes this happens after some minutes, sometimes the application can be used for days without problems.",
    note. all of my resource files put in the same jar file, one resource file in that jar get fail, all files will be fail.
    after I get the url, I will use new BufferedInputStream(url.openStream()); to retrieve data, never use the File object.
    for example, get resource from "/path/a1.xml", "/path/a2.xml"....... 30 minutes pass, get same file "/path/a1.xml" will return null, then all resource will return null.
    URL url = getClass().getResource(s);
    if(url == null) {
    System.out.println(getClass().getResourceAsStream(s)); // also null, log only
    // if the url == null, the following retrieve will be null
    url = Thread.currentThread().getContextClassLoader().getResource(s);
    if(url == null){
    System.out.println(Thread.currentThread().getContextClassLoader().getResourceAsStream(s)); // also null, log only
    ClassLoader loader = getClass().getClassLoader();
    if(loader == null){
    loader = ClassLoader.getSystemClassLoader();
    if(loader != null) {
    System.out.println(loader.getResourceAsStream(s)); // also null, log only
    url = loader.getResource(s);
    if(url == null) {
    System.out.println("URL resource still can not found!!" + s);
    Edited by: M. Jwo on 2011/11/3 上午 5:40

    I ran into the same problem with JNLP and IE.
    Here is the trick I am using to make IE think that it is dealing with "real" .jnlp file. This works on JBoss-3.2.1/Tomcat-4.1.24 bundle.
    In web.xml:
    <servlet>
    <servlet-name>fakejnlp</servlet-name>
    <description>jsp that generates JNLP on the fly</description>
    <jsp-file>start.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>fakejnlp</servlet-name>
    <url-pattern>/start.jnlp</url-pattern>
    </servlet-mapping>
    Now, when you request start.jnlp (perhaps, with HTTP parameters), you end up executing your start.jsp. IE is happy. One limitation, though: if you need to pass parameters, there should be no href attribute in <jnlp> element.
    HTH
    Alex

  • Java web start error running Asset Editor or any jnlp page

    When I try to launch Asset Editor or Import/Export or any of the jnlp pages that runs using Java Web Start, I get an error. Java 7 Web start starts but It throws “Could not connect to Server. Please check your Java Web Start and Browser proxy settings”.
    I read conflicting opinions on the internet as to what version of JRE/JDK is needed and potentially some issues running Java Web start with Java 7. I have 64-bit java 1.7.0_45 JDK/JRE installed and no other version. I tried installing 32-bit 1.7.0_45 as well. I have tried to run it from 32-bit as well as 64-bit browser also. All situations provide the same error.
    However, when I install JRockit, it seems to work fine. But we cannot use jrockit. We have to use IBM JDK/JRE 7 eventually. Currently, the java web start does not work on Oracle Java as well as IBM JRE.
    Any help is much appreciated.

    I found a solution for this problem. We have to apply patch 17634436.
    https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?_afrLoop=149081897091441&patchId=17634436&_afrWindowMode=0&_adf.ctrl-state=xfsajjmff_74
    Just thought it will be useful for anyone encountering this problem.

  • Dynamic JNLP - displaying using java web start

    Hi,
    I am creating a dynamic JNLP in a servlet at the server side. Please see below.
    String someJnlpString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n" +
                                                "<jnlp .....    >    </jnlp>";       
            String attachment = "inline; filename=\"launch.jnlp";           
            String ct = "application/x-java-jnlp-file";
            OutputStreamWriter out = new OutputStreamWriter(response.getOutputStream());
            response.setContentType(ct);
            response.setHeader("Cache-Control", "max-age=30");
            response.setHeader("Content-disposition", attachment);
            out.write(someJnlpString);{code}
      Then in my JSP, I am trying to open this JNLP  by using the following code
    {code}        window.open('servlet/DisplayImage?arg=first-arg");The exception that I am getting is JNLParseException could not parse launch file. Error at line 0. If I open the downloaded file then its working.
    Can somebody please advise me how can I directly open that JNLP from the servlet by using java web start?
    Thanks a ton,
    Subhash

    I am able to run it now after clearing the java cache

  • 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

Maybe you are looking for

  • Satellite L300-215 - Webcam not working

    The webcam on my Satellite L300-215 has not worked since I downloaded the new Toshiba software months ago. The Chicony webcam is not even recognised and it will not install the Toshiba software. Two hours with Toshiba technical staff, including them

  • SQL Developer 1.1 not working

    I used SQL Developer 1.0 on my machine without any problems. Now I wanted to switch to 1.1. Installation and configuration works without errors even the "test connection" button works fine. But if I try to connect to the database clicking on th plus

  • How to get Exception detail

    Hi, I have attached Catch all activity to my process. Inside process calling database procedure that throws no data found exception. I want to capture in catchAll fault. I tried ora:getFaultAsString and ora:getFultName xpath function. But first one r

  • FLV Array question - final flv file looping

    So the first part of my question was kindly and quickly answered by Rothrock. But I've got a new question that has arisen. When I set these up as an array it's ignoring the settings in the parameter field for autorewind which is set to false and it's

  • Premiere CC 2014 Always regenerates peak files when switching between computers

    I have editing PCs at work and at home so I store my projects on portable hard drives, but every time I move to a different computer Premiere has to go through a regenerate the audio peak files. I have all of my computers set to store the PEK files n