-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadMe
More file actions
40 lines (20 loc) · 1.49 KB
/
ReadMe
File metadata and controls
40 lines (20 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
BEFORE RUNNING THE CODE
This solution was completed using Java with Eclipse (JDK 1.8), there is one more step needed in order to run the code.
1. Import the folder taskBoardProject to your Eclipse, by importing the existing projects to workspace
2. In terms of the second step, in Eclipse, you need to find the file ExecuteOption.java under src folder, and change the line 52.
Since the XMLFile is used to save all the changes made, therefore, its location needs to be changed accordingly.
In my case, I save it to /Users/haoxingwang/Documents
You have to change this path in order to successfully create an XML file and save all the changes.
For example, XMLFile = new File(c:\\test\\file.xml) in Windows
RUNNING THE CODE
1. In terminal, change your working directory to bin folder under folder taskBoardProject
In my case the working directory would be /Users/haoxingwang/Documents/workspace/taskBoardProject/bin
2. Run the code using commands required in this assessment (create, list, delete, move, update and complete):
java taskBoard.Main -create -story 1 'this is my first user story'
or
java taskBoard.Main -list -stories
and etc.
3. If it throws "Error: Could not find or load main class taskBoard.Main"
then, it is necessary to add the project to classpath.
In my case, as my working directory is /Users/haoxingwang/Documents/workspace/taskBoardProject/bin
So that's export CLASSPATH=/Users/haoxingwang/Documents/workspace/taskBoardProject/bin:$CLASSPATH and run the command again