This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to encode the Jar File

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Java in General (intermediate) forum.
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic