Jesus Christ Posted October 22, 2014 Share Posted October 22, 2014 Hey, Very noob-alike, but I just dont know it ok. I editted an open source magic curse script. How do i compilie my script into a jar file so I can add it to my local scripts folder? Thanks alot. Link to comment Share on other sites More sharing options...
Joseph Posted October 22, 2014 Share Posted October 22, 2014 Us your IDE and export it using Java which should compile your script. If you don't have an IDE there's website that do it for you Link to comment Share on other sites More sharing options...
Jesus Christ Posted October 22, 2014 Author Share Posted October 22, 2014 Us your IDE and export it using Java which should compile your script. If you don't have an IDE there's website that do it for you Can you link me to that website? Thanks. Link to comment Share on other sites More sharing options...
FrostBug Posted October 23, 2014 Share Posted October 23, 2014 open CMD 1. Compile your source files into .class files "javac somefile.java" This will generate a file with the same base name, but .class extension. This is the compiled source. Next, to add them to a Jar archive, run this command: "java cf YourScriptName.jar mainclass.class otherclass.class thirdclass.class" Basically after the jar name you list all the compiled files seperated by spaces. This will create the Jarfile. Be sure to run the commands with full path, OR from the directory containing your files. "cd" is the command to change directory in CMD Link to comment Share on other sites More sharing options...
boyyo11 Posted October 26, 2014 Share Posted October 26, 2014 I had problems with this but seem to have it working. First make sure you have the newest version of osbot. Next make sure your using the IDE Eclipse, what im about to tell you, im not sure it if it will work the same in net beans. 1. Right click the class file of the script you wish to compile and use. 2. Click Export 3. Make the location of the jar point to your \Users\USER\osbot\scripts\ folder 4. Hit save Now it should be there, if osbot is open hit the refresh button and wa-laa ur script should be there. Link to comment Share on other sites More sharing options...