Jar file needs to be writeable?

Posted on 2006-11-16
Last Modified: 2010-03-31
When I built the last installable the applet would not run on the test machine. The problem turned out to be that I had introduced a new jar file (Tablelayout.jar - layout manager) and the jar file needed to have the readonly flag _off_. I Made the jar writeable and it all worked.

Can someone explain this?
Question by:tomcorcoran
  • 3
  • 3
LVL 86

Accepted Solution

CEHJ earned 25 total points
ID: 17954955
Sounds odd to me - a jar is inherently unwriteable

Author Comment

ID: 17955006
Indeed. Just to clarify, when I say I made it writeable, I simply removed the readonly attribute.
LVL 24

Assisted Solution

sciuriware earned 25 total points
ID: 17955279
I think that inside the .jar there is some code that tests from what .jar
the program is run and if it is set writeable. This is all well possible in JAVA.
Normally a running .jar is not writeable because it is in use, like CEHJ said.
I believe it is just some trick or weird programming to do so.

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Author Comment

ID: 18020870
If the 3rd party layout manager jar (tablelayout.jar) is not writeable my code will not work.  I just use tablelayout at normal. Anyone got any explanations?
LVL 24

Expert Comment

ID: 18025754
I gave you explanations.
Normally .jar's are not set to readonly, so that's the case.
Why not deploy it and ignore the state of the file?


Author Comment

ID: 18038471
thanks. not finding it easy to follow your posts. i have deployed it. i was looking for an explanation. no one has given one. thanks.
LVL 24

Expert Comment

ID: 18043337
How could we explain what's hidden inside the .jar?

I think that the 3rd post is the best we could do.
Else, why not contact the originator of the .jar? If they know it .....
It could be nothing more than a mistake ....


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 114
MySQL  on Tomcat 8 68
Eclipse for Java EE development 2 27
passing enum to a method 3 16
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question