files to java project:
(1) Via File →Import→General→File System and select files from a folder.
(2) Put files in the source subfolder of the project folder and Refresh the project (F5).
(3) Drag files from file system (Windows Explorer) into Eclipse's Package Explorer at the correct location.
(4) Before creating the project: create project folder, copy files to that folder and create a project with the folder name → the files are added automatically to the project.
file = java library =
zip-file with class files which are in a folder structure corresponding
to the package name. For the org.workbench.tutorial.Book.class,
the Book.class file must
be in org\workbench\tutorial.
|When running a java program from
eclipse, the necessary libraries must
be included in the project. When running from outside eclipse, they
must be in the lib or lib\ext folder of the java
version of the path they are in must be included in the CLASS_PATH environment variable.