Jump to content

CrackplanetsCrac

Members
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CrackplanetsCrac's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Got it to work in the end, but instantly got greeted with a Blocked permission message.
  2. Thanks for taking the time! After some more testing i noticed that some kotlin files are needed that i did not include. Trying to find out where to download those now, my issue with your way of doing it might not be the method, but rather me missing a jar in my lib. I let you know once i know more. Quick side note, any clue if this would work with maven projects? it would take alot of manual jars out of my hands.
  3. Rxjava, maybe jackson, or log4j. I know that for alot of them there are default once, but those libraries are often easyer, quicker or just cleaner. And i like to be able to just use them when ever. Hell even doubtfull now if maven would even work.
  4. After some more testing i did get to start my client by doing wat @liverare suggested i did get my script to work, it nicely boots the osbot client, but once i then try and run a script that makes use of the library's i still get the errors And alot more then i am willing to show (100's of lines of errors, basicly just one for every class)
  5. Just alot more experiance using these, but as it look now its gonna end up being the way that you are sugesting. Just a shame, beccause this would also allow for more then just this, if i ever end up needing something else, then i still won't be able to do it, so kinda hoped i would find a working solution regardless.
  6. @liverare I quickly tried it (couldn't help myself) I got a folder on the dekstop called OsBot-api inthere a folder called lib and a bat file containing java -cp "lib/*" org.osbot.Boot -debug and then in the lib folder all the jar's including osbot But whenever i run the command it throws and error at me Error: Could not find or load main class org.osbot.Boot Neither when i point it directly to my java install.
  7. @Explv So i got that, and it compiles nicely, i then run osbot through cmd like java -jar "path/to/osbot/jar" -debug sadly enough when then checking the script tab the out put it generates gives me alot of complains If i then try to run it regardless it throws me an uncaught exception So i must be doing something wrong, but not sure wat that might be, pretty sure mine looks the same likes yours for the rest ps: this is currently just a siomple test script, that makes a call tot he github api, lines 23 is nothing but the BaseUrl that its suppose to connect with ( "https://api.github.com/" ) @liverare Trying your after i get back from the store (quickly before it closes) thanks in advance,
  8. Thought that went only for scripts that would be uploaded to the SDN? From wat i gathered by reading posts, there are ways to do it when its just local scrips?
  9. Hello people, First of all, let me appologise if this has clearly been answered multiple times, i searched all over the forum/google be was unable to really find anything that worked out for me. So i got a web api running on my server, this web api is connected with an sql server that is being hosted on my server as well. I can make calls to it and everything so i know it works. This led me to the point where it was time to implement it into my java scripts, and this is where i (with seemingly many others) hit the issue of using external libraries in or scrips. From reading all those posts it seems that they are just not allowed in the SDN, but that the usage of them localy should not be an issue. I run my stuff just localy, and don't touch the SDN at all (as far as im aware). That being said, the code has been written, the artifact has been build, but i am unable to run any of it and just spits out a whole list of errors "Failed to load local script: library class.class". I tried pretty much everything i was able to find, from adding modules, to extracted libraries in my artifacts, but i seem to be unable to add them, or atleast get Osbot from running the script For this reason i would like to ask the question if anyone here 'that has used excternal libraries in local scrips before' could give me a rundown as to how its done. For those that are intrested the libraries that i am trying to include are Retrofit2, Okhttp3 and retrofits Gson Converter factory. I got them all as jar files, that being said they are all open source, so i could get my hands on the source files if that needed to get it to work.
×
×
  • Create New...