Reputation: 11
I've been trying to use a helpful tool called Forge.
It comes with the src
folder and everything it really needs. I set up Eclipse, using the workspace as the src
folder inside of the development folder. When Eclipse restarts, nothing is in the package explorer. I feel like I am doing something wrong. I have had other friends do the same thing, and it somehow worked for them. We are all using Eclipse Kepler, as well as the other friends. This version is easier to use, as it's STRICTLY (SOMEWHAT, apparently, which is based on the low amounts of research I did, but the high amounts that others have done. Thanks guys, :D) made for Java.
EDITED AND FIXED: Okay! I just figured out that Paul Crotty up there was right, I just messed up the paths. I literally went all hacker typer on this thing, and it worked. @Paul Crotty
Upvotes: 1
Views: 3167
Reputation: 31
While I am not a Minecraft player, I do know a few things about Eclipse.
I recommend trying the Import feature. From the Workspace/Package Explorer on the far left-hand side on the IDE, you can right click on the directory (usually the *package) into which you would like to import files and select the import option OR you can single lick on the same directory and go to the above toolbar File->Import.
Once the import window opens, make sure to select General->File System. Then Browse to the directory where your files are stored. (The path is usually something like 'C:\User\UserName\workspace\Project_Name\src\package_name' on a Windows machine OR '/home/username/workspace/Project_name/src/package_name' on a Linux machine). Click 'OK' on bottom right-hand side. Then select the files or **packages you want to import!
*You may want to create a package as it is not recommended to store files in the 'default-package' created with most new Projects. (If you need to do this, you can right click on the src folder underneath the Project_Folder found in the Workspace/Package Directory and then go to New->Package. Name the package and your set!)
**Selecting a package will automatically import all files in that directory.
Upvotes: 0
Reputation: 13930
From the documentation, always a good place to start, it says ...
When you open Eclipse, when it asks to select a directory for your workspace, point it at the forge/mcp/eclipse folder in your forge directory.
For advanced user only: Instead you can also create a new Java Project with the location forge/mcp/eclipse/Minecraft and adjust the the PATH variables of your project.
Upvotes: 1
Reputation:
No, no need to use the src folder as workspace. Put it somewhere else, cause every project you make will end up in the src folder and most likely mess up everything. When you get a different workspace, import the src folder. Then it should work. If you need help, just ask in the comments!
Upvotes: 0