Brian Posted November 12, 2015 Share Posted November 12, 2015 (edited) So, obviously this is for a private script because the repo wouldn't allow for this but.. So I have a class - http://pastebin.com/nBNu8Vga And in my main script on start I have java.io.File myJar = new File("C:\\Users\\Brian\\Downloads\\javax.mail.jar"); try { CPath.addFile(myJar); } catch (IOException e) { e.printStackTrace(); } But i get the same missing errors I would as if the classpath was never added, so it's not getting added. Anyone have any ideas? Edited November 12, 2015 by Brian Quote Link to comment Share on other sites More sharing options...
Explv Posted November 12, 2015 Share Posted November 12, 2015 So, obviously this is for a private script because the repo wouldn't allow for this but.. So I have a class - http://pastebin.com/nBNu8Vga And in my main script on start I have try { CPath.addFile("C:\\Users\\Brian\\Downloads\\javax.mail.jar"); } catch (IOException e) { e.printStackTrace(); } But i get the same missing errors I would as if the classpath was never added, so it's not getting added. Anyone have any ideas? Why are you trying to do that Quote Link to comment Share on other sites More sharing options...
Brian Posted November 12, 2015 Author Share Posted November 12, 2015 Why are you trying to do that I am trying to use the javax.mail library so I can send an email(which goes to my phone via text) to myself when the bot pauses. Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted November 12, 2015 Share Posted November 12, 2015 (edited) I think you can just copy the jar in OSBot\DataEDIT: nvm I remember now, I ragequitted and just copied the whole jar (I was using libgrowl) in my script jar. I guess dynamic loading isn't going to work since the classloader loads the script first and then tries to resolve any references. -cp isn't going to work either cuz osbot launches a new process... Edited November 12, 2015 by Flamezzz Quote Link to comment Share on other sites More sharing options...