• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Help on Class loading Process

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic