I've seen alot of people complaining about their PI server packages not setting up correctly. Well here is what i did to get mine to work 100%.
Heres what i will be showing you how to fix:
[Only registered and activated users can see links. Click Here To Register...]
So here we go,
1. Create a folder on your desktop with another folder called "Server" inside it. It should look like that:
[Only registered and activated users can see links. Click Here To Register...]
3. Once this is done, Open up eclipse and go to File > Switch Workspace > Other:
[Only registered and activated users can see links. Click Here To Register...]
4. This will now open another window that should look like this:
[Only registered and activated users can see links. Click Here To Register...]
5. Change the workspace address to:
and press Ok. This should restart eclipse and open up the workspace.Code:C:/Users/username/Desktop/foldername/
6. Once the workspace is created, go to File > New > Java Project:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Setup the Project Name and Location as you see above.
7. Click Finish, this should now give you and empty project with just a src folder and JRE Libraries.
8. Now that we have the src folder ready, the next step is to create the packages that Eclipse wont read.
You want to right click src folder > New > Package
Name it 'server'. And finish. This should give you the Server package, where the Config, Server and Connection classes are located.
To create the next package which is the event folder within src/server, you create a new package and name it 'server.event' and click finish.
This will now create the event folder for you inside the server folder.
Continue doing this until your packages look similar to this:
[Only registered and activated users can see links. Click Here To Register...]
Note: Do not create the Quests package and this is my custom package for my QuestHandler that is not found in other PI sources.
9. Once you are done creating the packages, go to your source and merge the 'src' folder inside the original source with the one that eclipse created for you. Restart eclipse and the classes should be there.
10. Now that you have your classes set up, the next thing you have to do is setup your refferenced libraries so that you can Run the source from eclipse.
Add the 'deps' folder from your original source into the Source folder you are using for this tutorial.
Now go back to eclipse, Right click source > Build Path > Configure Build Path > Click on the Libraries Tab
[Only registered and activated users can see links. Click Here To Register...]
Now click Add Jars and locate your deps folder, Choose all the jars within the deps folder and click ok. This will add the referenced libraries so you can run your source from eclipse.
10. To run the source from eclipse, follow step 5 and further on this tutorial [Only registered and activated users can see links. Click Here To Register...]
You're done :)
Some eclipse tips:
To compile in eclipse without running, the hotkey is "Ctrl+B"
To save all opened classes its "Ctrl+shift+s"
