• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to encode the Jar File  RSS feed

 
Nikhil Ramani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Java in General (intermediate) forum.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nikhil Ramani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!