This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Eclipse .java file without project and package creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Eclipse .java file without project and package creation

John G Wright

Joined: Oct 25, 2012
Posts: 18
I am beginner in Java and new to Eclipse. I initially used Edit Plus and I feel it very convenient to create .java file and compile it in the command prompt. I recently started using Eclipse but not able to create .java files without project and packages. As I am a beginner , I want to try lot of basic programs to understand the concepts for which packages and project not required.

1) Can .java files can be created and compiled in the Eclipse without project and package creation as I do it Edit plus ?

2) Also, when I tried creating a new project and want to put all the files that into that project. I right clicked the project and click import and selected the files. Now I have many .java files under my project same. I removed Exlcude buildpath for each .java file and tried compiling it. But it shows error in the main line. Though all are simple programs using Println, but I am not able to rectify the errors.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

closing this duplicate. Continue here.

[My Blog]
All roads lead to JavaRanch
Have you tried LearnNowOnline?
subject: Eclipse .java file without project and package creation