<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Using NetBeans to edit sources and compile."]]></title>
		<link>http://www.l2jfree-users.com/l2jfreeusers/posts/list/24.page</link>
		<description><![CDATA[Latest messages posted in the topic "Using NetBeans to edit sources and compile."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ So... I've been playing around with l2jfree for a few months now, and have been really satisfied with the possibilities offered by the project so far.<br /> However, I remember having had quite some trouble finding how to edit and compile the given sources the first time I tried to. I followed one of the numerous incomplete and/or outdated tutorial for Eclipse, and didn't find a way to make it all work. Then I tried NetBeans, and suddenly everything was... simple.<br /> Since noone has done it yet, and a little out of boredness, I wrote a tutorial that should help people get started with NetBeans and l2jfree.<br /> Feel free to correct me if I'm mistaken at some point and... hope it helps. =)<br /> <br /> [size=16][b]Tutorial : Downoad, edit sources and compile an l2jfree project with NetBeans.[/b][/size]<br /> [i](Windows XP version)[/i]<br /> <br /> [b]Notes : [/b]<br /> [list] - This is the procedure I've followed for installing everything on my Asus Eee netbook, with standard Windows XP installation.<br />  Hopefully this will be clean enough and standard enough for anyone with the same OS to follow these simple steps. And maybe other OS's too, but I wouldn't guarantee it<br /> 	<br /> - In a few months I'll probably do this tutorial again for Windows Seven, if anything should be different.<br /> 	<br /> - If you want to compile on an UNIX-based system,  I enjoin you to follow this link, where it is clearly exposed how to do so. (FIXME: LINK IS MISSING)[/list]<br /> [b]Step 1 : JDK.[/b]<br /> [list]- Follow this link : <a class="snap_shots" href="http://java.sun.com/javase/downloads/index.jsp" target="_blank" rel="nofollow">http://java.sun.com/javase/downloads/index.jsp</a><br /> - Choose the JDK 6 Update 16 (or any newer version that you may find at the time you read this tutorial) by clicking on the orange "Download" button.<br /> - Choose Windows in the "platform" list. If you use Windows XP 64 of course, you should choose "Windows x64".<br /> - Click on the checkbox and then "continue"<br /> - On this page, click on the ".exe" link and download. Then install it as you would normally do with any windows program.<br /> [/list]	<br /> [b]Step 2 : NetBeans[/b]<br /> [list]- Go on this page : <a class="snap_shots" href="http://www.netbeans.org/downloads/" target="_blank" rel="nofollow">http://www.netbeans.org/downloads/</a><br /> - Choose the "download" button in the first column. You don't need extra stuff if you just want to mess with the l2jfree project. However, feel free to look around if you're interested in working with netBeans on other projects or languages.<br /> - Launch the install of the executable file you have just downloaded. At some point in the installation you will be asked to indicate the path to the JDK. If it isn't filled automatically by the installer, enter the path you have chosen in step 1 to install the JDK.<br /> - Launch the application and do all the suggested updates.<br /> [/list]	<br /> [b]Step 3 : Subversion[/b]<br /> [list]- Go there : <a class="snap_shots" href="http://www.open.collab.net/downloads/netbeans/" target="_blank" rel="nofollow">http://www.open.collab.net/downloads/netbeans/</a><br /> - Choose the CollabNet Subversion Command Line Client v1.5.5 (for Windows)<br /> - Click on the orange download button, create an account and get the .exe file.<br /> - Install it<br /> - Open your command line (cmd.exe). Type "svn --version" and then enter. If you get an error message, do the following :<br /> [list]   - Go to Configuration panel-&gt;System-&gt;Advanced-&gt;Environment variables<br />    - In the system variables, Modify the path variable and add at the end the following :<br />   ";C:\Program Files\CollabNet Subversion Client" without the quotes. If you have installed subversion somewhere else, of course, enter the corresponding path in place of this one.<br />    - Check if it works by relaunching cmd.exe and typing svn --version again.<br /> [/list][/list]		<br /> [b]Step 4 : Checkout ![/b]<br /> [list]- Restart NetBeans. All the updates should be done by now.<br /> - In the team menu, choose Subversion -&gt; Checkout...<br /> - The repository URL is : <a class="snap_shots" href="http://svn.l2jfree.com/svn/l2j-free/" target="_blank" rel="nofollow">http://svn.l2jfree.com/svn/l2j-free/</a><br /> - Browse the repository folders. The unstable but most up-to-date version is the one contained in trunk. Stable versions are in archive (last stable for each chronicle/throne) and tags (each version of login/gameserver)<br /> - Choose the local folder in which all the sources will be extracted.<br /> - Click on finish.<br /> - A project should have appeared in your left sidebar, called l2jfree-main something. Extend it, then choose module, and you should see the different parts : l2jfree-core, l2jfree-login, etc.<br /> - Open them all by right-clicking and choosing "Open Project".<br /> [/list]	<br /> [b]Step 5 : Maven[/b]<br /> [list]- Well, now you've got all your sources, you can edit them as you like, but you might want to compile now. <br /> - You need to download maven <a class="snap_shots" href="http://www.apache.org/dyn/closer.cgi/maven/source/apache-maven-2.2.1-bin.zip" target="_blank" rel="nofollow">http://www.apache.org/dyn/closer.cgi/maven/source/apache-maven-2.2.1-bin.zip</a><br /> - Unzip it wherever you like but remember the path !<br /> - In NetBeans, open the Tools menu and select Options.<br /> - Click on the "Miscellaneous" icon.<br /> - Click on "Maven"<br /> - In the "External maven home" textbox, enter the path I asked you to remember earlier.<br /> - In the "global options definition" field, write "-Dmaven.test.skip=true" (without quotes of course)<br /> 	<br /> [/list]<br /> [b]Step 6 : Finally, compile ![/b]<br /> [list]- Now right click on an opened project (first you need to compile l2j-commons and mmocore in order to make it work for login and core) and choose Custom -&gt; Goals...<br /> - There, in the "Goals" field, just write "assembly:assembly" and then click "OK". Compilation should start.<br /> - If you get an error saying something like "Java heap space / out of resources", you need to go to your Maven directory, in the "bin" subdir, and edit the mvn.bat file : <br /> [list]   - Find the line beginning by the following string : "%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR%"<br />    - Replace it with "%MAVEN_JAVA_EXE% %MAVEN_OPTS% -Xmx1024m -classpath %CLASSWORLDS_JAR%"<br />    - If you have 1 Go of RAM or less, you might want to write "-Xmx512m" instead, because your system won't be ale to allocate 1 Go for the heap.<br />    - Retry compiling. <br /> [/list]- Your server is now compiled and ready to be run.[/list]]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2699.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2699.page</link>
				<pubDate><![CDATA[Mon, 2 Nov 2009 11:47:34]]> GMT</pubDate>
				<author><![CDATA[ shinzer0]]></author>
			</item>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ First of all thanks, it's already stickied <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /><br /> <br /> Some extra I would tell:<br /> <br /> 1. Even for 64bit systems, 32bit JDK is a good choice, if you don't need want to run programs with bigger heap than 32bit could have.<br /> <br /> 2. -<br /> <br /> 3. Actually any type of svn tool can be used which provides command line svn. (So "svn --version" response well..) - <a class="snap_shots" href="http://subversion.tigris.org/" target="_blank" rel="nofollow">http://subversion.tigris.org/</a><br /> About the version there is only one rule: You must use the same base version of the svn tools u are using. 1.4.x OR 1.5.x OR... because they have different format, so there is no guarantee that the svn files touched by the newer will be readable by the older.<br /> (for the "Check if it works by typing svn --version again." part you have to restart your command prompt to get the new variables...)<br /> <br /> 4. Myself I prefer external checkout without the IDE, and importing the project later. For example typing "svn co <a class="snap_shots" href="http://svn.l2jfree.com/svn/l2j-free/trunk/" target="_blank" rel="nofollow">http://svn.l2jfree.com/svn/l2j-free/trunk/</a> l2j-free" in the workspace is way more handy for me. (... and not every IDE has got perfect maven support already, so from my experiences imported maven projects usually has got less problems...)<br /> <br /> 5. <a class="snap_shots" href="http://maven.apache.org/download.html" target="_blank" rel="nofollow">http://maven.apache.org/download.html</a> <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/69934afc394145350659cd7add244ca9.gif" /> ... and I prefer to add maven to environmental variables too, so maven compilation works from command line/batch scripts too. (see step 3 part 2 how...)<br /> <br /> 6. trunk/tools/build-all.bat <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/69934afc394145350659cd7add244ca9.gif" /> ... and actually the conventional way to increase maven heap limits is to add "MAVEN_OPTS" as environment variable too with the proper Xms/Xmx values <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2700.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2700.page</link>
				<pubDate><![CDATA[Mon, 2 Nov 2009 12:54:00]]> GMT</pubDate>
				<author><![CDATA[ nbali]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ Works like a charm, ty for share.<br /> <br /> I have followed the Eclipse tutorial too, but this one is more "short" and you got less errors.]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2708.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2708.page</link>
				<pubDate><![CDATA[Wed, 4 Nov 2009 14:12:57]]> GMT</pubDate>
				<author><![CDATA[ skorpio640]]></author>
			</item>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ yeah, but eclipse is way handy imo with more features <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2710.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2710.page</link>
				<pubDate><![CDATA[Thu, 5 Nov 2009 03:31:34]]> GMT</pubDate>
				<author><![CDATA[ nbali]]></author>
			</item>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ [quote=nbali]yeah, but eclipse is way handy imo with more features <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />[/quote]<br /> <br /> +1]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2714.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2714.page</link>
				<pubDate><![CDATA[Thu, 5 Nov 2009 13:39:17]]> GMT</pubDate>
				<author><![CDATA[ savormix]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ Okay, I edited one or two details after your comments nbali <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /> thanks ! and thanks for the sticky too :o<br /> <br /> On the comments discussing your preferences, I could probably agree with you, but I made this tutorial mainly for people that are maybe not yet familiar with Java, maven, subversion, etc. but know other programming languages and want to have an easy entry point un the l2jfree project. That's why I tried to keep it simple, and as much as possible in the GUI's (another reason for that would be that I'm not really familiar with the Windows command line interface ^^")<br /> And the reason for prefering CollabNet Svn to another one is... simply because it is what Netbeans recommends. <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /><br /> <br /> About 6, I... haven't paid attention to this script yet. I probably should, I guess <img src="http://www.l2jfree-users.com/l2jfreeusers//images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" /><br /> ]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2715.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2715.page</link>
				<pubDate><![CDATA[Fri, 6 Nov 2009 15:55:19]]> GMT</pubDate>
				<author><![CDATA[ shinzer0]]></author>
			</item>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ Well if the proper tools installed, and reachable on the path, then the whole project can be compiled, packed without any ide :)<br /> <br /> [code]svn co http://svn.l2jfree.com/svn/l2j-free/trunk/ l2j-free<br /> cd l2j-free<br /> cd tools<br /> build-all.bat OR ./build-all.sh<br /> [/code]]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2718.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2718.page</link>
				<pubDate><![CDATA[Sat, 7 Nov 2009 14:32:23]]> GMT</pubDate>
				<author><![CDATA[ nbali]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ I use the [b]Maven plugin[/b] v4.0.5 (Tools &gt; Plug-ins) don't know if it's better, maybe not : I always have problems with .m2 repo (missing ressources).]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2728.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2728.page</link>
				<pubDate><![CDATA[Tue, 10 Nov 2009 12:11:41]]> GMT</pubDate>
				<author><![CDATA[ Slow Thunder]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ [b][size=18]Guide for Eclipse:[/size][/b]<br /> <br /> I'm listing only the differences compared to the guide above. Btw don't forget to read my comments posted above also, because it could be useful for this.<br /> <br /> ... I also recommend to check this topic also: http://l2jfree-users.com/l2jfreeusers/posts/list/9.page<br /> <br /> [b]Step 2: Eclipse[/b]<br /> [list]- Download http://www.eclipse.org &gt; Downloads &gt; Eclipse IDE for Java Developers<br /> - Extract it where you want.<br /> - You will need the maven plugin, so follow the guide: http://maven.apache.org/ &gt; IDE Integration &gt; Eclipse<br /> - ... and probably an svn plugin, for example this: http://subclipse.tigris.org/ &gt; Download and Install<br /> [/list]	<br /> <br /> [b]Step 4: Checkout[/b]<br /> [list]- I still do not prefer checking out l2jfree from inside the IDE, as it's complicated so I won't tell that way.<br /> - Go to your workspace, and open a command prompt/shell/bash whatever, and execute this (of course bat for win, sh for linux):<br /> [code]svn co http://svn.l2jfree.com/svn/l2j-free/trunk/ l2j-free<br /> cd l2j-free<br /> cd tools<br /> initialize-eclipse-environment.bat OR ./initialize-eclipse-environment.sh[/code][/list]	<br /> <br /> [b]Step 6: Initialization, compiling, import[/b]<br /> [list]- Go to the /tools folder located in the just checkouted l2j-free folder!<br /> - Execute initialize-eclipse-environment.bat OR ./initialize-eclipse-environment.sh<br /> - When it's done you have everything compiled - so you could launch a server if you want to.<br /> - Open Eclipse, and &gt; File &gt; Import &gt; General &gt; Existing Projects into Workspace, select all of the 5 projects it can find inside l2j-free folder.<br /> - The wait until it finishes. Could take from a few sec to over a minute - it depends on your PC and especially on your HDD.<br /> [/list]<br /> <br /> <br /> In the future if you want to compile it you can do it from Eclipse, or - like me - by launching /tools/build-all.bat OR /tools/build-all.sh. I prefer the last one, as it's faster for me.]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2732.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2732.page</link>
				<pubDate><![CDATA[Tue, 10 Nov 2009 17:38:51]]> GMT</pubDate>
				<author><![CDATA[ nbali]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ i dont know what to add here:<br /> [code]set CLEAN=<br /> set COMPILE=<br /> set INSTALL=<br /> set DEPLOY=<br /> set ASSEMBLY_ASSEMBLY=<br /> set ECLIPSE_CLEAN=<br /> set ECLIPSE_ECLIPSE=<br /> set ECLIPSE_M2ECLIPSE=[/code]<br /> in the build-all.bat<br /> <br /> <br /> thanks in advance<br /> ]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2820.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2820.page</link>
				<pubDate><![CDATA[Sun, 22 Nov 2009 11:35:55]]> GMT</pubDate>
				<author><![CDATA[ meandor]]></author>
			</item>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ First of all... why do you think you have to add something there? There is no sign indicating that, no one ever said that, it's not written there... Nothing...<br /> <br /> Btw file names where changed to be more clear, and to choose the proper it depends what you want...<br /> <br /> initialize-eclipse-environment.* must be used for eclipse initialization, but for nothing else....<br /> <br /> build-all.* is what you need for Netbeans, or if you aren't using an IDE.]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2822.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/2822.page</link>
				<pubDate><![CDATA[Sun, 22 Nov 2009 12:51:50]]> GMT</pubDate>
				<author><![CDATA[ nbali]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ I followed this guide from top to toe, and I still cant get it to work! :/<br /> <br /> It seems that i can compile some of the files, but not the l2jfree-mmocore and l2jfree-core. Anyone else got this problem?]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/3021.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/3021.page</link>
				<pubDate><![CDATA[Fri, 22 Jan 2010 01:22:39]]> GMT</pubDate>
				<author><![CDATA[ xoiten]]></author>
			</item>
			<item>
				<title>Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ I follow nbali guide . Run initialize-eclipse-environment.bat  , build all succesfully but i cant find compiled file . ]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/3067.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/3067.page</link>
				<pubDate><![CDATA[Tue, 16 Feb 2010 02:07:04]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:Using NetBeans to edit sources and compile.</title>
				<description><![CDATA[ The console output usually shows where the build is being written.<br /> <br /> Check your workspace project's folder for a folder called "target".]]></description>
				<guid isPermaLink="true">http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/3071.page</guid>
				<link>http://www.l2jfree-users.com/l2jfreeusers/posts/preList/493/3071.page</link>
				<pubDate><![CDATA[Tue, 16 Feb 2010 11:26:18]]> GMT</pubDate>
				<author><![CDATA[ Mac]]></author>
			</item>
	</channel>
</rss>