Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar files no longer open - desperate

 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a problem with my jar files. I downloaded a couple applications last week that were jar files. For some reason this week none of them will open. Last week I just double clicked on them and the applications opened this week they send me to the selecton box. I don't have anything that will open them. I even had a jar file opener(equivalent to winzip)but now it won't open. I have had some icons on my desktop change and I suspect I downloaded something.
Can anyone tell me what to do other than reloading my operating system.
jim
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

did you try the jar command!
jar -x jarfilename.jar
not sure if i understood you aorrectly.
- satya
 
Randall Twede
Ranch Hand
Posts: 4385
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jim,
do you have a virus protection program? If so try running it. Not sure thats your problem though.
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for getting back. I figured it out today. I ran a virus scan than uninstalled all the JAVA applications. When I reloaded them I found I had the old jre1.3 along with the jre1.3.0_01 so removed the old jre 1.3. I had the same problem. I loaded the old jre 1.3 back along with the new _01 and it works. For some reason it needs both. I removed the old 1.3 twice and it would not work so I'll just leave well enough alone.
thanks again
jim
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
satya,
I wanted to ask about the jar -x jarfilename.jar . I tried it with a jar file but it would not open. Is there something esle you must do to open them?
jim
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim, did you try it like this? jar xvf yourjarFile.jar. This is to extract the contents. If you just want to list the contents, do the following... jar tvf yourjarFile.jar. You may want to check the API for the meaning of each of these letters.
Bosun
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bosun,
Thank you. I tried them using a "-" in front of them like it appeared in DOS. I didn't think to try it without it.
Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic