• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out JarInputStream and/or JarFile
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If they have no means of unzipping a jar then they have no means of unzipping a jar.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Surbhit Jain wrote:And its urgent....


Surbhit Jain wrote:as we want the solution urgently


EaseUp.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)

 
reply
    Bookmark Topic Watch Topic
  • New Topic