<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Fighting with Eclipse</title>
		<link>http://www.allegro.cc/forums/view/594728</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 15 Jan 2008 01:36:52 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m having a hard time making Eclipse run a java project.<br />In my workspace directory i have the following directories: projects\diadia\diadia_1_1\</p><p>Inside diadia_1_1 is the source code of the project, each file starting with the appropriate <b>package projects.diadia.diadia_1_1;</b></p><p>What i do is:<br />new-&gt; Java-Project<br />Create from existing source (i give it the projects directory)<br />Project name: projects<br />[Finish]</p><p>When i try to run, by right-clicking and selecting run, the class file with the main method i get: &quot;Launch error: selection does not contain a main type&quot;.</p><p>This must be something really stupid on my part, as i&#39;m totally new to eclipse.<br />Any help is welcome.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FMC)</author>
		<pubDate>Sat, 12 Jan 2008 15:55:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>With Eclipse, I believe that you have to set up &quot;execution&quot; settings.</p><p>You can have multiple projects open at the same time after all.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Archon)</author>
		<pubDate>Sat, 12 Jan 2008 16:36:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>right click on <b>class</b> file? .class? you should right-click the corresponding .java. you can also open up the run dialog. it says there which class contains the entry point in case it&#39;s wrong.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Henriksson)</author>
		<pubDate>Sat, 12 Jan 2008 20:02:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Fighting with Eclipse
</p></div></div><p>

Use Netbeans.</p><p>I&#39;m joking (mostly).  I don&#39;t think I&#39;ve ever gotten the &#39;create project from existing source&#39; to work in any ide I&#39;ve use.  The last one I did I cut an pasted every source file into a new file in the ide.</p><p><img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (nonnus29)</author>
		<pubDate>Sat, 12 Jan 2008 20:37:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Archon is right, you have to tell eclipse how you want the project to be executed in the Run Dialog.</p><p>I the latest version of eclipse, if you have the java file containing the main method opened in front of you and you press the run button (green arrow in the toolbar), it will automatically create a configuration that is correct most of the time.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (amarillion)</author>
		<pubDate>Sun, 13 Jan 2008 03:26:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Use Netbeans.</p><p>I&#39;m joking (mostly).
</p></div></div><p>Actually, Netbeans 6 is much more user freindly than eclipse. And you won&#39;t have the same trouble running your projects. Code completion is much, much better than Eclipse, IntelliJ IDEA and previous Netbeans versions. The base Java SE IDE is only a 21MB, with the full version being 169MB. Unless you&#39;re doing any Java EE stuff, the base IDE is fine.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Steve++)</author>
		<pubDate>Sun, 13 Jan 2008 06:17:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">amarillion said:</div><div class="quote"><p>
I the latest version of eclipse, if you have the java file containing the main method opened in front of you and you press the run button (green arrow in the toolbar), it will automatically create a configuration that is correct most of the time.
</p></div></div><p>Nope, still complains about missing main</p><p>Btw if i run it manually, it works:
</p><div class="source-code snippet"><div class="inner"><pre>javac projects\diadia\diadia_1_1<span class="k3">*</span>.java
java projects.diadia.diadia_1_1.Gioco
</pre></div></div><p>

</p><div class="quote_container"><div class="title">Steve++ said:</div><div class="quote"><p>
Actually, Netbeans 6 is much more user freindly than eclipse. And you won&#39;t have the same trouble running your projects. Code completion is much, much better than Eclipse, IntelliJ IDEA and previous Netbeans versions. The base Java SE IDE is only a 21MB, with the full version being 169MB. Unless you&#39;re doing any Java EE stuff, the base IDE is fine.
</p></div></div><p>Might decide to use it, but i hate to leave unfinished business <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><div class="quote_container"><div class="title">nonnus29 said:</div><div class="quote"><p>
I&#39;m joking (mostly). I don&#39;t think I&#39;ve ever gotten the &#39;create project from existing source&#39; to work in any ide I&#39;ve use. The last one I did I cut an pasted every source file into a new file in the ide.
</p></div></div><p>Actually the first time i tried to run it, it worked! <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /> Never been able to repeat the miracle, though...</p><div class="quote_container"><div class="title">Johan said:</div><div class="quote"><p>
right click on <b>class</b> file? .class? you should right-click the corresponding .java. you can also open up the run dialog. it says there which class contains the entry point in case it&#39;s wrong.
</p></div></div><p>There is no configured file in the run dialog... just the one i created (and isn&#39;t working).</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
With Eclipse, I believe that you have to set up &quot;execution&quot; settings.
</p></div></div><p>Any ideas how? <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>I attached a little video of what i tried, a picture is worth 1000 words afterall...<br /><a href="http://www.allegro.cc/files/attachment/594211">VIDEO</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FMC)</author>
		<pubDate>Sun, 13 Jan 2008 14:57:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Actually, Netbeans 6 is much more user freindly than eclipse. And you won&#39;t have the same trouble running your projects. Code completion is much, much better than Eclipse, IntelliJ IDEA and previous Netbeans versions. The base Java SE IDE is only a 21MB, with the full version being 169MB. Unless you&#39;re doing any Java EE stuff, the base IDE is fine.
</p></div></div><p>
I found Eclipse&#39;s code completion to be pretty much spot on. I&#39;ve had trouble with Visual Studio&#39;s code completion for C# in a few specific cases, but off the top of my head Eclipse has been excellent for me, I can&#39;t remember it failing in that respect. So I&#39;m not really sure how Netbean&#39;s code completion could be much better. I do remember the auto generated Swing UI code being hideous in comparison to Eclipse&#39;s plugins which sucked equally, but that may have changed in the current version?</p><p>That and the new Netbeans seems to be a much bigger memory hog then Eclipse now. But it does have rails support so it&#39;s the new IDE I&#39;m going to be trying for now since Rails desperately needs a kick <span class="cuss"><span>ass</span></span> IDE (I&#39;ve had some problems with Netbeans and rails, nothing major though, and I haven&#39;t used it long enough to say for sure.)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Hard Rock)</author>
		<pubDate>Sun, 13 Jan 2008 16:48:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Rails
</p></div></div><p>

You should try Groovy and Grails; the biggest obstacle for RoR is scalability.  With Grails you can deploy you application as a .war file to any J2EE server.  Instant scalability.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (nonnus29)</author>
		<pubDate>Sun, 13 Jan 2008 20:21:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>From the video I noticed that you don&#39;t have your build path set up correctly, as the packages appear as folders and the classes as just plain Java files, try to configure the build path so that the root folder of the project is considered as a source folder.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Crazy Photon)</author>
		<pubDate>Mon, 14 Jan 2008 18:04:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Crazy Photon said:</div><div class="quote"><p>
From the video I noticed that you don&#39;t have your build path set up correctly, as the packages appear as folders and the classes as just plain Java files, try to configure the build path so that the root folder of the project is considered as a source folder.
</p></div></div><p>Yep, you are right.</p><p>I managed to make it work, do you know how? I had to create an empty project and <u>then</u> import the new stuff... stupid Eclipse. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>Cookies for moral support and help.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FMC)</author>
		<pubDate>Tue, 15 Jan 2008 01:36:52 +0000</pubDate>
	</item>
</rss>
