Solved

Jar file needs to be writeable?

Posted on 2006-11-16
9
244 Views
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?
0
Comment
Question by:tomcorcoran
  • 3
  • 3
9 Comments
 
LVL 86

Accepted Solution

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

Author Comment

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

Assisted Solution

by:sciuriware
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.

;JOOP!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:tomcorcoran
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?
0
 
LVL 24

Expert Comment

by:sciuriware
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?

;JOOP!
0
 

Author Comment

by:tomcorcoran
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.
0
 
LVL 24

Expert Comment

by:sciuriware
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 ....

;JOOP!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven example error 3 52
JUnit 4 @Before and @BeforeClass differences 3 48
Java DateChooser? 3 29
varialbe initialization 11 30
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now