• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help on Class loading Process

 
sanyam Goel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 7273
44
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sanyam Goel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 7273
44
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic