Install Eclipse on your own Computer

advertisement
InstallEclipseonyourownComputer
TheseinstructionswillhelpyousetupEclipsesoyoucanworkonyourowncomputeroutsideofyourregular
recitationtime.
WORKINGFROMYOUROWNMACHINE
IfyouwishtoworkonlabsfromyourownmachineYOUMUSTfollowthesesoftwareinstallation
instructionstogetthesoftwarecomponentsnecessaryforyoutobeabletoworkonyourownmachine
ANDbeabletosubmityourworktoWeb-CAT.
Ifyoudecidetoworkfromyourownmachineyoushouldbringitwithyoutorecitationsothatyoucanstart
andfinishyourworkthere.
NOTE:ItisNOTacceptabletoskiprecitationjustbecauseyouareworkingfromyourownmachine.
Studentswhohaveattendedrecitationhavepriorityinofficehours.BothTAandinstructorofficehoursare
supplementstorecitationandlecture,notareplacementforeither.
Theinstallationprocessconsistsof4parts:
1.)
2.)
3.)
4.)
TheJavaJDK(JavaDevelopmentKit,whichincludesJavaitselfaswellasacompiler).
TheEclipseIDE(IntegratedDevelopmentEnvironment,whichprovidesanenvironmenttocodein).
ConnectingtotheStudentrepository(soyoucancheckoutcodeandworkonthelabs).
Additionalrequiredplug-ins
Afteryoucompletethese,youcanconnecttotheclassCVSrepositoryandcheckoutcodejustlikeyoudoon
themachinesinBaldy21.
Note:Ifyouuseyourowncomputer,pleaserememberthatyourcodeisstoredonyourlocalharddrive
insteadoftheCSEservers.Keepinmindthatanyprojectsyoustartfromyourpersonalcomputerwillnot
resideonyourCSEfilesystem.Yourworkspaceonthelabmachinesandyourpersonalcomputer(s)willNOT
sync.
IfyouareconnectingfromOff-Campus,youneedtouseaVPNtoaccesstotheUBnetwork.Seethissitefor
instructions:http://www.buffalo.edu/ubit/service-guides/getting-connected/virtual-private-network-vpn.html
IfyouareconnectingfromOn-Campus,besuretoconnectusingUB_SecureorResNet.DoNOTuse
UB_WirelessorUB_Guest.Theyareinsecureanddonotprovidethelevelofnetworkaccessyouneed.Ifyou
havetroubleconnecting,seehttp://www.buffalo.edu/ubit/service-guides/getting-connected/gettingconnected.html
Step1:InstalltheJavaSDK
YouprobablyDONOThavethisonyourcomputeralready.YoumighthavetheJavaruntime,butnottheJDK.
Sopleasebesuretofollowthisstep.ThisisneededtocompileJavaprogramsandtorunEclipse.Toinstallthis,
followthestepsbelow.
ThearchitectureoftheJDKshouldmatchthearchitectureofyouroperatingsystem(32-bitor64-bit).
Ifyouhave32-bitWindows/Linux(alsoknownas:x86,i386,i586,i686),youmustdownloadthe32-bitversion
oftheJDK.Samegoesfor64-bit(alsoknownas:x64,AMD64)Linux.Macusershaveonly1option.Ifyouhave
questions,contactyourTA.
1.) GotoJavaSDKdownloadsite.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2.) AsofthiswritingthemostcurrentversionofthedownloadistheJDK8u73.Acceptthelicenseterms,
anddownloadtheappropriateversionoftheJDKforyouroperatingsystem:
3.) Afterdownloadingtheappropriatefile,runittoinstalltheJDK.InstructionsforinstallingtheJavaJDK
areavailablehere:
http://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html
Step2:DownloadEclipse:
1.) Eclipsecanbedownloadedhere:
http://www.eclipse.org/downloads/
Youwillwantthe“EclipseIDEforJavaDevelopers.”Adropdownisavailablenearthetopofthepagetoselect
youroperatingsystem.
Note:Youmustselectthesamearchitecture(32or64bit)thatyouusedinStep1.
Notethatyouwillseethreeoptions:
1.) AdropdownboxwithyourOperatingSystemPlatform(Windows,Mac,Linux)
2.) TheEclipsedownloadlinks.Pick“EclipseIDEforJavaDevelopers”
3.) AnInstallGuide.
SelectyourappropriateOSPlatform(Windows,Mac,orLinux),anddownloadtheEclipsefileusingthe
dropdownbox:
Eclipsedoesnotneedtobe“installed.”Itsimplycomespackagedasacompressedfile(ziportar)andallyou
havetodoisextracttoalocationofyourchoice,i.e.theDesktop.Onceextracted,openthefolderyou
extractedtoandruntheEclipseprogram.Ifyourunintoproblemsdoingthis,seetheInstallGuideonthe
Eclipsewebsite.MakenoteofwhereyouextractEclipseasitwillbeneededlatertoinstallpluginslikeWebCAT.Onesuggestionwouldbetoextractittoyour“Documents”folderoryourDesktop.
Afterextraction,youwillseeawindowsimilartothis(dependingonyourOS).AllyouneedtodoisrunEclipse:
YoushouldbeabletoopenEclipse.Now,followtheprocedurebelowtoconnecttotheclassCVSrepositories.
Step3(a):InstallingCVSRepositoryExploring
TheCVSRepositoryExploringPerspectivedoesn’tcomewiththenewestversionofEclipse,soitneedstobe
installedseparatelybeforetheperspectivecanbeadded.ThiscanbedoneusingtheEclipseMarketplace
ClientpreinstalledinEclipse.
ToopentheEclipseMarketplaceClient:
1.) InEclipse,clicktheHelpmenu.
2.) ThenclickEclipseMarketplace.
IntheEclipseMarketplaceClientwizard:
3.) SearchforCVS
4.) ClickInstallonCVSIntegration1.4
Step3(b):ConfigureClassRepositories
OpentheCVSRepositoryExploringPerspective,clickon“OpenPerspective”buttonandDoubleClickon“CVS
RepositoryExploring:”
OncetheCVSRepositoryExploringPerspectiveLoads,ClicktheAddRepositoryButton
Fillouttheinformation,usingyourownCSEUsernameandPassword.ThenclickOK.
Host:timberlake.cse.buffalo.edu
RepositoryPath:/projects/CSE115/Repositories/Spring2016/Student
ConnectionType:extssh
Upondoingthis,youwillnowbeconnectedtotheclassrepositoryandwillbeabletocheckoutanycode
provided.
Step4:Additionalplug-ins
WeuseWeb-CATformuchofLabgrading.InordertosubmitLabsfromyourowncomputer,youwillneedthe
Web-CATplugininstalled.YouwillalsoneedanadditionalplugincalledSapphire.Toinstallthem,followthe
stepsbelow.
1.) IfEclipseisrunning,closeit.
2.) Gotothefollowingwebsite:
http://www.cse.buffalo.edu/faculty/alphonce/CSE-ECLIPSE.zip
Thisisadownloadlink.Downloadthezipfiletoaconvenientlocation.
3.) Extractallcontentsofthezipfiletothe“dropins”directoryofyoureclipsefolder.Thecontentsofthe
eclipsefolderareshownbelow:
Extractthecontentsof
thezipfileINTOthis
folder.
Your“dropins”foldershouldnowcontainthesefolders:
Now,gobacktothe“eclipse”folderandlaunchEclipse.WeneedtoconfigureWeb-CATinEclipse.
ClickontheWindowmenu,andthenclickPreferences:
Inthewindowthatopensexpand“ElectronicSubmission.”Copyandpastethefollowinglinkinto
“AssignmentDefinitionURL:”
https://web-cat.cse.buffalo.edu:8443/Web-CAT/WebObjects/Web-CAT.woa/wa/assignments/eclipse
Next,clickApply,followedbyOK.Thecompletedresultisbelow.
Don’tforgettoclickApply!
Upondoingthis,youcanrightclickonanyprojectinyourworkspaceandsubmittoWeb-CAT.Besuretouse
yourUBITcredentialswhensubmitting!MakesuretocheckWeb-CATtoensureyoursubmissionwent
through!!
UBITCredentials
Web-CAT,UBMail,myUB,HUB,UBLearns
CSECredentials
CSERepositories,LogintoSunrays/OVDC,SSHto
CSESystemsetc.
Web-CATwillprobablynotappearautomaticallyinEclipseforyou.Youwillneedtousethelinkbelowandlog
inmanuallytocheckifyoursubmissionwentthrough.
https://web-cat.cse.buffalo.edu:8443/Web-CAT/WebObjects/Web-CAT.woa
Download