Thread: [RuneSource]: How to compile and run Azure 317

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 [RuneSource]: How to compile and run Azure 317 
    brb ridin da storm

    blakeman8192's Avatar
    Join Date
    Dec 2012
    Age
    28
    Posts
    2,010
    Thanks given
    802
    Thanks received
    1,357
    Rep Power
    286
    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:

    Code:
    @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
    Step 3: Modifying run.bat
    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:

    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
    That's all, have fun guys.
    rest in peace Qemist, Izzy, TeChNo PuNk, Impulser, & bootnecklad
    Reply With Quote  
     


  2. #2  
    Registered Member

    Join Date
    Oct 2009
    Posts
    1,595
    Thanks given
    100
    Thanks received
    50
    Rep Power
    232
    thx for ths.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Thank you I will include this in the next release which is soon!
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Jul 2008
    Age
    28
    Posts
    72
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Thanks.
    I'm currently learning Java so please bear with me.
    ~Arron~
    Reply With Quote  
     

  6. #5  
    Registered Member 'Lex's Avatar
    Join Date
    Nov 2010
    Age
    25
    Posts
    401
    Thanks given
    2
    Thanks received
    38
    Rep Power
    21
    Quote Originally Posted by strongbow View Post
    Thanks.

    Off topic: I love your name. CYDER FTW

    Reply With Quote  
     

  7. #6  
    Registered Member titas lol's Avatar
    Join Date
    Dec 2010
    Age
    10
    Posts
    311
    Thanks given
    11
    Thanks received
    13
    Rep Power
    1
    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 . . .
    when i run it...

    [Only registered and activated users can see links. ] || [Only registered and activated users can see links. ] || [Only registered and activated users can see links. ]


    Reply With Quote  
     

  8. #7  
    Banned

    Join Date
    Oct 2008
    Posts
    842
    Thanks given
    81
    Thanks received
    53
    Rep Power
    0
    Quote Originally Posted by titas lol View Post
    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 . . .
    when i run it...
    I get this error also.
    Reply With Quote  
     

  9. #8  
    Registered Member OverHated's Avatar
    Join Date
    Apr 2010
    Posts
    292
    Thanks given
    63
    Thanks received
    14
    Rep Power
    32
    I have the same error as titas lol and tucy bro

    [Only registered and activated users can see links. ]

    My previous names:
    Perfect
    Dubstep+
    Reply With Quote  
     

  10. #9  
    Registered Member OverHated's Avatar
    Join Date
    Apr 2010
    Posts
    292
    Thanks given
    63
    Thanks received
    14
    Rep Power
    32
    bump..

    [Only registered and activated users can see links. ]

    My previous names:
    Perfect
    Dubstep+
    Reply With Quote  
     

  11. #10  
    Registered Member Velarin's Avatar
    Join Date
    Aug 2011
    Posts
    99
    Thanks given
    32
    Thanks received
    13
    Rep Power
    49
    Thank you Sir.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. RuneSource 317
    By blakeman8192 in forum Projects
    Replies: 318
    Last Post: 03-18-2012, 07:54 PM
  2. Azure 317.
    By Ashen Sky in forum Projects
    Replies: 85
    Last Post: 02-15-2011, 01:49 PM
  3. Azure 508 (old)
    By Ashen Sky in forum Downloads
    Replies: 5
    Last Post: 12-23-2010, 09:14 PM
  4. Azure Pk -- Webclient -- Awesome PvP
    By Defiled-X in forum Advertise
    Replies: 12
    Last Post: 08-30-2010, 07:24 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •