|Import java source code got errors "Editor does not contain a main type" [message #1787491]
||Sat, 26 May 2018 15:30
| Albert Kao
Registered: April 2016
I downloaded the zipped source code from http://horstmann.com/java8/index.html (the book Java SE 8 for the Really Impatient by Cay Horstmann).|
I created a Java project. (File, New, Java Project).
then I tried different ways to import java source code
- Import, General, Archive File
- unzip the downloaded source code, then Import, File System
but got errors such as:
- Editor does not contain a main type
- The declared package "" does not match the expected package "sec01"
I can fix these errors one by one, but I like to konw whether there is a proper way to import java source code from a zipped file to prevent these errors to occur.
I use Eclipse Java EE IDE for Web Developers.
Version: Oxygen.3 Release (4.7.3)
Build id: 20180308-1800
[Updated on: Wed, 30 May 2018 10:53]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02825 seconds