JavaTeaching and Importing a github repository

Slides:



Advertisements
Similar presentations
Developing in CAS. Why? As distributed you edit CAS 3 with Eclipse and build with Maven 2 – Best Practice for Release Engineering – Difficult edit-debug.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
MC365 Ant. Today We Will Cover: Overview of Ant Installing Ant Using the Ant command line tool Various Ant commands available Using Ant in Eclipse.
SERVLETS.
Getting Started with GIT. Basic Navigation cd means change directory cd.. moves you up a level cd dir_name moves you to the folder named dir_name A dot.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
WindowsXP Explorer The Explorer is a used to organize and control the files and folders of the different storage systems such as the hard drive, floppy.
Reminder Exchange. Introduction Reminders can be sent from one facility to another Area Offices can create a central repository for each service unit’s.
1 Building the CarryDrop Simulation in JBuilderX By Deddy Koesrindartoto 08/16/2004.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Git Fundamentals Rochelle Terman 13 January 2014.
How to access the project from googlecode using GIT.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
May 7, We manage documents and their changes with versioning and check out/check in procedures.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
A Simple Introduction to Git: a distributed version-control system CS 5010 Program Design Paradigms “Bootcamp” Lesson 0.5 © Mitchell Wand, This.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Installing SAS 1. Requirements If you do not have an old copy of SAS installed on your computer, go directly to Slide 6. Make sure you have uninstalled.
How to Install Eclipse Click hereClick here to download Eclipse.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Loader Tutorial Set Up. Requirements Java 7 Eclipse IvyIDE plugin Git Optional: Ant Maven.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
Maven. Introduction Using Maven (I) – Installing the Maven plugin for Eclipse – Creating a Maven Project – Building the Project Understanding the POM.
© CGI Group Inc. User Guide Subversion client TortoiseSVN.
Importing a github repository Dong Nie. Example used: JavaTeaching If you have already loaded JavaTeahcing from zip file, you should delete it before.
How To Make The Backup Of AVG Antivirus 2017 Definitions.
bitcurator-access-webtools Quick Start Guide
CLOUD
Discussion #11 11/21/16.
Git & Github Timothy McRoy.
Discussion 11 Final Project / Git.
HAPI on eclipse.
ALICE-Juniors Meeting
Executing Runtime Checks (For Comp401 and Comp410)
Installing and running the local check projects in Eclipse
CMPE 152: Compiler Design ANTLR 4 and C++
Microsoft Excel 2007 – Level 1
Instructor: Prasun Dewan (FB 150,
BIT 286: (Web) Application Programming
Some Tips for Using Eclipse
Setting up Eclipse Locally
Executing Runtime Checks (For Comp401 and Comp410)
How to Run a Java Program
User Guide Subversion client TortoiseSVN
Setting up an Eclipse project from a repository on GitHub
Turning in Assignments
Most Common Grading Issues
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Installing and running the local check and grader projects in Eclipse
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Running a Java Program using Blue Jay.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Microsoft Office Illustrated Fundamentals
Review of Previous Lesson
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
The beginning of media computation Followed by a demo
Using GitHub for Papyrus Models Jessie Jewitt – OAM Technology Consulting/ ARM Inc. January 29th, 2018.
Presentation transcript:

JavaTeaching and Importing a github repository Dong Nie

Example used: JavaTeaching If you have already loaded JavaTeahcing from zip file, you should delete it before starting on this exercise Right click project and delete. Usually not a good idea to delete project on disk, can always use the OS to do so, which will put it in the recycling bin

Eclipse: File->import

Choose Git: Projects from Git, and click “next” If you do not see the Git choice, see PPT on importing Egit in reference material or install most recent version of Eclipse

Choose Clone URI, and click “next”

Use the url: https://github.com/pdewan/JavaTeaching.git Only the URI field needs to be filled, the others will be set automatically

Choose Destination Directory (you can set default, and click “next”

Click “next”

Finish

Here comes the Project with Compile Errors You will have errors, be sure to delete the oeall22 reference (if it exists in the class path) and add your oeall22 library (See eclipse install and objecteditor library sections and the next two slides) Until you need ObjectEditor, you can ignore the errors

Replacing/Adding oeall22 (or any other JAR) Right-click on the project you want to modify  Properties

Replacing/Adding oeall22 (or any other JAR) Go to Java Build Path  Libraries tab. Remove the old JAR (if it exists), and choose Add External JARs. Click ApplyOK If you see modulepath or classpath as options, select classpath You need not add external jar if you can live with the compiler errors in code you will not access in the first few praxes. However, if you have time, look at objecteditor PPT on how to download oeall from the web page and then use add external jar to add it. At this point there should be no errors.

Add junit library to your classpath Select Add Library instead of Add External Jar and then select Junit

What your libraries in build path should look after both additions You will probably have a later version of the JRE system library

Pulling (Updating) the Project Right click project, Team>Pull (not Pull…) You may get conflicts if you changed files that were updated in the master version you are pulling In this case, you should save the folders you changed (they will have a > next to them) and then reset the project and then pull again

Pulling the project

Then reset (hard) the project Conflict This happens if you (accidentally) changed a file that was also changed by some one else – in this case the instructor The name(s) of the changed files are given in the message, and next to the project name you see you are behind the version in the repository If your changed files have important information, save them, or save the whole project Then reset (hard) the project

Saving folders changed Click on each changed folder/file and execute CTRL-C (copy)

Saving folders changed Go to desktop or some folder and hit CTRL-V (paste)

Right click project, select Team>reset Resetting the Project After doing an exercise with the code or when you get a conflict, you can reset the project Right click project, select Team>reset

Reset Dialog to Pick Kind of Reset Option Default picks Mixed Option

Hard Reset Deletes all of Your Changes Pick hard and press reset

Hard Reset Deletes all of Your Changes

Pull the project again to get latest non conflicting changes

Successful Pull After Conflict

Going to a package and class in Java Teaching Packages (class folders) Classes (Java source code files) package-info (starting point of praxes)

Collapsed parts

Open them