Thread: Easyrsc in Eclipse.

Results 1 to 8 of 8
  1. #1 Easyrsc in Eclipse. 
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    This is a tutorial on how to use EasyRSC in eclipse.

    At the end of this tutorial you should be able to run EasyRSC in Eclipse IDE.
    I set NO EXPIRATION on the links they should not expire.

    Difficulty:5/10

    Tested On:Eclipse Luna 4.4.1(latest version as of 11/16/2014).

    If you already have Easyrsc source you want to use you could just use your custom one and skip step 1.
    I'm also going to assume you have the variables set up if you don't just download this JDK 1.6_35 here:Java Archive Downloads - Java SE 6 (you will need to make an account with Java).

    First step is get Easyrsc you can get it here https://www.dropbox.com/s/5o019h76lk...syRSC.rar?dl=1

    I set all the paths already to work with JDK 1.6_35.

    Step two get Eclipse you can get the latest version of eclipse https://www.eclipse.org/home/index.php

    Step three install Eclipse leave everything default in the installation including the workbench just click next and finish.

    Step four go into your workspace/workbench (C:\Users\User\workspace) and extract your Easyrsc folder into there so it looks like this:


    Tip:You can remove the distributed client we wont use that in eclipse.

    Step four open up Eclipse right click in the package explorer and click new > Java project for the package name type "Server" or whatever you have it saved as make sure you spell it correctly the way it looks like in your workspace/workbench.





    Do the same as above for you "Client" folder.

    Step five in your Eclipse folder click on "Server" you should see an build.xml erase whatever is in it and put this
    Code:
    	<project default="compile" basedir=".">	
    		
    	<property name="src" location="src" />
    	<property name="build" location="build" />
    	<property name="doc" location="../doc" />
    	<property name="lib" location="lib" />
    	<property name="jar" location="rscd.jar" />
    	<property name="settings" location="settings.ini" />
    		
    	<target name="compile">
    		<delete file="${jar}" />
    		<mkdir dir="${build}" />
    		<javac srcdir="${src}" destdir="${build}" debug="on" target="1.5">
    		  <classpath>
    			<pathelement location="${lib}/mina.jar" />
    			<pathelement location="${lib}/xpp3.jar" />
    			<pathelement location="${lib}/slf4j.jar"/>
    			<pathelement location="${lib}/xstream.jar"/>
    			<pathelement location="${lib}/mysql-connector.jar" />
    			<pathelement location="${lib}/hex-string.jar" />
    			<pathelement location="${lib}/jmf.jar" />
    			<pathelement path="${java.class.path}/"/>
    		  </classpath>
    		</javac>
    		<jar basedir="${build}" destfile="${jar}" />
    		<delete dir="${build}" />
    		<exec executable="Run Server.bat">
    				  <arg line="set PATH=C:\Program Files\Java\jdk1.6.0_35\bin;ant\bin"/>
    			</exec>
    	</target>	
    	<target name="runserver">
    		<java classname="org.rscdaemon.server.Server" fork="true">
    			<jvmarg value="-Xms128m" />
    			<jvmarg value="-Xmx512m" />
    			<arg value="world.xml" />
    			<classpath>
    				<pathelement location="${lib}/mina.jar" />
    				<pathelement location="${lib}/xpp3.jar" />
    				<pathelement location="${lib}/slf4j.jar" />
    				<pathelement location="${lib}/xstream.jar" />
    				<pathelement location="${lib}/hex-string.jar" />
    				<pathelement location="quests/" />
    				<pathelement path="${jar}/" />
    			</classpath>
    		</java>
    	</target>
    </project>
    This will automatically Compile the server and Run it.

    Step six go into your Client folder in Eclipse and open build.xml in there and erase everything in it and copy and paste this in there
    Code:
    <project default="compile" basedir=".">	
    	
    	<property name="src" location="src" />
    	<property name="build" location="build" />
    	<property name="doc" location="../doc" />
    	<property name="lib" location="lib" />
    	<property name="jar" location="rscd.jar" />
    	<property name="settings" location="settings.ini" />
    	
    	<target name="compile">
    		<delete file="${jar}" />
    		<mkdir dir="${build}" />
    		<javac srcdir="${src}" destdir="${build}" debug="on" target="1.5">
    		  <classpath>
    			<pathelement location="${lib}/mina.jar" />
    			<pathelement location="${lib}/xpp3.jar" />
    			<pathelement location="${lib}/slf4j.jar"/>
    			<pathelement location="${lib}/xstream.jar"/>
    			<pathelement location="${lib}/mysql-connector.jar" />
    			<pathelement location="${lib}/hex-string.jar" />
    			<pathelement location="${lib}/jmf.jar" />
    			<pathelement path="${java.class.path}/"/>
    		  </classpath>
    		</javac>
    		<jar basedir="${build}" destfile="${jar}" />
    		<delete dir="${build}" />
    		<java classname="org.rscdaemon.client.mudclient" fork="true">
    					<jvmarg value="-Xms128m" />
    					<jvmarg value="-Xmx512m" />
    					<arg value="${settings}" />
    					<classpath>
    						<pathelement location="${lib}/mina.jar" />
    						<pathelement location="${lib}/xpp3.jar" />
    						<pathelement location="${lib}/slf4j.jar" />
    						<pathelement location="${lib}/xstream.jar" />
    						<pathelement location="${lib}/mysql-connector.jar" />
    						<pathelement location="${lib}/hex-string.jar" />
    						<pathelement location="${lib}/jmf.jar" />
    						<pathelement path="${jar}/" />
    					</classpath>
    				</java>
    	</target>
    	
    	<target name="doc" depends="compile">
    		<javadoc sourcepath="${src}" destdir="${doc}" verbose="on" />
    	</target>
    	
    	<target name="map">
    			<java classname="org.rscdaemon.server.util.MapGenerator" fork="true">
    				<jvmarg value="-Xms128m" />
    				<jvmarg value="-Xmx512m" />
    				<arg value="map.png" />
    				<arg value="${world}.conf" />
    				<classpath>
    					<pathelement location="${lib}/mina.jar" />
    					<pathelement location="${lib}/xpp3.jar" />
    					<pathelement location="${lib}/slf4j.jar" />
    					<pathelement location="${lib}/xstream.jar" />
    					<pathelement location="${lib}/mysql-connector.jar" />
    					<pathelement location="${lib}/hex-string.jar" />
    					<pathelement path="${jar}/" />
    				</classpath>
    			</java>
    		</target>
    	
    	<target name="runls">
    		<java classname="org.rscdaemon.ls.Server" fork="true">
    			<jvmarg value="-Xms128m" />
    			<jvmarg value="-Xmx512m" />
    			<arg value="ls.conf" />
    			<classpath>
    				<pathelement location="${lib}/mina.jar" />
    				<pathelement location="${lib}/xpp3.jar" />
    				<pathelement location="${lib}/slf4j.jar" />
    				<pathelement location="${lib}/xstream.jar" />
    				<pathelement location="${lib}/mysql-connector.jar" />
    				<pathelement location="${lib}/hex-string.jar" />
    				<pathelement path="${jar}/" />
    			</classpath>
    		</java>
    	</target>
    	
    	<target name="runserver">
    		<java classname="org.rscdaemon.server.Server" fork="true">
    			<jvmarg value="-Xms128m" />
    			<jvmarg value="-Xmx512m" />
    			<arg value="world.xml" />
    			<classpath>
    				<pathelement location="${lib}/mina.jar" />
    				<pathelement location="${lib}/xpp3.jar" />
    				<pathelement location="${lib}/slf4j.jar" />
    				<pathelement location="${lib}/xstream.jar" />
    				<pathelement location="${lib}/mysql-connector.jar" />
    				<pathelement location="${lib}/hex-string.jar" />
    				<pathelement location="quests/" />
    				<pathelement path="${jar}/" />
    			</classpath>
    		</java>
    	</target>
    	
    	<target name="runclient">
    		<java classname="org.rscdaemon.client.mudclient" fork="true">
    			<jvmarg value="-Xms128m" />
    			<jvmarg value="-Xmx512m" />
    			<arg value="${settings}" />
    			<classpath>
    				<pathelement location="${lib}/mina.jar" />
    				<pathelement location="${lib}/xpp3.jar" />
    				<pathelement location="${lib}/slf4j.jar" />
    				<pathelement location="${lib}/xstream.jar" />
    				<pathelement location="${lib}/mysql-connector.jar" />
    				<pathelement location="${lib}/hex-string.jar" />
    				<pathelement location="${lib}/jmf.jar" />
    				<pathelement path="${jar}/" />
    			</classpath>
    		</java>
    	</target>
    	
    	<target name="runspriteeditor">
    		<java classname="org.rscdaemon.spriteeditor.SpriteEditor" fork="true">
    			<jvmarg value="-Xms128m" />
    			<jvmarg value="-Xmx512m" />
    			<classpath>
    				<pathelement location="${lib}/mina.jar" />
    				<pathelement location="${lib}/xpp3.jar" />
    				<pathelement location="${lib}/slf4j.jar" />
    				<pathelement location="${lib}/xstream.jar" />
    				<pathelement location="${lib}/mysql-connector.jar" />
    				<pathelement location="${lib}/hex-string.jar" />
    				<pathelement path="${jar}/" />
    			</classpath>
    		</java>
    	</target>
    </project>
    At this point you are done. Just right click the build.xml in the Server and click run as > ant build. Do the same to Client to run the client.
    If you have errors post them below and I will try to get back to you.
    Last edited by Aleka; 11-16-2014 at 12:56 AM. Reason: Spelling
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2014
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Looks extremely helpful aleka, thanks im going to try this out.
    it is a little slow with some functions however this could be a great organizer!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2007
    Age
    94
    Posts
    131
    Thanks given
    3
    Thanks received
    9
    Rep Power
    36
    Look into NetBeans. Its the modern version of Eclipse.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2015
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Black Marwolf, what is NetBeans? Easy to use for programming?
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Lenzo View Post
    Black Marwolf, what is NetBeans? Easy to use for programming?
    Netbeans is also and IDE like Eclipse. They are both really useful when it comes to programming. I don't use netbeans anymore but from what I remember it was a pretty stable IDE for Java.
    My rep was only lowered because I didn't like a source a mod worked on. Instead of simply ignoring my feedback he had to argue and lower my rep.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2016
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Gonna give it a go. Not many guides for RSC so good looking on this.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2017
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by 18 Skrills View Post
    Gonna give it a go. Not many muscle pursuits RSC so good looking on this.

    I always wanted to try out Eclipse. Thanks for the toturial!
    Reply With Quote  
     

  8. #8  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Tried with eclipse neon, the server isnt compiling:
    https://pastebin.com/zQRStV3p
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     


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. Project in eclipse
    By Pb600 in forum Help
    Replies: 0
    Last Post: 11-23-2009, 01:39 AM
  2. How to use RS2HD in Eclipse
    By Anthony-| in forum Help
    Replies: 10
    Last Post: 06-02-2009, 05:34 PM
  3. RS2HD508 - Runing in Eclipse HELP
    By Anthony-| in forum Help
    Replies: 0
    Last Post: 06-02-2009, 05:21 PM
  4. Simplifying Bits shifts in Eclipse
    By Maxi in forum Snippets
    Replies: 8
    Last Post: 03-22-2009, 02:59 PM
  5. Running rs2d in Eclipse
    By Zachyboo in forum Tutorials
    Replies: 12
    Last Post: 06-14-2008, 02:07 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •