November 12, 201510 yr 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, 201510 yr by Brian
November 12, 201510 yr 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
November 12, 201510 yr Author 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.
November 12, 201510 yr 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, 201510 yr by Flamezzz
Create an account or sign in to comment