Results 1 to 3 of 3
- 06-10-2011, 08:20 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 3
- Rep Power
- 0
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.
ThanksLast edited by rjalori; 06-10-2011 at 08:23 PM.
- 06-11-2011, 04:50 AM #2
Start off with this
- 06-11-2011, 01:54 PM #3
Member
- Join Date
- Jun 2011
- Posts
- 3
- Rep Power
- 0
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
-
Runnable jar does not include my resource files
By owboateng in forum EclipseReplies: 2Last Post: 05-09-2011, 01:54 PM -
run multiple jar files by one click
By wallacetju in forum New To JavaReplies: 2Last Post: 02-06-2011, 07:20 AM -
multiple java files with single connection code
By hitesh in forum Advanced JavaReplies: 7Last Post: 11-23-2010, 08:18 AM -
Convert avi, mpeg, wmv media files to .flv files in java code
By vinay1497 in forum New To JavaReplies: 8Last Post: 07-30-2010, 05:47 PM -
multiple class files
By nemesys571 in forum EclipseReplies: 0Last Post: 06-26-2008, 01:58 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks