Go Back   Java Programming Forums > Java Standard Edition Programming Help > Java Theory & Questions


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-02-2010, 01:08 PM
Junior Member
 

Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mark111 is on a distinguished road
Default implementing interface from encrypted jar

Hello,

I have a jar file that is encrypted and I have a class loader that is able to load the classes. In the jar file there is also interfaces that I would like to implement in my main program. How would I go about doing this. I cant find any way of extracting interfaces from jar files.

If you require more info on what I mean please let me know.

Thanks Mark.



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 24-02-2010, 09:25 PM
copeg's Avatar
Moderator
 
9 Highscores

Join Date: Oct 2009
Posts: 570
Thanks: 7
Thanked 131 Times in 125 Posts
copeg will become famous soon enoughcopeg will become famous soon enough

I'm feeling Sleepy
Default Re: implementing interface from encrypted jar

Is this an encrypted jar, or just a packaged jar? Big difference in that you need to know the encryption to decrypt prior to accessing. If its just a packaged jar file, you need to specify the classpath when compiling and running. There are several ways to do so depending upon how you are compiling and running, so you can google "java classpath" and pull up all the different methods.
Reply With Quote
  #3 (permalink)  
Old 25-02-2010, 06:38 PM
Junior Member
 

Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mark111 is on a distinguished road
Default Re: implementing interface from encrypted jar

The jar is encrypted like I said in my original message. The class loader decryptes the classes and I can load the classes by doing the following.

MyClassloader test = new MyClassloader();
Class AClass = test.loadClass("com.AClass");

What I want to do is something like this.

public class TestImplement implements test.loadClass("com.Impclass")
{
}

I have looked at Proxy classes but I dont think what i am doing is possible.

Last edited by mark111; 25-02-2010 at 06:40 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface Implementation Samyx Object Oriented Programming 1 02-12-2009 07:46 AM
what is the use of transient class and serializable interface? chinni Object Oriented Programming 3 28-10-2009 09:48 PM
SOMEONE PLEASE HELP ME ADD THE ACTIONLISTENER INTERFACE... beginning2Understand AWT / Java Swing 5 30-06-2009 05:42 AM
A question about the Set interface. Please help. marksquall Collections and Generics 3 08-06-2009 07:49 AM
Problem implementing a user interface using a menu Rastabot File I/O & Other I/O Streams 3 03-04-2009 09:38 PM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jbutton java jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 01:51 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.