aspose file tools*
The moose likes Java in General and the fly likes Need Help on Class loading Process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need Help on Class loading Process" Watch "Need Help on Class loading Process" New topic
Author

Need Help on Class loading Process

sanyam Goel
Greenhorn

Joined: Jan 30, 2012
Posts: 14

Hello everyone,
I have a question regarding java class loading. Can any one kindly suggest me a solution in case I want to load a java application through a custom class loader should i use a single loader or multiple loaders and why?? . Another question is in case I have non class files in my java application and I would like to load them how should I attempt this??

Thanks in advance

Sanyam
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

sanyam Goel wrote:
I have a question regarding java class loading. Can any one kindly suggest me a solution in case I want to load a java application through a custom class loader should i use a single loader or multiple loaders and why?? . Another question is in case I have non class files in my java application and I would like to load them how should I attempt this??


Using class loaders is a fairly advanced topic and not many people have to mess with that sort of thing. I have been developing in Java professionally for over a decade and have not once had the need to mess with class loaders, much less custom class loaders. What exactly are you trying to do that you need to mess with class loaders?

Regarding loading of non-class files, it depends on the kind of files you are talking about but they definitely can't be "loaded" using a class loader.


Junilu - [How to Ask Questions] [How to Answer Questions]
sanyam Goel
Greenhorn

Joined: Jan 30, 2012
Posts: 14
Junilu Lacar wrote:
sanyam Goel wrote:
I have a question regarding java class loading. Can any one kindly suggest me a solution in case I want to load a java application through a custom class loader should i use a single loader or multiple loaders and why?? . Another question is in case I have non class files in my java application and I would like to load them how should I attempt this??


Using class loaders is a fairly advanced topic and not many people have to mess with that sort of thing. I have been developing in Java professionally for over a decade and have not once had the need to mess with class loaders, much less custom class loaders. What exactly are you trying to do that you need to mess with class loaders?

Regarding loading of non-class files, it depends on the kind of files you are talking about but they definitely can't be "loaded" using a class loader.



I am working on reverse engineering of java bytecodes, My work starts with a custom loader using which I load all the contents of a jar into the memory before doing bytecode manipulation and that is why I need a class loader.

thanks and regards

please help as loading process is working fine for few jars for few it shows error
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

I'm pretty sure there are a lot tools already out there that can do that. Are you working on Yet Another Java Decompiler then?
sanyam Goel
Greenhorn

Joined: Jan 30, 2012
Posts: 14
Junilu Lacar wrote:I'm pretty sure there are a lot tools already out there that can do that. Are you working on Yet Another Java Decompiler then?


I am doing my thesis on this topic and it is not a decompiler it is a sequence diagram generation tool and there are tools for it too. However I do not have a novel / idea or project to work on... Can you suggest any better project in reverse engineering??

Thanks in advance

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help on Class loading Process
 
Similar Threads
what is the ClassLoader?
Insights on Class loading needed
Classnotfoundexception class.forName()
Order in which class is searched
What are classes loaded by bootstrap loader?