To push to Github a Java Eclipse project follow these steps:
-
Create a new repository in Github. Set the repository name and select a Public repository.
-
IMPORTANT! Do not include a README.md file when creating the Github repository.
-
Create a Github access token. Go to this page: https://github.com/settings/tokens
Click on the link: "Generate a personal access token" and follow these instructions: http://cse132.engineering.wustl.edu/files/githubEclipseAuth/githubEclipseAuth.html
Set access token name and select scope
- Create in Eclipse a new Java project.
Create a new Java project in Eclipse:
Set new project name and runtime version
See the new Java project folder structure
Create new class in Java project
Set class name and set as public static void main