Hi
I am trying Project->Build and not seeing any results. I have the
classpath defined under Window->Preferences. There is a CVS repository
in the backend that is downloaded into the /home/user/workspace of the
client on which eclipse runs. What I expect from Eclipse is to javac
the open file using the classpath and generating a class file. How can
I accomplish this seemingly basic thing? Please post your helpful
comments.
Eclipse isn't so much meant to be a compiler as an IDE. That is to say,
if you just want to generate class files from java files, you might want to
look at a build tool, like ANT.
To actually answer your question though, first of all, are the files you
want to build part of a Java project in Eclipse? Eclipse is a "generic" IDE,
so if created a "C/C++ project" in Eclipse and added .java files to it,
Eclipse will assume these are just generic resource files and not touch
them.
Second, is automatic building turned on? If so, then Eclipse will
immediately generate the class files any time it detects changes to them.
Since it knows the files are already built, it will probably ignore any
requests to build them again. If you want to force a rebuild, choose the
"clean" command.
Other potentially helpful comments:
Eclipse has a built in CVS client. It's probably a good idea to use it
because Eclipse will have an easier time detecting when files have changed
and thus make its automatic build feature more useful. Otherwise, if you
update the files while Eclipse is open, you might have to manually tell
Eclipse to refresh its view of the files to check for changes.
Eclipse has its own newsgroup server, and one of the newsgroup is called
"eclipse.newcomer", which is probably a very good place to post further
questions you may have. You need to register a (free) account to access
their newsgroup server. Details are at
http://www.eclipse.org/newsgroups/index.html
- Oliver