How to create a project from existing source in Eclipse and then find it? [message #1821391] |
Wed, 12 February 2020 11:15 |
rohit bhat Messages: 1 Registered: February 2020 Location: Bangalore |
Junior Member |
|
|
I have created several .java files. All of them are located in one directory. I used a text editor to write these files. Now I want to switch to Eclipse. How can I do it? I have tried many ways. None of them works.
I think the common way is to have a source in the eclipse folder called "workspace" which was told by my friend who did the Java training course. So, how do I get my files in these directories? Should I use eclipse to create a new project from existing source and Eclipse will put all file to the workspace? Or I should manually copy all my files to the workspace? Where should I put my class files then? Should I create a subdirectory? With which name?
When I try to create a project with the name "game", the eclipse writes to me that a project with such a name already exists. But how can I open this project?
In my "workspace" I have created a subdirectory called "game". I copied all my .java files into this subdirectory. Then with Eclipse, I created a new project with the name game. As a result, Eclipse created .classpath and .project files in the directory "game". It also created bin and src subdirectories. And now I think it is not the correct way to go. The source files are supposed to be in the "src" directory. Right? And at the moment all my .java files are in the "workspace\game".
I did it another way around. With Eclipse I have created a new project with the name "game". As a result, Eclipse created a folder called "game" into folder "workspace". In "game" the folder I found the "src" folder. I copied all my .java files into this folder. But now in the "Package Explorer," I cannot open the "src" folder. So, how can I access my source files from Eclipse? Why Eclipse does not want to open the "src" folder?
[Updated on: Mon, 17 February 2020 09:39] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.09504 seconds