[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Eclipse how to: compile a single file or only few files

Jeff Myers wrote:
Mansour,

If you have Build Automaticly enabled in your workspace, the Java source is built every time you save the file with modifications. The resulting class files are hidden in the Package Explorer, but you can see them in the Navigator view. So basically, everything should be automatically built, and you can export your JAR whenever you want. Alternatively, you can set up an Ant task to build your project and create your JAR, and run that using the External Tools function. Details for using Ant within Eclipse are available in the help docs.

Hope this helps,
 - Jeff

Jeff, Steve, Thank you for taking the time to reply.
However, I am new to eclipse and the last thing I am looking to do is to learn ant. I am looking to do everything I need in eclipse. I know about the compiling options and the automatic compilation. However what I need is to compile the classes needed for that part. For example


-client:
	-file1
	-file2
-server:
	-file1
-commonFiles:
	-file1 ...... -file15
-targetFoleder:

How can I get the client files with th efiles needed from the common, to compile into "targetFolder", so that I can create a JAR archieve and do the same for th eserver. As I mentioned earlier, is't there a way to do this with out ANT, it just adds one more thing to learn now.

Thank you.