This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to encode the Jar File Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to encode the Jar File" Watch "How to encode the Jar File" New topic
Author

How to encode the Jar File

Nikhil Ramani
Greenhorn

Joined: Dec 28, 2004
Posts: 8
Hi frienz..
i am facing a problem i have to encode the jar file and i am not able to do it .
I am working in Java
Please do help me..
Thanx
Nikhil


Impossible is Nothing.....<br /> <br />Nikhil
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56215
    
  13

Moving to the Java in General (intermediate) forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1865
Hi Nikhil,

How you are trying to encode the Jar file and what problems you face? More details would help in understanding the problem nature and in spitting out ideas..

Personally, I have not encoded a Jar file so far ...for what you would need that? Because if we encode the jar, at some point we would have to decode it and it would depend where its supposed to be used...I guess -- as we put jar file in some sort of Classpath the system has to read the jar and if we encode it how system would know to decode it??

I am trying to understand why you would need encoding a Jar file?

Regards
Maulin


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
Nikhil Ramani
Greenhorn

Joined: Dec 28, 2004
Posts: 8
Originally posted by Maulin Vasavada:
Hi Nikhil,

How you are trying to encode the Jar file and what problems you face? More details would help in understanding the problem nature and in spitting out ideas..

Personally, I have not encoded a Jar file so far ...for what you would need that? Because if we encode the jar, at some point we would have to decode it and it would depend where its supposed to be used...I guess -- as we put jar file in some sort of Classpath the system has to read the jar and if we encode it how system would know to decode it??

I am trying to understand why you would need encoding a Jar file?

Regards
Maulin


Hi Maulin
First of all Thanx for the concern
I am first reading the jar file... The output is shockin indeed..
Then if i try to encode it using Base64 then it gives me a error that we use a Byte stream to encode ...
We cannot encode a String using Base64...
Thanx in advance
Nikhil
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to encode the Jar File
 
Similar Threads
How to MIME encode a jar file?
Base64
encoding URL in (href element of) JSP without scriptlets
URLEncoder & URLDecoder
Chinese language support to web application