#Java reflects

3 messages · Page 1 of 1 (latest)

grim harbor
#

I have three projects, Springboot and tow maven projects(Main Project, Pluginloader, TestPlugin)
I import Websocket into Springboot project and write a class for it(a class for Websocket Server). And import Websocket into Pluginloader(wrote a class for Websocket Client).
when Springboot starts, Pluginloader will be called by the reflection method written in springboot, and the class of WebsocketClient will be executed to establish a connection with the WebsocketServer in Springboot
When Pluginloader called, the TestPlugin project will be called by reflection too.
But now, because I use Pluginloader as a dependency in Testplugin, Testplugin will throw an exception after called: ClassNotFoundException

I want to know how to solve this problem. Can you give me some idea?

novel fulcrumBOT
#

This post has been reserved for your question.

Hey @grim harbor! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.