|
From: hayes.randy on 6 Jul 2008 02:03 Hi All, I am new to Eclipse and it is mystifying me why the Build Project and Build All items on the Project menu are grayed out! I am able to run and debug but can't figure out to compile a JAR file! Anyone? Thanks!
From: Roland de Ruiter on 6 Jul 2008 09:17 On 6-7-2008 8:03, hayes.randy(a)gmail.com wrote: > Hi All, > > I am new to Eclipse and it is mystifying me why the Build Project and > Build All items on the Project menu are grayed out! I am able to run > and debug but can't figure out to compile a JAR file! > > Anyone? > > Thanks! In the Project menu, have you also seen the check mark in front of "Build Automatically"? When "Build Automatically" is selected, Eclipse compiles Java files on the fly (when you save a file from the editor, IIRC), so your project is always in a "built"-state. You'll never have to compile or build a project yourself. What do you exactly mean by compiling a JAR file? If you want to create a JAR file of the compiled code, you'll need to use the export wizard: right-click on the project in the package explorer and select Export from the menu. Then in the Export window, expand the "Java" item and select "JAR file". Click on the Next button and follow the wizard's next steps. -- Regards, Roland
From: hayes.randy on 6 Jul 2008 11:35 On Jul 6, 8:17 am, Roland de Ruiter <roland.de.rui...(a)example.invalid> wrote: > On 6-7-2008 8:03, hayes.ra...(a)gmail.com wrote: > > > Hi All, > > > I am new to Eclipse and it is mystifying me why the Build Project and > > Build All items on the Project menu are grayed out! I am able to run > > and debug but can't figure out to compile a JAR file! > > > Anyone? > > > Thanks! > > In the Project menu, have you also seen the check mark in front of > "Build Automatically"? > > When "Build Automatically" is selected, Eclipse compiles Java files on > the fly (when you save a file from the editor, IIRC), so your project is > always in a "built"-state. You'll never have to compile or build a > project yourself. > > What do you exactly mean by compiling a JAR file? If you want to create > a JAR file of the compiled code, you'll need to use the export wizard: > right-click on the project in the package explorer and select Export > from the menu. Then in the Export window, expand the "Java" item and > select "JAR file". Click on the Next button and follow the wizard's next > steps. > -- > Regards, > > Roland Thanks Roland - I didn't know about the "Export" step. I was used to JBuilder 2005 that did that automatically.
From: Jim Garrison on 6 Jul 2008 18:25 hayes.randy(a)gmail.com wrote: > On Jul 6, 8:17 am, Roland de Ruiter <roland.de.rui...(a)example.invalid> [snip] >> When "Build Automatically" is selected, Eclipse compiles Java files on >> the fly (when you save a file from the editor, IIRC), so your project is >> always in a "built"-state. You'll never have to compile or build a >> project yourself. True. But don't forget that if you somehow change a file outside of Eclipse while Eclipse is running, it won't be aware of the change and things can get out of sync. If in doubt, do a "refresh" from the project context menu to have Eclipse verify that it's in sync with the file system. Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- http://www.usenet.com
From: Lew on 6 Jul 2008 18:28 Jim Garrison wrote: > hayes.randy(a)gmail.com wrote: >> On Jul 6, 8:17 am, Roland de Ruiter <roland.de.rui...(a)example.invalid> > [snip] >>> When "Build Automatically" is selected, Eclipse compiles Java files on >>> the fly (when you save a file from the editor, IIRC), so your project is >>> always in a "built"-state. You'll never have to compile or build a >>> project yourself. > > True. But don't forget that if you somehow change a file outside > of Eclipse while Eclipse is running, it won't be aware of the > change and things can get out of sync. If in doubt, do a "refresh" > from the project context menu to have Eclipse verify that it's in > sync with the file system. The reason "build automatically" is a choice, and not automatic, is that sometimes it gets in the way to build automatically. The advantage of building non-automatically is control over the timing. Automatic builds can get in the way at times. You might want to edit a few source files before building - unchecking "automatic" gives one that option. -- Lew
|
Pages: 1 Prev: App server with mail server and DB Next: Did I choose right: JME client vs. WAP web browser? |