|
|

Purpose:
To modify the run.bat and compile.bat files to allow you to run and compile the new Azure 317 release by BFMV.
Difficulty:
1/10
Assumed Knowledge:
How to download a file, how to copy and paste.
Classes Modified:
None.
Tested On(if it applies):
Azure 317
Step 1: Getting javac++
To follow this tutorial and to properly compile your server, you'll need my javac++ utility, which is a simple and lightweight solution for most packaged server projects that need to be built properly.
Link: [Only registered and activated users can see links. ]
Download the ZIP file from the above link, and extract javac++.jar to the libs directory in your Azure 317 source.
Step 2: Modifying compile.bat
We now need to modify our compiler script to use javac++. Open up compile.bat and replace everything inside of it with this:
Step 3: Modifying run.batCode:@echo off @title [%date% %time%] RuneSource Compiler :compile mkdir bin echo [%date% %time%]: Compiling source code... java -jar libs/javac++.jar src libs bin echo [%date% %time%]: Done! pause
Now we need to modify our run script as we will need to specify the dependencies that BFMV added and we will no longer build JAR files like RuneSource normally does (for the sake of simplicity). Replace everything in your run.bat with the following:
That's all, have fun guys.Code:@echo off @title [%date%] RuneSource java -cp ./bin/;./libs/xpp3_min-1.1.4c.jar;./libs/xstream-1.3.1.jar com.rs2.Server localhost 43594 600 pause
rest in peace Qemist, Izzy, TeChNo PuNk, Impulser, & bootnecklad


Thank you I will include this in the next release which is soon!
Thanks.
when i run it...Code:Starting Azure on localhost/127.0.0.1:43594... Loading packets... Loaded 42 packets. Loading item definitions... com.thoughtworks.xstream.converters.ConversionException: Cannot construct com.rs 2.model.players.ItemManager$ItemDefinition as it does not have a no-args constru ctor : Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it d oes not have a no-args constructor ---- Debugging information ---- message : Cannot construct com.rs2.model.players.ItemManager$ItemDef inition as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAcces sException cause-message : Cannot construct com.rs2.model.players.ItemManager$ItemDef inition as it does not have a no-args constructor class : java.util.ArrayList required-type : com.rs2.model.players.ItemManager$ItemDefinition path : /list/itemDef line number : 2 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:89) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A bstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:60) at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon verter.readItem(AbstractCollectionConverter.java:71) at com.thoughtworks.xstream.converters.collections.CollectionConverter.p opulateCollection(CollectionConverter.java:68) at com.thoughtworks.xstream.converters.collections.CollectionConverter.u nmarshal(CollectionConverter.java:61) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A bstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller .java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh al(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at com.rs2.model.players.ItemManager.loadItemDefinitions(ItemManager.jav a:202) at com.rs2.util.XStreamUtil.loadAllFiles(XStreamUtil.java:62) at com.rs2.Server.run(Server.java:107) at java.lang.Thread.run(Unknown Source) Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct com.rs2.model.players.ItemManager$ItemDefinition as it does no t have a no-args constructor at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv ider.newInstance(PureJavaReflectionProvider.java:71) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.instantiateNewInstance(AbstractReflectionConverter.java:308) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.unmarshal(AbstractReflectionConverter.java:161) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:82) ... 19 more Press any key to continue . . .

Thank you Sir.
| « dropping owners and admins only + following summoning pets[pi] | Helping Rsps Starters! [VIDEO] [COMMENTARY] [HQ] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |