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

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

 
Surbhit Jain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If they have no means of unzipping a jar then they have no means of unzipping a jar.
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surbhit Jain wrote:And its urgent....

Surbhit Jain wrote:as we want the solution urgently

EaseUp.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic