Results 1 to 7 of 7
  1. #1
    jonkri is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default Run Deployed JAR Files From Web Start Application

    Hello people!

    I would like to like to be able to use Runtime.exec to start a Java application using the JAR files deployed with Java Web Start. As I have understood it, they are not automatically accessible in the local directory. I basically want to do:

    Java Code:
    Runtime.getRuntime().exec(javaCommand + " -Djava.library.path=. -jar " + jar);
    (For those of you wondering why I would do something like this is that I want to fetch standard output, standard error, and information about JVM crashes from a specific launcher since I'm doing a lot of native calls in my application and I need the feedback.)

    Thanks!

  2. #2
    Cate is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    Ur query reminds me of a similar situation I was in while deploying a java application (JAR file). But recently I used an open source search platform Solr (LucidWorks for Solr Certified Distribution Reference Guide | Enterprise Search support for Apache Lucene and Solr by Lucid Imagination ) where deployment issues were totally taken care of .

  3. #3
    jonkri is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    I have read a bit about Solr but I have failed to see how that solves my problem.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default

    Ohhhh...
    You're doing marketing while pretending to answer posts.

    Dear oh dear...

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default

    Ohhhh...
    You're doing marketing while pretending to answer posts.

    Dear oh dear...

  6. #6
    jonkri is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    I wonder... Solr seems to be be free and open source software, so I don't see much point advertising it. I searched the reference documentation for JNLP and Web Start but didn't get a single hit. I guess there could be some functionality with the "sandboxed" filesystem but I don't know. We'll see if he can elaborate.

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default

    Well, they did something similar in another just recently.
    Posting about some software that had nothing at all to do with the thread topic.

Similar Threads

  1. How to auto start Java application form browser
    By marcinz in forum New To Java
    Replies: 5
    Last Post: 04-03-2011, 05:30 PM
  2. Replies: 2
    Last Post: 03-16-2010, 10:02 AM
  3. RCP application via Web start
    By RonM in forum Eclipse
    Replies: 0
    Last Post: 10-02-2009, 12:15 PM
  4. How to start voice based application
    By pradnya in forum Sun Java Wireless Toolkit
    Replies: 3
    Last Post: 02-13-2009, 11:49 AM
  5. Debug JAR files used in an external application
    By ragnarahk in forum Eclipse
    Replies: 0
    Last Post: 09-22-2008, 05:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •