aspose file tools*
The moose likes Java in General and the fly likes How to Unjar a JAR file without JDK and without winzip/winrar ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to Unjar a JAR file without JDK and without winzip/winrar ??" Watch "How to Unjar a JAR file without JDK and without winzip/winrar ??" New topic
Author

How to Unjar a JAR file without JDK and without winzip/winrar ??

Surbhit Jain
Greenhorn

Joined: Mar 27, 2006
Posts: 3
Hi All,

For one of business scenario, I want to un Jar a JAR file.
The challenge here is it should happen without using JDK.
Also, the unjar should happen without winzip/winrar.
I only have JRE installed on that system (windows).


Is there any way, I can do it.
Its a client requirement & I am stuck into how to do this ??

Need help from you guys...

Thanks in advance...
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Check out JarInputStream and/or JarFile


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You have a client that wants to unzip a jar but doesn't want to install any software to unzip a jar?

You have a dumb client. Why do they want to unzip a jar anyway?
Surbhit Jain
Greenhorn

Joined: Mar 27, 2006
Posts: 3
David Newton wrote:You have a client that wants to unzip a jar but doesn't want to install any software to unzip a jar?

You have a dumb client. Why do they want to unzip a jar anyway?


Thats the answer even I am looking for.
To be honest, I really dont know.. Even we tried getting the answer for this wuestion, but couldnt get that...

Its the request for my client's client.. And we have to fulfill that...
And its urgent....

Surbhit Jain
Greenhorn

Joined: Mar 27, 2006
Posts: 3
Maneesh Godbole wrote:Check out JarInputStream and/or JarFile


Thanks Maneesh.

It seems that ths might solve the problem.
However, as we want the solution urgently, if possible, can you provide me some examples on the same.

I tried googling out, but couldnt get much good help..

I would really appreciate if you coudl provide me some examples on the same.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If they have no means of unzipping a jar then they have no means of unzipping a jar.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

Surbhit Jain wrote:And its urgent....

Surbhit Jain wrote:as we want the solution urgently

EaseUp.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Surbhit Jain wrote:

For one of business scenario, I want to un Jar a JAR file.
The challenge here is it should happen without using JDK.
Also, the unjar should happen without winzip/winrar.
I only have JRE installed on that system (windows).


Is there any way, I can do it.
Its a client requirement & I am stuck into how to do this ??


Are you really sure that you have got the requirement right? I have known of atleast one customer who had a similar (but not the same) requirement. They did not want to use Winzip or Winrar (some security issues) but they were ready to use a different approved product to unjar it. Have you asked your customer why they want to avoid those existing tools? That will help you understand their requirements better.

[My Blog] [JavaRanch Journal]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Surbhit Jain wrote:
However, as we want the solution urgently, if possible, can you provide me some examples on the same.
I tried googling out, but couldnt get much good help..


Strange.
When I googled it for "JarFile example" I got
About 682,000 results (0.14 seconds)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Unjar a JAR file without JDK and without winzip/winrar ??