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!
|
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 thisThis will automatically Compile the server and Run it.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>
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 thereAt 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.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>
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
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!
Look into NetBeans. Its the modern version of Eclipse.
Black Marwolf, what is NetBeans? Easy to use for programming?
Gonna give it a go. Not many guides for RSC so good looking on this.
Tried with eclipse neon, the server isnt compiling:
https://pastebin.com/zQRStV3p
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |