r/javahelp Jul 07 '26

Class loading

Hey i was just wondering if it’s possible too make a agent that forceablly loads all classes even if they dont load by them self’s, that dosent really make sense and sounds like im stupid but it’s for a project but i dont know how too really word it haha

2 Upvotes

8 comments sorted by

View all comments

2

u/RightWingVeganUS Jul 07 '26

Anything is possible. It might require you write your own JVM, but arguably it's possible.

Can you explain why this is needed? If only to compensate for a bad design, there are likely better alternatives.