Posted in How To..., Java, JEE / J2EE / JSP / Servlets

How to remove Empty Packages from Package Explorer in Eclipse


remove Empty Packages from Package Explorer in Eclipse

Open Eclipse -> Go to Package Explorer View

Empty Packages in Project Explorer in Eclipse
Empty Packages in Project Explorer in Eclipse
Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Select Filters

Filters for Packages in Eclipse
Filters for Packages in Eclipse

Java Element Filters in Eclipse…

Select the Empty Packages Element to From the View
Select the Empty Packages Element to From the View

Done!!!

Advertisements
Posted in How To..., Java

How to Import Existing Java Project in Eclipse


Import Existing Java Project -> Open Eclipse -> Click on File Menu -> New -> Java Project
Java Project
Java Project

Java – Download Free EBooks and Whitepapers

Give Java Project Name

New Java Project
New Java Project
New Java Project Settings
New Java Project Settings

Click on Finish; New Java Project will be available in Project Explorer -> Right Click on it…

Import Existing Project
Import Existing Project
Select General -> File System
Select General -> File System

a

Select Existing Project from File System
Select Existing Project from File System
Overwrite Dialog Box
Overwrite Dialog Box

See the Red Cross Mark in added Project due to Jar files

Java Source File Errors
Java Source File Errors

Right Click on the Imported Project

configure build path in eclipse
configure build path in eclipse

Click on Add Jars;

Add Jars in Eclipse
Add Jars in Eclipse

If Jars are not available in the Same Project which is imported then click on Add External Jar in above dialog box, Select Jars from the directory available on your system.

Jar Selcetion
Jar Selcetion

Click on Ok.

Notice, Red Marks are Gone..

Source Files Errors Removed After adding Jars in Classpath
Source Files Errors Removed After adding Jars in Classpath