Search the Community
Showing results for tags 'class.forname'.
Found 1 result
Sushant posted a topic in How Do I?Hello everyone. Hope all well at Excelsior! We have an application, compiled through Jet, which we allow our customers to extend by writing plugins. Those plugins are class files (since our customers do not have a Jet installation). Now, our application locates their class by using Class.forName(pluginclassname) - this works fine. This plugin now needs to use functionality of the application for which it creates instances of the application's classes. The customer's plugin cannot directly reference the application's classes since all application classes are embedded within the .exe and thus javac cannot find it. Hence we have requested the customer to use Class.forName(applicationclass), which unfortunately does not work - it results in a ClassNotFoundException. My guess is that Jet is stripping the names of the classes when building the native executable. If so, how can i tell it to retain names for specific classes? Or is the solution more complex? Please note that we have a valid support contract. Best Regards, Sushant A