Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Class Compilation
Class Compilation [message #159337] Tue, 18 May 2004 15:07 Go to next message
Eclipse UserFriend
Originally posted by: g_amit16.yahoo.com

Is there a way to compile a class file seperately within a project instead
of building the whole project (like what Ctrl+1 does in textpad) ?

I know that I can do a Run as -> Java Application on a class file and it
will compile and run the main method of the class. But what if I want to
compile a class file with no main method in it (without building the
project).

Any help will be greatly appretiated..
Thanks
Re: Class Compilation [message #159353 is a reply to message #159337] Tue, 18 May 2004 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

There is no need to compile a file separately. If you have turned on the
incremental compiler, then as the file is changed it will be recompiled.
There is no way to compile one file. Since that file may affect other
files it will always go through and recompile any that are affected by
the file that is changed. It doesn't build the entire workspace, just
the ones that are affected.


--
Thanks, Rich Kulp

Re: Class Compilation [message #159363 is a reply to message #159353] Tue, 18 May 2004 17:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g_amit16.yahoo.com

Rich Kulp wrote:

> There is no need to compile a file separately. If you have turned on the
> incremental compiler, then as the file is changed it will be recompiled.
> There is no way to compile one file. Since that file may affect other
> files it will always go through and recompile any that are affected by
> the file that is changed. It doesn't build the entire workspace, just
> the ones that are affected.


Thanks for the information. Can you please tell me how to turn on the
incremental compiler ?
Re: Class Compilation [message #159392 is a reply to message #159353] Tue, 18 May 2004 18:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g_amit16.yahoo.com

Rich Kulp wrote:

> There is no need to compile a file separately. If you have turned on the
> incremental compiler, then as the file is changed it will be recompiled.
> There is no way to compile one file. Since that file may affect other
> files it will always go through and recompile any that are affected by
> the file that is changed. It doesn't build the entire workspace, just
> the ones that are affected.


Can you please tell me how to turn on the incremental compiler ?

Thanks..
Re: Class Compilation [message #159400 is a reply to message #159392] Tue, 18 May 2004 18:21 Go to previous message
Eclipse UserFriend
Originally posted by: g_amit16.yahoo.com

newuser wrote:

> Rich Kulp wrote:

> > There is no need to compile a file separately. If you have turned on the
> > incremental compiler, then as the file is changed it will be recompiled.
> > There is no way to compile one file. Since that file may affect other
> > files it will always go through and recompile any that are affected by
> > the file that is changed. It doesn't build the entire workspace, just
> > the ones that are affected.


> Can you please tell me how to turn on the incremental compiler ?

> Thanks..


I got it.. Its under Windows->Prefrences. Thanks a lot Rich.
Previous Topic:New Formatter - Assignment statments
Next Topic:Project specific Code Formatting rules
Goto Forum:
  


Current Time: Sun Jun 22 05:11:15 EDT 2025

Powered by FUDForum. Page generated in 0.28870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top