0% found this document useful (0 votes)
12 views

Java Lab Setup

Uploaded by

Keshav Agrawal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Java Lab Setup

Uploaded by

Keshav Agrawal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Java Lab set Up

© LearnQuest 2020
2015
Lab Image

• All your labs will require an INITIAL setup per course. Once you have completed this setup as you
evolve your lab it should not need to be done again.

• When you open your lab you will see this;

© LearnQuest 2020
Where are my lab files?

If you open the Studentwork folder you will see both setup and solution directories

© LearnQuest 2020
Open eclipse

• Launch your eclipse workspace • Select->Maven->User Settings->Browse button


for “User Settings”

• Then select Window->Preferences

© LearnQuest 2020
Maven Setup

• Then navigate to
/home/developer/Desktop/settings

• Select the settings.xml file

• Click the Open button

• Your User Settings file has changed

• Click Apply and Close button

• This maven setting will pull in maven


dependencies from behind a proxy

© LearnQuest 2020
• Now to get our starter project, in eclipse select File->Open Projects from File System

• Navigate to developer/Desktop/Studentwork/<starter lab directory>/<Starter lab>

• Below it is Lab02.1/Student

• Select the lab, click the “Open” button

© LearnQuest 2020
Bring your project into eclipse

• Your project should be selected, click the • Close the Welcome tag
“Finish” button

© LearnQuest 2020
• Your project will appear and maven will build the project
to get rid of red errors

© LearnQuest 2020
Problems

• If you see an error like this complaining


about the JRE

• Select the project node->BuildPath-


>Configure Build Path

© LearnQuest 2020
Verify the JRE/JDK

• This means we have an unbound classpath


variable i.e. our JRE.

• Select the Libraries tab

• Select the JRE

• Click the “Edit button”

• Select the Workspace default JRE

• Click the “Finish” button

• Click “Apply and Close” button


© LearnQuest 2020
Project Rebuild

• Maven will rebuild automatically


and you should have no red errors

© LearnQuest 2020
Still have Problem?

• If you still have errors; try a maven clean;

• Select the pom.xml of your project->right click->Run As->Maven clean

• It may take a while, but your console will show some warnings, maybe some downloading
statements but finally a BUILD SUCCESS

© LearnQuest 2020
Project Ready

• Once you start a lab, the state of your lab is maintained

• You should only need to set settings.xml or jdk, or do a maven clean the first time you start a
course

• You are ready to go

© LearnQuest 2020

You might also like