Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 7741

Summary: Importing Java code does not put it into its package [export/import]
Product: [Eclipse Project] JDT Reporter: Duong Nguyen <duongn>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 Keywords: helpwanted
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Duong Nguyen CLA 2002-01-16 10:44:22 EST
When you import Java files into a project they are not created with their 
package structure and thus doesn’t run until you create the package and drag 
the classes into it.  A possible solution would be to add Java Import to the 
list of import types (currently one uses File System) and then the Java code 
could be parsed and then packages could be created.
Comment 1 Erich Gamma CLA 2002-01-17 04:25:43 EST
Correct, a Java aware importer would address this problem.
This isn't planned for 2.0.

BTW, you don't need to create the package all you need to
do is to set the project's class path properly.
Comment 2 Dirk Baeumer CLA 2002-09-18 10:03:51 EDT

*** This bug has been marked as a duplicate of 23168 ***