Jar file needs to be writeable?

Posted on 2006-11-16
Medium Priority
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 100 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 100 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.

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

765 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