Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiling different files with Eclipse 1

Status
Not open for further replies.

keizersoz

Programmer
Apr 22, 2004
67
0
0
BE
Hey,

I'm using Eclipse and I would like to write code in different files.

Assume that file Ex9.java contains the main() method.
a) If each file contains different classes, wich file should I comile.

b)Assume I want to split methods of the same class in two files how could I accomplish that?

thanks a lot,
keizersoz
 
a) By saving your file, it's automatically compiled.
With the 'run as ...' menu-entry you may specify which class to start, because a project may contain several files with a 'main'-method.

b) Refactor...


seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top