mylo Posted July 24, 2017 Posted July 24, 2017 (edited) Basically I wan't my bot to connect to IRC and send messages to the channel using this library https://github.com/TheLQ/pircbotx . The bot doesn't find the classes from the pircbotx library though so how would I go about fixink this? Edited July 24, 2017 by mylo
Qubit Posted July 24, 2017 Posted July 24, 2017 (edited) Yes to can import multiple libraries. You cannot extend two classes. This sounds like an easy workaround, I advise you to learn a little bit more about java.. Edited July 24, 2017 by Qubit
mylo Posted July 24, 2017 Author Posted July 24, 2017 4 minutes ago, Qubit said: Yes to can import multiple libraries. You cannot extend two classes. This sounds like an easy workaround, I advise you to learn a little bit more about java.. Yeah my bad i worded it so bad I'm importing 2 libraries but the problem is osbot can't find the external library.
Gary_Oak Posted July 24, 2017 Posted July 24, 2017 When you exported your jar did you have it package your externals with it?
mylo Posted July 24, 2017 Author Posted July 24, 2017 (edited) This is how I've set it up let me know if I've done something wrong @Gary_Oak. and I get this error [ERROR][07/25 12:25:40 AM]: Failed to load local script : com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeredCallbackFilter.class [ERROR][07/25 12:25:41 AM]: Failed to load local script : org/pircbotx/UserHostmask$1.class [ERROR][07/25 12:25:41 AM]: Failed to load local script : org/pircbotx/Channel$1.class [ERROR][07/25 12:25:41 AM]: Failed to load local script : org/pircbotx/MultiBotManager$BotFutureCallback.class Edited July 24, 2017 by mylo
Gary_Oak Posted July 24, 2017 Posted July 24, 2017 (edited) Normally I use Maven/ant/gradle to handle externals. But I think doing it without maven you need to tell add them to your class path manually, instead of just referencing them you should copy the jars your referencing and add them to your folder where your .class files are generated and then reference those ones there and include them in your export Edited July 25, 2017 by Gary_Oak