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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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.

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.


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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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
couple of eclipse 5 54
xampp tool 12 60
maven not picking latest jar instead picking old jar from .m2 12 51
junit example issue 2 30
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

696 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