Krish
Krish

Reputation: 21

Java Programming using eclipse

where does the java file, for example: Employee1.java goes after it is saved in eclipse?

Upvotes: 1

Views: 127

Answers (4)

bharath
bharath

Reputation: 14463

  1. Go to your work space( you are given while eclipse startup)
  2. After open the work space select your project.
  3. Inside of the project, open src folder.
  4. Your Employee1.java file stored in inside this src folder.

simple way,

work space --> select your project --> open **src** folder --> open Employee1.java file.

Or

right click the project --> go to properties --> see the path on resource.

Upvotes: 0

Abhimanyu Srivastava
Abhimanyu Srivastava

Reputation: 506

I guess you have made your java code by selecting new in your java resource:src under your project.... if so then it will go in the projectname/src folder in your workspace............. once you write it eclipse automatically compiles it and stores it in the bin folder of ur workspace from where it uses it.

Upvotes: 1

Alvin
Alvin

Reputation: 10468

To figure out the path of your workspace go to File->Switch Workspace->Other... then in the popup dialog, the shown path is your workspace path.

Now use file explorer to explore the workspace path and see if the folders under it looks familiar to you :-)

Upvotes: 0

Crozin
Crozin

Reputation: 44406

  1. Right click on the file in Package Explorer
  2. Properties
  3. Resource
  4. Path - a relative path to the file (based on project's root), Location - an absolute path to the file in filesystem

Upvotes: 3

Related Questions