Results 1 to 3 of 3
  1. #1
    rjalori is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default Java webstart having problem with multiple jar files and resource files

    Hi,

    I have created a jnlp file using NetBeans IDE, which has one main jar file and 7 reference jar files. I also need to send a few jpg files and text files which should be stored on the local hard drive after installation. Apart from this I also have a few language files (.properties files) which are for the application to work on different regional settings.

    When I run the jnlp file from a browser, I get a lot of errors. The first error was to do with the signing of the jar files. Then there was a mismatch of signing of different jar files. To remove these errors, I removed the self-signed option in Netbeans.

    However, it then started giving errors as the same could not find the .properties files. Commenting the code for the language functionality, it then started giving errors for the local path. The code also creates a log file for which again it complains.

    If that part of the code is commented it gives another error. So, its a bit of a pain.

    My question is what is the best way of deploying an application developed in Java? I want to deploy it from a website and the same should be one file, when the same is downloaded, running it should unzip the contents and run the main .jar file. I am not sure how I would then implement the application updates which is in built in case of a webstart application.

    Also need this to work independent of the platform it is run on

    Your help will be much appreciated.
    Thanks
    Last edited by rjalori; 06-10-2011 at 08:23 PM.

  2. #2
    Mrc0d3r's Avatar
    Mrc0d3r is offline Member
    Join Date
    Jun 2011
    Location
    TCP/IP Layer 3
    Posts
    7
    Rep Power
    0

    Default

    Start off with this

  3. #3
    rjalori is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    hi
    Now I have created a single jar file including multiple jar files by editing build.xml. but i am trying to create jnlp file for that jar, It is created successfully but when I run it then it is throwing an error.

    "access denied (java.lang.RuntimePermission accessDeclaredMembers)11/06/2011 An unexpected error occurred
    access denied(java.lang.RuntimePermission accessDeclaredMembers)
    ProductAPI.java230>>getProductListFromAPI()"

    Line No. 230 is
    JAXBContext jaxbContext = JAXBContext.newInstance(ProductListAPIWrapper.clas s);

    Your help will be much appreciated.
    Thanks

Similar Threads

  1. Runnable jar does not include my resource files
    By owboateng in forum Eclipse
    Replies: 2
    Last Post: 05-09-2011, 01:54 PM
  2. run multiple jar files by one click
    By wallacetju in forum New To Java
    Replies: 2
    Last Post: 02-06-2011, 07:20 AM
  3. multiple java files with single connection code
    By hitesh in forum Advanced Java
    Replies: 7
    Last Post: 11-23-2010, 08:18 AM
  4. Replies: 8
    Last Post: 07-30-2010, 05:47 PM
  5. multiple class files
    By nemesys571 in forum Eclipse
    Replies: 0
    Last Post: 06-26-2008, 01:58 AM

Posting Permissions

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