<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.kkmstudio.dk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SUIFENGSK</id>
	<title>KKM-STUDIO-WIKI - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.kkmstudio.dk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SUIFENGSK"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Special:Contributions/SUIFENGSK"/>
	<updated>2026-09-12T19:20:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=436</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=436"/>
		<updated>2026-08-18T20:45:13Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to my Wiki site&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*This Wiki is mainly used as an&amp;amp;nbsp;assisted&amp;amp;nbsp;teaching tool for DTU (Technical University of Denmark) students.&lt;br /&gt;
*This Wiki is still under construction. If you find a problem or have suggestions for that, please contact me ([mailto:mailo:s214919@student.dtu.dk s214919@student.dtu.dk] or [mailto:info@kkmstudio.dk info@kkmstudio.dk]).&lt;br /&gt;
&#039;&#039;&#039;DTU course&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;amp;nbsp;[https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1 Course 02161 Software Engineering 1]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=435</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=435"/>
		<updated>2026-05-08T22:16:22Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to my Wiki site&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*This Wiki is mainly used as an&amp;amp;nbsp;assisted&amp;amp;nbsp;teaching tool for DTU (Technical University of Denmark) students.&lt;br /&gt;
*This Wiki is still under construction. If you find a problem or have suggestions for that, please contact me ([mailto:mailo:s214919@student.dtu.dk s214919@student.dtu.dk] or [mailto:info@kkmstudio.dk info@kkmstudio.dk]).&lt;br /&gt;
&#039;&#039;&#039;DTU course&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;amp;nbsp;[https://kkmstudio.dk/mediawiki/index.php?title=Category:Course_02161_Software_Engineering_1 Course 02161 Software Engineering 1]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=434</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=434"/>
		<updated>2026-05-08T22:16:03Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to my Wiki site&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
*This Wiki is mainly used as an&amp;amp;nbsp;assisted&amp;amp;nbsp;teaching tool for DTU (Technical University of Denmark) students.&lt;br /&gt;
*This Wiki is still under construction. If you find a problem or have suggestions for that, please contact me ([mailto:mailo:s214919@student.dtu.dk s214919@student.dtu.dk] or [mailto:info@kkmstudio.dk info@kkmstudio.dk]).&lt;br /&gt;
&#039;&#039;&#039;DTU course&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;amp;nbsp;[https://kkmstudio.dk/mediawiki/index.php?title=Category:Course_02161_Software_Engineering_1 Course 02161 Software Engineering 1]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=433</id>
		<title>MediaWiki:Citizen-footer-tagline</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=433"/>
		<updated>2026-05-08T22:15:37Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copyright &amp;amp;copy; 2023-2026 KKM-STUDIO All Rights Reserved&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=432</id>
		<title>MediaWiki:Citizen-footer-tagline</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=432"/>
		<updated>2025-02-02T19:53:07Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copyright &amp;amp;copy; 2023-2025 KKM-STUDIO All Rights Reserved&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=File:Mac_java.png&amp;diff=431</id>
		<title>File:Mac java.png</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=File:Mac_java.png&amp;diff=431"/>
		<updated>2024-01-29T00:34:11Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: SUIFENGSK uploaded a new version of File:Mac java.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=430</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=430"/>
		<updated>2024-01-29T00:05:44Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Install JavaSDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
macOS: ARM64 DMG Installer (for M series chips) or x64 DMG Installer (for Intel chips)&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Double-click&#039;&#039;&#039; the file you downloaded and then &#039;&#039;&#039;double-click&#039;&#039;&#039; the &#039;&#039;&#039;pkg&#039;&#039;&#039; file, you should see the following interface[[File:Mac install java.png|400px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;CONTINUE&#039;&#039;&#039;, and &#039;&#039;&#039;choose&#039;&#039;&#039; where you want to install it. Then you should &#039;&#039;&#039;provide&#039;&#039;&#039; your password and wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&amp;amp;nbsp;&lt;br /&gt;
== Verify JavaSDK ==&lt;br /&gt;
&lt;br /&gt;
Open your terminal and write &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:Mac java.png|400px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=File:Mac_install_java.png&amp;diff=429</id>
		<title>File:Mac install java.png</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=File:Mac_install_java.png&amp;diff=429"/>
		<updated>2024-01-29T00:02:30Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=File:Mac_java.png&amp;diff=428</id>
		<title>File:Mac java.png</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=File:Mac_java.png&amp;diff=428"/>
		<updated>2024-01-29T00:00:23Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=427</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=427"/>
		<updated>2024-01-28T23:57:29Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Install and Verify JavaSDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
macOS: ARM64 DMG Installer (for M series chips) or x64 DMG Installer (for Intel chips)&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=426</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=426"/>
		<updated>2024-01-28T23:52:54Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: Undo revision 425 by SUIFENGSK (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=425</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=425"/>
		<updated>2024-01-28T23:52:10Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Install and Verify JavaSDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install and Verify JavaSDK = == Download JavaSDK == Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended): Windows: x64 Installer == Install JavaSDK == Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]] Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=424</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=424"/>
		<updated>2024-01-28T23:51:10Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Install Homebrew */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=File:Mac05.png&amp;diff=423</id>
		<title>File:Mac05.png</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=File:Mac05.png&amp;diff=423"/>
		<updated>2024-01-28T23:44:36Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: SUIFENGSK uploaded a new version of File:Mac05.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=422</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=422"/>
		<updated>2024-01-28T23:41:45Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=File:Mac05.png&amp;diff=421</id>
		<title>File:Mac05.png</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=File:Mac05.png&amp;diff=421"/>
		<updated>2024-01-28T23:33:51Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: SUIFENGSK uploaded a new version of File:Mac05.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=420</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=420"/>
		<updated>2024-01-28T23:33:15Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark &#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=419</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=419"/>
		<updated>2024-01-28T23:30:30Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&amp;amp;nbsp; &#039;&#039;&#039;After clicking &#039;&#039;&#039;Next&#039;&#039;&#039;, proceed to click &#039;&#039;&#039;Browse&amp;amp;nbsp;&#039;&#039;&#039;and &#039;&#039;&#039;select&#039;&#039;&#039; the file you unpacked from the zip file. Then, &#039;&#039;&#039;mark&amp;amp;nbsp;&#039;&#039;&#039;the project &#039;&#039;&#039;pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=418</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=418"/>
		<updated>2024-01-28T23:29:25Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects. &amp;amp;nbsp;&#039;&#039;&#039;After clicking &amp;amp;lt;strong&amp;amp;gt;Next&amp;amp;lt;/strong&amp;amp;gt;, proceed to click &amp;amp;lt;strong&amp;amp;gt;Browse&amp;amp;lt;/strong&amp;amp;gt; and select the file you unpacked from the zip file. Then, &amp;amp;lt;strong&amp;amp;gt;mark&amp;amp;lt;/strong&amp;amp;gt; the project &amp;amp;lt;strong&amp;amp;gt;/pom.xml&amp;amp;lt;/strong&amp;amp;gt; and click &amp;amp;lt;strong&amp;amp;gt;Finish&amp;amp;lt;/strong&amp;amp;gt;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=417</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=417"/>
		<updated>2024-01-28T23:28:19Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&#039;&#039;&#039;&amp;amp;nbsp; &lt;br /&gt;
And then you click &#039;&#039;&#039;Next&#039;&#039;&#039; and then &#039;&#039;&#039;Browse&#039;&#039;&#039;.&#039;&#039;&#039; &#039;&#039;&#039;&#039;&#039;&#039;Choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project &#039;&#039;&#039;/pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=416</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=416"/>
		<updated>2024-01-28T23:27:59Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects.&#039;&#039;&#039;&amp;amp;nbsp;And then you click &#039;&#039;&#039;Next&#039;&#039;&#039; and then &#039;&#039;&#039;Browse&#039;&#039;&#039;.&#039;&#039;&#039; &#039;&#039;&#039;&#039;&#039;&#039;Choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project &#039;&#039;&#039;/pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=415</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=415"/>
		<updated>2024-01-28T23:21:38Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects&#039;&#039;&#039;. And then you click &#039;&#039;&#039;Next&#039;&#039;&#039; and then &#039;&#039;&#039;Browse&#039;&#039;&#039;.&#039;&#039;&#039; &#039;&#039;&#039;&#039;&#039;&#039;Choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project &#039;&#039;&#039;/pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=414</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=414"/>
		<updated>2024-01-28T23:19:54Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should &#039;&#039;&#039;unpack the zip file first&#039;&#039;&#039;.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Browse &#039;&#039;&#039;and &#039;&#039;&#039;Choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project &#039;&#039;&#039;/pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=File:05.png&amp;diff=413</id>
		<title>File:05.png</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=File:05.png&amp;diff=413"/>
		<updated>2024-01-28T23:15:58Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: SUIFENGSK uploaded File:05.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[File:Import project (Eclipse).png]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=412</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=412"/>
		<updated>2024-01-28T23:15:37Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Eclipse */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; Maven -&amp;amp;gt; Existing Maven Projects&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Browse &#039;&#039;&#039;and &#039;&#039;&#039;Choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project &#039;&#039;&#039;/pom.xml&#039;&#039;&#039; and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=411</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=411"/>
		<updated>2024-01-09T19:47:59Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to my Wiki site&#039;&#039;&#039;&lt;br /&gt;
*This Wiki is mainly used as an&amp;amp;nbsp;assisted&amp;amp;nbsp;teaching tool for DTU (Technical University of Denmark) students.&lt;br /&gt;
*This Wiki is still under construction. If you find a problem or have suggestions for that, please contact me ([mailto:mailo:s214919@student.dtu.dk s214919@student.dtu.dk] or [mailto:info@kkmstudio.dk info@kkmstudio.dk]).&lt;br /&gt;
&#039;&#039;&#039;DTU course&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;amp;nbsp;[https://kkmstudio.dk/mediawiki/index.php?title=Category:Course_02161_Software_Engineering_1 Course 02161 Software Engineering 1]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=410</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=410"/>
		<updated>2024-01-08T22:23:00Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=409</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=409"/>
		<updated>2024-01-08T22:22:48Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.dk/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=408</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Main_Page&amp;diff=408"/>
		<updated>2024-01-08T22:22:28Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to my Wiki site&#039;&#039;&#039;&lt;br /&gt;
*This Wiki is mainly used as an&amp;amp;nbsp;assisted&amp;amp;nbsp;teaching tool for DTU (Technical University of Denmark) students.&lt;br /&gt;
*This Wiki is still under construction. If you find a problem or have suggestions for that, please contact me ([mailto:mailo:s214919@student.dtu.dk s214919@student.dtu.dk] or [mailto:info@kkmstudio.familyds.com info@kkmstudio.familyds.com]).&lt;br /&gt;
&#039;&#039;&#039;DTU course&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;amp;nbsp;[https://kkmstudio.dk/mediawiki/index.php?title=Category:Course_02161_Software_Engineering_1 Course 02161 Software Engineering 1]&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=407</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=407"/>
		<updated>2024-01-06T12:36:07Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Install and Verify JavaSDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=406</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=406"/>
		<updated>2024-01-06T12:35:39Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* Install and Verify JavaSDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=405</id>
		<title>MediaWiki:Citizen-footer-tagline</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=405"/>
		<updated>2024-01-05T20:46:21Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copyright &amp;amp;copy; 2023-2024 KKM-STUDIO All Rights Reserved&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=404</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=404"/>
		<updated>2024-01-05T20:41:29Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: /* IntelliJ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;. After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click Open&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=403</id>
		<title>MediaWiki:Citizen-footer-tagline</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=403"/>
		<updated>2024-01-05T17:53:00Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: Created page with &amp;quot;Copyright &amp;amp;copy; 2024 KKM-STUDIO All Rights Reserved&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copyright &amp;amp;copy; 2024 KKM-STUDIO All Rights Reserved&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-desc&amp;diff=402</id>
		<title>MediaWiki:Citizen-footer-desc</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=MediaWiki:Citizen-footer-desc&amp;diff=402"/>
		<updated>2024-01-05T17:52:05Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: Created page with &amp;quot;Always believe that something wonderful is about to happen.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Always believe that something wonderful is about to happen.&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Visual_Paradigm_Installation_and_User%27s_Guide&amp;diff=401</id>
		<title>Visual Paradigm Installation and User&#039;s Guide</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Visual_Paradigm_Installation_and_User%27s_Guide&amp;diff=401"/>
		<updated>2024-01-05T17:30:01Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot;&amp;gt;only&amp;lt;/span&amp;gt; &#039;&#039;&#039;applies to the &#039;&#039;&#039;WINDOWS &#039;&#039;&#039;operating system, other operating systems have not yet been verified.&lt;br /&gt;
*This tutorial is based on this [https://circle.visual-paradigm.com/docs/ website] with simplifications and modifications. You can visit that website for more detailed UML information and guidelines.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Visual Paradigm Installation =&lt;br /&gt;
== Downloading, Installing and Activating Visual Paradigm ==&lt;br /&gt;
&lt;br /&gt;
#Download the latest version of [https://www.visual-paradigm.com/download/ Visual Paradigm], and then install the Visual Paradigm by following the instructions of the installation wizard.&lt;br /&gt;
#Start &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm. When you see the following screen, select &#039;&#039;&#039;Subscription/Academic License&#039;&#039;&#039;.[[File:Choose subscription 26064.png|500px|center|thumb|Select Subscription / Academic License]]&amp;lt;/span&amp;gt;&lt;br /&gt;
#Expand &#039;&#039;&#039;Academic Training Partner Program License&#039;&#039;&#039;.&lt;br /&gt;
#Copy the activation code from &#039;&#039;&#039;DTU Learn (Content -&#039;&#039;&#039;&amp;amp;gt;&#039;&#039;&#039; UML Modelling Tools -&#039;&#039;&#039;&amp;amp;gt;&#039;&#039;&#039; Visual Paradigm Academic License)&#039;&#039;&#039;.&lt;br /&gt;
#Paste the activation code to the textbox called &#039;&#039;&#039;Activation Code&#039;&#039;&#039;. And then enter your name and student email address (sxxxxxx@student.dtu.dk).[[File:Activation code 26065.png|500px|center|thumb|Activating Visual Paradigm]]&lt;br /&gt;
#Click &#039;&#039;&#039;Activate&#039;&#039;&#039;. You are prompted for an activation code.&lt;br /&gt;
#Go to your email inbox and check your new email for the verification code.&lt;br /&gt;
#Copy the verification code and paste it to &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.[[File:Enter verification code 26066.png|500px|center|thumb|Pasting the verification code]]&lt;br /&gt;
#Click &#039;&#039;&#039;OK &#039;&#039;&#039;to confirm. &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm &amp;lt;/span&amp;gt;will be activated if the verification code is valid.&lt;br /&gt;
&lt;br /&gt;
= Visual Paradigm User&#039;s Guide =&lt;br /&gt;
&amp;lt;p class=&amp;quot;mwt-heading&amp;quot;&amp;gt;In order to create a diagram, you need first to create a project.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating your first project in Visual Paradigm ==&lt;br /&gt;
To create a project, select &#039;&#039;&#039;Project -&amp;amp;gt; New&#039;&#039;&#039; from the toolbar.[[File:Create a new project 33403.png|500px|center|thumb|Create a new project]]&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;New Project&#039;&#039;&#039; window appears.[[File:An overview of new project window 33404.png|500px|center|thumb|An overview of New Project window]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;border-collapse: collapse; width: 100%; height: 184px;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;No.&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;Name&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Name&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The name of the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 2&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Author&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The person who creates the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 3&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Data type set&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | It lets you select the programming/scripting language for the project. The language you selected mainly affects class modelling. For example, the selectable visibilities and primitive types vary among languages.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 4&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Description&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The project description.&amp;amp;nbsp;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 5&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Create Project Management Lookup&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Check it to automatically fill the project management lookups such as iteration, version, etc with default lookup values.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 6&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Create Blank Project&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Click to create the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 7&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Cancel&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Click to cancel creating the project, and close the window.&lt;br /&gt;
|}&lt;br /&gt;
Enter the name of the project and your name. And then you should choose &#039;&#039;&#039;UML&#039;&#039;&#039; as the Data type set and click &#039;&#039;&#039;Create Blank Project&#039;&#039;&#039;. After creating a project, please &#039;&#039;&#039;[[#Saving the current project|save the current project]]&#039;&#039;&#039; first, since the autosave function will be enabled, if you do that.&lt;br /&gt;
&lt;br /&gt;
== UML modelling ==&lt;br /&gt;
This tutorial contains only the UML diagrams required for the course - Use Case Diagram, Class Diagram &amp;amp; Sequence Diagram.&lt;br /&gt;
&lt;br /&gt;
=== Use Case Diagram ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML use case diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram&#039;&#039;&#039; window, search and select&#039;&#039;&#039; Use Case Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram&#039;&#039;&#039; here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter&#039;&#039;&#039; the diagram name and maybe also the description. The &#039;&#039;&#039;Location&#039;&#039;&#039; field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not&#039;&#039;&#039; going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Create a new use case diagram.png|500x500px|center|thumb|Create a new use case diagram]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a system ====&lt;br /&gt;
To create a system in the use case diagram, select &#039;&#039;&#039;System&#039;&#039;&#039; on the diagram toolbar and then click it on the diagram pane. Finally, name the newly created system when it is created.[[File:Create a system 25217.png|200px|center|thumb|Create a system]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;actor&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;To draw an actor in a use case diagram, select &#039;&#039;&#039;Actor&#039;&#039;&#039; on the diagram toolbar and then click it on the diagram pane. Finally, name the newly created actor when it is created.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[[File:Creatre an actor 25218.png|300px|center|thumb|Create an actor]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a use case ====&lt;br /&gt;
You can then create a use case through Resource Catalog by doing the following:&lt;br /&gt;
#Move the mouse over a source shape (e.g. an actor).&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Resource catalog 26845.png|300px|center|middle|thumb|Resource Catalog]]&lt;br /&gt;
#Release the mouse button until it reaches your preferred place. (E.g. in the system box)[[File:Release the mouse button in the system box.png|200px|center|middle|thumb|Release the mouse button in the system box.]]&lt;br /&gt;
#Select &#039;&#039;&#039;Association -&amp;amp;gt; Use Case&#039;&#039;&#039; from Resource Catalog.[[File:Create use case from resource catalog 26846.png|300px|center|middle|thumb|To create a use case]]&lt;br /&gt;
#The source shape and the newly created use case are connected. Finally, name the newly created use case.[[File:Use case created 26847.png|300px|center|middle|thumb|Use Case created]]&lt;br /&gt;
&lt;br /&gt;
=== Class Diagram ===&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML class diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram&#039;&#039;&#039; window, search and select&#039;&#039;&#039; Class Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram&#039;&#039;&#039; here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter&#039;&#039;&#039; the diagram name and maybe also the description. The &#039;&#039;&#039;Location&#039;&#039;&#039; field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not&#039;&#039;&#039; going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Create a new class diagram.png|500px|center|thumb|Create a class diagram]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a class ====&lt;br /&gt;
To create a class in a class diagram, click &#039;&#039;&#039;Class&#039;&#039;&#039; on the diagram toolbar and then click on the diagram.[[File:Create class 25122.png|300px|center|thumb|Create class]]&lt;br /&gt;
&lt;br /&gt;
Then a class will be created.[[File:Class created 26923.png|300px|center|thumb|Class created]]&lt;br /&gt;
==== Creating an attribute ====&lt;br /&gt;
To create an attribute, right-click the class and select &#039;&#039;&#039;Add -&amp;amp;gt; Attribute&#039;&#039;&#039; from the pop-up menu.[[File:Create attribute 25124.png|400px|center|thumb|Create attribute]]&lt;br /&gt;
&lt;br /&gt;
Then an attribute is created.[[File:Attribute created 2538.png|300px|center|thumb|Attribute created]]&lt;br /&gt;
&lt;br /&gt;
You can modify the specification of the attribute by right-clicking the attribute and selecting &#039;&#039;&#039;Open Specification&#039;&#039;&#039; from the pop-up menu.[[File:Attribute specification.png|500px|center|thumb|Attribute Specification ]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an operation ====&lt;br /&gt;
To create an operation, right-click the class and select &#039;&#039;&#039;Add -&amp;amp;gt; Operation &#039;&#039;&#039;from the pop-up menu.[[File:Create operation 25125.png|400px|center|thumb|Create operation]]&lt;br /&gt;
&lt;br /&gt;
Then an operation is created.[[File:Operation created 2541.png|300px|center|thumb|Operation created]]&lt;br /&gt;
&lt;br /&gt;
You can modify the specification of the attribute by right-clicking the operation and selecting &#039;&#039;&#039;Open Specification&#039;&#039;&#039; from the pop-up menu.[[File:Operation specification.png|500px|center|thumb|Operation Specification]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an association ====&lt;br /&gt;
You can create an associated class in a class diagram by doing the following:&lt;br /&gt;
#Move your mouse pointer over the source shape.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Using resource catalog 26921.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the class to be created. If you want to connect to an existing class, drop at that class. Otherwise, drop at the empty space (either at the diagram background or container shape like package).&lt;br /&gt;
#If you are connecting to an existing class, select &#039;&#039;&#039;Association&#039;&#039;&#039; from &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;. If you are creating a new class, select &#039;&#039;&#039;Association -&amp;amp;gt; Class&#039;&#039;&#039; from &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;. If you want to create an aggregation or composition, select &#039;&#039;&#039;Aggregation -&amp;amp;gt; Class or Composition -&amp;amp;gt; Class&#039;&#039;&#039; instead.[[File:Create associated class 26922.png|400px|center|thumb|Create a class]]&lt;br /&gt;
#If you are creating a new class, you should see the class now and it is connected to the source shape. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Associated class created 26917.png|300px|center|thumb|Associated class created]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the navigability of the association =====&lt;br /&gt;
To edit the navigability of an association end, right-click near the association end, select &#039;&#039;&#039;Navigable&#039;&#039;&#039; from the popup menu and then select the &#039;&#039;&#039;true&#039;&#039;&#039; value.[[image:edit_navigability_25126.png|500px|center|thumb|Edit navigability]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the multiplicity of the association =====&lt;br /&gt;
To edit the multiplicity of an association end, right-click near the association end, select &#039;&#039;&#039;Multiplicity&#039;&#039;&#039; from the popup menu and then select a multiplicity.[[File:Edit multiplicity 25126.png|500px|center|thumb|Edit multiplicity]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the direction of the association =====&lt;br /&gt;
To show the direction of an association, right-click on it and select &#039;&#039;&#039;Presentation Options -&amp;amp;gt; Show Direction&#039;&#039;&#039; from the pop-up menu.[[File:Show direction 25123.png|500px|center|thumb|Show direction]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a generalization ====&lt;br /&gt;
You can create a subclass by doing the following:&lt;br /&gt;
#Move your mouse pointer over the superclass.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Using resource catalog 26918.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the subclass to be created. If you want to connect to an existing class, drop at that class. Otherwise, drop at the empty space (either at the diagram background or container shape like package).&lt;br /&gt;
#If you are connecting to an existing class, select &#039;&#039;&#039;Generalization&#039;&#039;&#039; from Resource Catalog. If you are creating a new class, select &#039;&#039;&#039;Generalization -&amp;amp;gt; Class&#039;&#039;&#039; from Resource Catalog.[[File:Select generalization 26919.png|300px|center|thumb|Create a subclass]]&lt;br /&gt;
If you are creating a new class, you should see the class now and it is connected to the source shape with a generalization. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Subclass created 26920.png|300px|center|thumb|Subclass created]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a dependency from/to attribute/operation ====&lt;br /&gt;
You can also add a dependency from and/or to an attribute or operation in class by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Dependency&#039;&#039;&#039; from the diagram toolbar.[[File:Select dependency 27435.png|300px|center|thumb|Dependency]]&lt;br /&gt;
#Press on the source shape or a class member.[[File:To press on source element 27432.png|300px|center|thumb|Press on the source operation]]&lt;br /&gt;
#Drag to the target shape, or a class member.[[File:Dragging to class member 27433.png|300px|center|thumb|Dragging to the target attribute]]&lt;br /&gt;
#Release the mouse button to create the dependency.[[File:Dependency created 27434.png|300px|center|thumb|Dependency created between an operation and a member]]&lt;br /&gt;
&lt;br /&gt;
=== Sequence Diagram ===&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML sequence diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram &#039;&#039;&#039;window, search and select&#039;&#039;&#039; Sequence Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram &#039;&#039;&#039;here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter &#039;&#039;&#039;the diagram name and maybe also the description. The &#039;&#039;&#039;Location &#039;&#039;&#039;field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not &#039;&#039;&#039;going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Sequence diagram.png|500px|center|thumb|Create a new sequence diagram]]&lt;br /&gt;
==== Creating an &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;actor&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;To create an actor, click &#039;&#039;&#039;Actor&#039;&#039;&#039; on the diagram toolbar and then click on the diagram.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[[File:Create actor 25230.png|300px|center|thumb|Create an actor]]&lt;br /&gt;
==== Creating a lifeline ====&lt;br /&gt;
To create a lifeline, you can use &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;:&lt;br /&gt;
#Move your mouse pointer over the source lifeline.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Create lifeline 26851.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the lifeline to be created.&lt;br /&gt;
#Select &#039;&#039;&#039;Message -&amp;amp;gt; LifeLine&#039;&#039;&#039; from Resource Catalog.[[File:Select message 26852.png|500px|center|thumb|Create a lifeline]]&lt;br /&gt;
#A new lifeline will be created and connected to the actor/lifeline with a message. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Lifeline created 26853.png|400px|center|thumb|Lifeline created]]&lt;br /&gt;
&lt;br /&gt;
==== Auto extending activation (Adding a new message / Adding a new activation) ====&lt;br /&gt;
When creating a new message between lifelines/actors, activation will be automatically extended.[[File:Extend activation 2117.png|300px|center|thumb|Auto extending activation]]&lt;br /&gt;
&lt;br /&gt;
If you want to split the newly created activation into two or more, you can check the section &#039;&#039;&#039;[[#Spitting overlapping execution (activation)|Spitting overlapping execution (activation)]] &#039;&#039;&#039;below.&lt;br /&gt;
&lt;br /&gt;
==== Spitting overlapping execution (activation) ====&lt;br /&gt;
You can split the overlapping execution (activation) by &#039;&#039;&#039;right-clicking&#039;&#039;&#039; the execution and selecting &#039;&#039;&#039;Spit Overlapping Execution&#039;&#039;&#039;.[[File:Spilt overlapping execution.png|500px|center|thumb|Spitting overlapping execution (activation)]]&lt;br /&gt;
&lt;br /&gt;
Then the overlapping execution is split.[[File:Overlapping execution split.png|500px|center|thumb|The overlapping execution is split]]&lt;br /&gt;
==== Creating a combined fragment for messages ====&lt;br /&gt;
To create a combined fragment to cover messages, select the messages, right-click on the selection and select &#039;&#039;&#039;Create Combined Fragment&#039;&#039;&#039; and then select a combined fragment type (e.g. loop) from the popup menu.[[image:create_combined_fragment_14702.png|500px|center|thumb|Create a combined fragment for messages]]&lt;br /&gt;
&lt;br /&gt;
A combined fragment of the selected type will be created to cover the messages.[[image:loop_2178.png|500px|center|thumb|The combined fragment created]]&lt;br /&gt;
&lt;br /&gt;
== Exporting the diagram from the project ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;mwt-heading&amp;quot; &amp;gt;&amp;lt;span style=&amp;quot;font-size: 12pt;&amp;quot; &amp;gt;&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot; &amp;gt;&#039;&#039;&#039;[ATTENTION]&#039;&#039;&#039;&amp;lt;/span&amp;gt; I recommend exporting the diagrams in PDF format, as PDF diagrams are vectors and therefore scalable.&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
=== Exporting the diagram as a PDF file (&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot;&amp;gt;Recommended&amp;lt;/span&amp;gt;) ===&lt;br /&gt;
You can export the opening diagram to an image file by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Export -&amp;amp;gt; Active Diagram as Image...&#039;&#039;&#039; from the toolbar.&lt;br /&gt;
#Select the image format as &#039;&#039;&#039;PDF files (*.pdf vector graphic)&#039;&#039;&#039; at the bottom of the window.[[File:Save as pdf.png|500px|center|thumb|Export the diagram as a PDF file]]&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &amp;lt;strong style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;Save &amp;lt;/strong&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;to export.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exporting the diagram as an image ===&lt;br /&gt;
You can export the opening diagram to an image file by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Export -&amp;amp;gt; Active Diagram as Image...&#039;&#039;&#039; from the toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;Save&#039;&#039;&#039; window, set the image quality. The higher the quality, the clearer the image, and the larger the image size.[[File:Set image quality 21084.png|300px|center|thumb|Set the image quality]]&lt;br /&gt;
#Select the image format at the bottom of the window.&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &amp;lt;strong style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;Save &amp;lt;/strong&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;to export.&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;NOTE: There are two options for exporting as PNG files - with and without background:&lt;br /&gt;
- With background: export diagram&#039;s background colour. &lt;br /&gt;
- Without background: ignore the background colour by exporting transparent background.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Switching the different diagrams in the current project ==&lt;br /&gt;
You can easily switch the different diagrams in the current project by pressing &#039;&#039;&#039;ctrl + tab&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Saving the current project ==&lt;br /&gt;
You can save your current project by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Save &#039;&#039;&#039;from the toolbar.&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &#039;&#039;&#039;Save &#039;&#039;&#039;to save the project.&lt;br /&gt;
&lt;br /&gt;
== Importing / Opening your project ==&lt;br /&gt;
You can import / Open your current project by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Open &#039;&#039;&#039;from the toolbar.&lt;br /&gt;
#Choose the project you want to import/open.&lt;br /&gt;
#Click &#039;&#039;&#039;Open &#039;&#039;&#039;to import/open the project.&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|2]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=400</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=400"/>
		<updated>2024-01-05T17:29:48Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=399</id>
		<title>Category:Course 02161 Software Engineering 1</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=399"/>
		<updated>2024-01-05T17:29:36Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This category includes the guides for the course 02161 Software Engineering 1 at DTU.&lt;br /&gt;
*The content on this page &#039;&#039;&#039;should not &#039;&#039;&#039;be regarded as official material under any circumstances. If there is any discrepancy between the content on this page and the official course materials, please refer to the official course materials.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=398</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=398"/>
		<updated>2024-01-05T17:29:12Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;. After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=397</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=397"/>
		<updated>2024-01-05T17:28:24Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&amp;amp;nbsp; *Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;. After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=396</id>
		<title>Category:Course 02161 Software Engineering 1</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=396"/>
		<updated>2024-01-05T16:41:14Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This category includes the guides for the course 02161 Software Engineering 1 at DTU.&lt;br /&gt;
*The content on this page &#039;&#039;&#039;should not &#039;&#039;&#039;be regarded as official material under any circumstances. If there is any discrepancy between the content on this page and the official course materials, please refer to the official course materials.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon (Anonymous)&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=395</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=395"/>
		<updated>2024-01-05T16:41:04Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon (Anonymous)&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;. After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=394</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=394"/>
		<updated>2024-01-05T16:40:56Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon (Anonymous)&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Visual_Paradigm_Installation_and_User%27s_Guide&amp;diff=393</id>
		<title>Visual Paradigm Installation and User&#039;s Guide</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Visual_Paradigm_Installation_and_User%27s_Guide&amp;diff=393"/>
		<updated>2024-01-05T16:40:38Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot;&amp;gt;only&amp;lt;/span&amp;gt; &#039;&#039;&#039;applies to the &#039;&#039;&#039;WINDOWS &#039;&#039;&#039;operating system, other operating systems have not yet been verified.&lt;br /&gt;
*This tutorial is based on this [https://circle.visual-paradigm.com/docs/ website] with simplifications and modifications. You can visit that website for more detailed UML information and guidelines.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon (Anonymous)&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Visual Paradigm Installation =&lt;br /&gt;
== Downloading, Installing and Activating Visual Paradigm ==&lt;br /&gt;
&lt;br /&gt;
#Download the latest version of [https://www.visual-paradigm.com/download/ Visual Paradigm], and then install the Visual Paradigm by following the instructions of the installation wizard.&lt;br /&gt;
#Start &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm. When you see the following screen, select &#039;&#039;&#039;Subscription/Academic License&#039;&#039;&#039;.[[File:Choose subscription 26064.png|500px|center|thumb|Select Subscription / Academic License]]&amp;lt;/span&amp;gt;&lt;br /&gt;
#Expand &#039;&#039;&#039;Academic Training Partner Program License&#039;&#039;&#039;.&lt;br /&gt;
#Copy the activation code from &#039;&#039;&#039;DTU Learn (Content -&#039;&#039;&#039;&amp;amp;gt;&#039;&#039;&#039; UML Modelling Tools -&#039;&#039;&#039;&amp;amp;gt;&#039;&#039;&#039; Visual Paradigm Academic License)&#039;&#039;&#039;.&lt;br /&gt;
#Paste the activation code to the textbox called &#039;&#039;&#039;Activation Code&#039;&#039;&#039;. And then enter your name and student email address (sxxxxxx@student.dtu.dk).[[File:Activation code 26065.png|500px|center|thumb|Activating Visual Paradigm]]&lt;br /&gt;
#Click &#039;&#039;&#039;Activate&#039;&#039;&#039;. You are prompted for an activation code.&lt;br /&gt;
#Go to your email inbox and check your new email for the verification code.&lt;br /&gt;
#Copy the verification code and paste it to &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.[[File:Enter verification code 26066.png|500px|center|thumb|Pasting the verification code]]&lt;br /&gt;
#Click &#039;&#039;&#039;OK &#039;&#039;&#039;to confirm. &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm &amp;lt;/span&amp;gt;will be activated if the verification code is valid.&lt;br /&gt;
&lt;br /&gt;
= Visual Paradigm User&#039;s Guide =&lt;br /&gt;
&amp;lt;p class=&amp;quot;mwt-heading&amp;quot;&amp;gt;In order to create a diagram, you need first to create a project.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating your first project in Visual Paradigm ==&lt;br /&gt;
To create a project, select &#039;&#039;&#039;Project -&amp;amp;gt; New&#039;&#039;&#039; from the toolbar.[[File:Create a new project 33403.png|500px|center|thumb|Create a new project]]&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;New Project&#039;&#039;&#039; window appears.[[File:An overview of new project window 33404.png|500px|center|thumb|An overview of New Project window]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;border-collapse: collapse; width: 100%; height: 184px;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;No.&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;Name&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Name&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The name of the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 2&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Author&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The person who creates the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 3&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Data type set&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | It lets you select the programming/scripting language for the project. The language you selected mainly affects class modelling. For example, the selectable visibilities and primitive types vary among languages.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 4&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Description&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The project description.&amp;amp;nbsp;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 5&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Create Project Management Lookup&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Check it to automatically fill the project management lookups such as iteration, version, etc with default lookup values.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 6&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Create Blank Project&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Click to create the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 7&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Cancel&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Click to cancel creating the project, and close the window.&lt;br /&gt;
|}&lt;br /&gt;
Enter the name of the project and your name. And then you should choose &#039;&#039;&#039;UML&#039;&#039;&#039; as the Data type set and click &#039;&#039;&#039;Create Blank Project&#039;&#039;&#039;. After creating a project, please &#039;&#039;&#039;[[#Saving the current project|save the current project]]&#039;&#039;&#039; first, since the autosave function will be enabled, if you do that.&lt;br /&gt;
&lt;br /&gt;
== UML modelling ==&lt;br /&gt;
This tutorial contains only the UML diagrams required for the course - Use Case Diagram, Class Diagram &amp;amp; Sequence Diagram.&lt;br /&gt;
&lt;br /&gt;
=== Use Case Diagram ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML use case diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram&#039;&#039;&#039; window, search and select&#039;&#039;&#039; Use Case Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram&#039;&#039;&#039; here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter&#039;&#039;&#039; the diagram name and maybe also the description. The &#039;&#039;&#039;Location&#039;&#039;&#039; field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not&#039;&#039;&#039; going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Create a new use case diagram.png|500x500px|center|thumb|Create a new use case diagram]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a system ====&lt;br /&gt;
To create a system in the use case diagram, select &#039;&#039;&#039;System&#039;&#039;&#039; on the diagram toolbar and then click it on the diagram pane. Finally, name the newly created system when it is created.[[File:Create a system 25217.png|200px|center|thumb|Create a system]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;actor&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;To draw an actor in a use case diagram, select &#039;&#039;&#039;Actor&#039;&#039;&#039; on the diagram toolbar and then click it on the diagram pane. Finally, name the newly created actor when it is created.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[[File:Creatre an actor 25218.png|300px|center|thumb|Create an actor]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a use case ====&lt;br /&gt;
You can then create a use case through Resource Catalog by doing the following:&lt;br /&gt;
#Move the mouse over a source shape (e.g. an actor).&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Resource catalog 26845.png|300px|center|middle|thumb|Resource Catalog]]&lt;br /&gt;
#Release the mouse button until it reaches your preferred place. (E.g. in the system box)[[File:Release the mouse button in the system box.png|200px|center|middle|thumb|Release the mouse button in the system box.]]&lt;br /&gt;
#Select &#039;&#039;&#039;Association -&amp;amp;gt; Use Case&#039;&#039;&#039; from Resource Catalog.[[File:Create use case from resource catalog 26846.png|300px|center|middle|thumb|To create a use case]]&lt;br /&gt;
#The source shape and the newly created use case are connected. Finally, name the newly created use case.[[File:Use case created 26847.png|300px|center|middle|thumb|Use Case created]]&lt;br /&gt;
&lt;br /&gt;
=== Class Diagram ===&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML class diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram&#039;&#039;&#039; window, search and select&#039;&#039;&#039; Class Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram&#039;&#039;&#039; here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter&#039;&#039;&#039; the diagram name and maybe also the description. The &#039;&#039;&#039;Location&#039;&#039;&#039; field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not&#039;&#039;&#039; going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Create a new class diagram.png|500px|center|thumb|Create a class diagram]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a class ====&lt;br /&gt;
To create a class in a class diagram, click &#039;&#039;&#039;Class&#039;&#039;&#039; on the diagram toolbar and then click on the diagram.[[File:Create class 25122.png|300px|center|thumb|Create class]]&lt;br /&gt;
&lt;br /&gt;
Then a class will be created.[[File:Class created 26923.png|300px|center|thumb|Class created]]&lt;br /&gt;
==== Creating an attribute ====&lt;br /&gt;
To create an attribute, right-click the class and select &#039;&#039;&#039;Add -&amp;amp;gt; Attribute&#039;&#039;&#039; from the pop-up menu.[[File:Create attribute 25124.png|400px|center|thumb|Create attribute]]&lt;br /&gt;
&lt;br /&gt;
Then an attribute is created.[[File:Attribute created 2538.png|300px|center|thumb|Attribute created]]&lt;br /&gt;
&lt;br /&gt;
You can modify the specification of the attribute by right-clicking the attribute and selecting &#039;&#039;&#039;Open Specification&#039;&#039;&#039; from the pop-up menu.[[File:Attribute specification.png|500px|center|thumb|Attribute Specification ]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an operation ====&lt;br /&gt;
To create an operation, right-click the class and select &#039;&#039;&#039;Add -&amp;amp;gt; Operation &#039;&#039;&#039;from the pop-up menu.[[File:Create operation 25125.png|400px|center|thumb|Create operation]]&lt;br /&gt;
&lt;br /&gt;
Then an operation is created.[[File:Operation created 2541.png|300px|center|thumb|Operation created]]&lt;br /&gt;
&lt;br /&gt;
You can modify the specification of the attribute by right-clicking the operation and selecting &#039;&#039;&#039;Open Specification&#039;&#039;&#039; from the pop-up menu.[[File:Operation specification.png|500px|center|thumb|Operation Specification]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an association ====&lt;br /&gt;
You can create an associated class in a class diagram by doing the following:&lt;br /&gt;
#Move your mouse pointer over the source shape.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Using resource catalog 26921.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the class to be created. If you want to connect to an existing class, drop at that class. Otherwise, drop at the empty space (either at the diagram background or container shape like package).&lt;br /&gt;
#If you are connecting to an existing class, select &#039;&#039;&#039;Association&#039;&#039;&#039; from &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;. If you are creating a new class, select &#039;&#039;&#039;Association -&amp;amp;gt; Class&#039;&#039;&#039; from &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;. If you want to create an aggregation or composition, select &#039;&#039;&#039;Aggregation -&amp;amp;gt; Class or Composition -&amp;amp;gt; Class&#039;&#039;&#039; instead.[[File:Create associated class 26922.png|400px|center|thumb|Create a class]]&lt;br /&gt;
#If you are creating a new class, you should see the class now and it is connected to the source shape. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Associated class created 26917.png|300px|center|thumb|Associated class created]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the navigability of the association =====&lt;br /&gt;
To edit the navigability of an association end, right-click near the association end, select &#039;&#039;&#039;Navigable&#039;&#039;&#039; from the popup menu and then select the &#039;&#039;&#039;true&#039;&#039;&#039; value.[[image:edit_navigability_25126.png|500px|center|thumb|Edit navigability]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the multiplicity of the association =====&lt;br /&gt;
To edit the multiplicity of an association end, right-click near the association end, select &#039;&#039;&#039;Multiplicity&#039;&#039;&#039; from the popup menu and then select a multiplicity.[[File:Edit multiplicity 25126.png|500px|center|thumb|Edit multiplicity]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the direction of the association =====&lt;br /&gt;
To show the direction of an association, right-click on it and select &#039;&#039;&#039;Presentation Options -&amp;amp;gt; Show Direction&#039;&#039;&#039; from the pop-up menu.[[File:Show direction 25123.png|500px|center|thumb|Show direction]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a generalization ====&lt;br /&gt;
You can create a subclass by doing the following:&lt;br /&gt;
#Move your mouse pointer over the superclass.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Using resource catalog 26918.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the subclass to be created. If you want to connect to an existing class, drop at that class. Otherwise, drop at the empty space (either at the diagram background or container shape like package).&lt;br /&gt;
#If you are connecting to an existing class, select &#039;&#039;&#039;Generalization&#039;&#039;&#039; from Resource Catalog. If you are creating a new class, select &#039;&#039;&#039;Generalization -&amp;amp;gt; Class&#039;&#039;&#039; from Resource Catalog.[[File:Select generalization 26919.png|300px|center|thumb|Create a subclass]]&lt;br /&gt;
If you are creating a new class, you should see the class now and it is connected to the source shape with a generalization. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Subclass created 26920.png|300px|center|thumb|Subclass created]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a dependency from/to attribute/operation ====&lt;br /&gt;
You can also add a dependency from and/or to an attribute or operation in class by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Dependency&#039;&#039;&#039; from the diagram toolbar.[[File:Select dependency 27435.png|300px|center|thumb|Dependency]]&lt;br /&gt;
#Press on the source shape or a class member.[[File:To press on source element 27432.png|300px|center|thumb|Press on the source operation]]&lt;br /&gt;
#Drag to the target shape, or a class member.[[File:Dragging to class member 27433.png|300px|center|thumb|Dragging to the target attribute]]&lt;br /&gt;
#Release the mouse button to create the dependency.[[File:Dependency created 27434.png|300px|center|thumb|Dependency created between an operation and a member]]&lt;br /&gt;
&lt;br /&gt;
=== Sequence Diagram ===&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML sequence diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram &#039;&#039;&#039;window, search and select&#039;&#039;&#039; Sequence Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram &#039;&#039;&#039;here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter &#039;&#039;&#039;the diagram name and maybe also the description. The &#039;&#039;&#039;Location &#039;&#039;&#039;field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not &#039;&#039;&#039;going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Sequence diagram.png|500px|center|thumb|Create a new sequence diagram]]&lt;br /&gt;
==== Creating an &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;actor&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;To create an actor, click &#039;&#039;&#039;Actor&#039;&#039;&#039; on the diagram toolbar and then click on the diagram.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[[File:Create actor 25230.png|300px|center|thumb|Create an actor]]&lt;br /&gt;
==== Creating a lifeline ====&lt;br /&gt;
To create a lifeline, you can use &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;:&lt;br /&gt;
#Move your mouse pointer over the source lifeline.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Create lifeline 26851.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the lifeline to be created.&lt;br /&gt;
#Select &#039;&#039;&#039;Message -&amp;amp;gt; LifeLine&#039;&#039;&#039; from Resource Catalog.[[File:Select message 26852.png|500px|center|thumb|Create a lifeline]]&lt;br /&gt;
#A new lifeline will be created and connected to the actor/lifeline with a message. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Lifeline created 26853.png|400px|center|thumb|Lifeline created]]&lt;br /&gt;
&lt;br /&gt;
==== Auto extending activation (Adding a new message / Adding a new activation) ====&lt;br /&gt;
When creating a new message between lifelines/actors, activation will be automatically extended.[[File:Extend activation 2117.png|300px|center|thumb|Auto extending activation]]&lt;br /&gt;
&lt;br /&gt;
If you want to split the newly created activation into two or more, you can check the section &#039;&#039;&#039;[[#Spitting overlapping execution (activation)|Spitting overlapping execution (activation)]] &#039;&#039;&#039;below.&lt;br /&gt;
&lt;br /&gt;
==== Spitting overlapping execution (activation) ====&lt;br /&gt;
You can split the overlapping execution (activation) by &#039;&#039;&#039;right-clicking&#039;&#039;&#039; the execution and selecting &#039;&#039;&#039;Spit Overlapping Execution&#039;&#039;&#039;.[[File:Spilt overlapping execution.png|500px|center|thumb|Spitting overlapping execution (activation)]]&lt;br /&gt;
&lt;br /&gt;
Then the overlapping execution is split.[[File:Overlapping execution split.png|500px|center|thumb|The overlapping execution is split]]&lt;br /&gt;
==== Creating a combined fragment for messages ====&lt;br /&gt;
To create a combined fragment to cover messages, select the messages, right-click on the selection and select &#039;&#039;&#039;Create Combined Fragment&#039;&#039;&#039; and then select a combined fragment type (e.g. loop) from the popup menu.[[image:create_combined_fragment_14702.png|500px|center|thumb|Create a combined fragment for messages]]&lt;br /&gt;
&lt;br /&gt;
A combined fragment of the selected type will be created to cover the messages.[[image:loop_2178.png|500px|center|thumb|The combined fragment created]]&lt;br /&gt;
&lt;br /&gt;
== Exporting the diagram from the project ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;mwt-heading&amp;quot; &amp;gt;&amp;lt;span style=&amp;quot;font-size: 12pt;&amp;quot; &amp;gt;&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot; &amp;gt;&#039;&#039;&#039;[ATTENTION]&#039;&#039;&#039;&amp;lt;/span&amp;gt; I recommend exporting the diagrams in PDF format, as PDF diagrams are vectors and therefore scalable.&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
=== Exporting the diagram as a PDF file (&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot;&amp;gt;Recommended&amp;lt;/span&amp;gt;) ===&lt;br /&gt;
You can export the opening diagram to an image file by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Export -&amp;amp;gt; Active Diagram as Image...&#039;&#039;&#039; from the toolbar.&lt;br /&gt;
#Select the image format as &#039;&#039;&#039;PDF files (*.pdf vector graphic)&#039;&#039;&#039; at the bottom of the window.[[File:Save as pdf.png|500px|center|thumb|Export the diagram as a PDF file]]&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &amp;lt;strong style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;Save &amp;lt;/strong&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;to export.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exporting the diagram as an image ===&lt;br /&gt;
You can export the opening diagram to an image file by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Export -&amp;amp;gt; Active Diagram as Image...&#039;&#039;&#039; from the toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;Save&#039;&#039;&#039; window, set the image quality. The higher the quality, the clearer the image, and the larger the image size.[[File:Set image quality 21084.png|300px|center|thumb|Set the image quality]]&lt;br /&gt;
#Select the image format at the bottom of the window.&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &amp;lt;strong style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;Save &amp;lt;/strong&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;to export.&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;NOTE: There are two options for exporting as PNG files - with and without background:&lt;br /&gt;
- With background: export diagram&#039;s background colour. &lt;br /&gt;
- Without background: ignore the background colour by exporting transparent background.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Switching the different diagrams in the current project ==&lt;br /&gt;
You can easily switch the different diagrams in the current project by pressing &#039;&#039;&#039;ctrl + tab&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Saving the current project ==&lt;br /&gt;
You can save your current project by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Save &#039;&#039;&#039;from the toolbar.&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &#039;&#039;&#039;Save &#039;&#039;&#039;to save the project.&lt;br /&gt;
&lt;br /&gt;
== Importing / Opening your project ==&lt;br /&gt;
You can import / Open your current project by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Open &#039;&#039;&#039;from the toolbar.&lt;br /&gt;
#Choose the project you want to import/open.&lt;br /&gt;
#Click &#039;&#039;&#039;Open &#039;&#039;&#039;to import/open the project.&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|2]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Visual_Paradigm_Installation_and_User%27s_Guide&amp;diff=392</id>
		<title>Visual Paradigm Installation and User&#039;s Guide</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Visual_Paradigm_Installation_and_User%27s_Guide&amp;diff=392"/>
		<updated>2024-01-05T16:39:45Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot;&amp;gt;only&amp;lt;/span&amp;gt; &#039;&#039;&#039;applies to the &#039;&#039;&#039;WINDOWS &#039;&#039;&#039;operating system, other operating systems have not yet been verified.&lt;br /&gt;
*This tutorial is based on this [https://circle.visual-paradigm.com/docs/ website] with simplifications and modifications. You can visit that website for more detailed UML information and guidelines.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Visual Paradigm Installation =&lt;br /&gt;
== Downloading, Installing and Activating Visual Paradigm ==&lt;br /&gt;
&lt;br /&gt;
#Download the latest version of [https://www.visual-paradigm.com/download/ Visual Paradigm], and then install the Visual Paradigm by following the instructions of the installation wizard.&lt;br /&gt;
#Start &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm. When you see the following screen, select &#039;&#039;&#039;Subscription/Academic License&#039;&#039;&#039;.[[File:Choose subscription 26064.png|500px|center|thumb|Select Subscription / Academic License]]&amp;lt;/span&amp;gt;&lt;br /&gt;
#Expand &#039;&#039;&#039;Academic Training Partner Program License&#039;&#039;&#039;.&lt;br /&gt;
#Copy the activation code from &#039;&#039;&#039;DTU Learn (Content -&#039;&#039;&#039;&amp;amp;gt;&#039;&#039;&#039; UML Modelling Tools -&#039;&#039;&#039;&amp;amp;gt;&#039;&#039;&#039; Visual Paradigm Academic License)&#039;&#039;&#039;.&lt;br /&gt;
#Paste the activation code to the textbox called &#039;&#039;&#039;Activation Code&#039;&#039;&#039;. And then enter your name and student email address (sxxxxxx@student.dtu.dk).[[File:Activation code 26065.png|500px|center|thumb|Activating Visual Paradigm]]&lt;br /&gt;
#Click &#039;&#039;&#039;Activate&#039;&#039;&#039;. You are prompted for an activation code.&lt;br /&gt;
#Go to your email inbox and check your new email for the verification code.&lt;br /&gt;
#Copy the verification code and paste it to &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.[[File:Enter verification code 26066.png|500px|center|thumb|Pasting the verification code]]&lt;br /&gt;
#Click &#039;&#039;&#039;OK &#039;&#039;&#039;to confirm. &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm &amp;lt;/span&amp;gt;will be activated if the verification code is valid.&lt;br /&gt;
&lt;br /&gt;
= Visual Paradigm User&#039;s Guide =&lt;br /&gt;
&amp;lt;p class=&amp;quot;mwt-heading&amp;quot;&amp;gt;In order to create a diagram, you need first to create a project.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating your first project in Visual Paradigm ==&lt;br /&gt;
To create a project, select &#039;&#039;&#039;Project -&amp;amp;gt; New&#039;&#039;&#039; from the toolbar.[[File:Create a new project 33403.png|500px|center|thumb|Create a new project]]&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;New Project&#039;&#039;&#039; window appears.[[File:An overview of new project window 33404.png|500px|center|thumb|An overview of New Project window]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;border-collapse: collapse; width: 100%; height: 184px;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;No.&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;Name&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px; text-align: center;&amp;quot; | &#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Name&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The name of the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 2&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Author&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The person who creates the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 3&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Data type set&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | It lets you select the programming/scripting language for the project. The language you selected mainly affects class modelling. For example, the selectable visibilities and primitive types vary among languages.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 4&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Description&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | The project description.&amp;amp;nbsp;&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 5&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Create Project Management Lookup&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Check it to automatically fill the project management lookups such as iteration, version, etc with default lookup values.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 6&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Create Blank Project&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Click to create the project.&lt;br /&gt;
|- style=&amp;quot;height: 23px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 7.59245%; height: 23px; text-align: center;&amp;quot; | 7&lt;br /&gt;
| style=&amp;quot;width: 22.3256%; height: 23px;&amp;quot; | Cancel&lt;br /&gt;
| style=&amp;quot;width: 70.0818%; height: 23px;&amp;quot; | Click to cancel creating the project, and close the window.&lt;br /&gt;
|}&lt;br /&gt;
Enter the name of the project and your name. And then you should choose &#039;&#039;&#039;UML&#039;&#039;&#039; as the Data type set and click &#039;&#039;&#039;Create Blank Project&#039;&#039;&#039;. After creating a project, please &#039;&#039;&#039;[[#Saving the current project|save the current project]]&#039;&#039;&#039; first, since the autosave function will be enabled, if you do that.&lt;br /&gt;
&lt;br /&gt;
== UML modelling ==&lt;br /&gt;
This tutorial contains only the UML diagrams required for the course - Use Case Diagram, Class Diagram &amp;amp; Sequence Diagram.&lt;br /&gt;
&lt;br /&gt;
=== Use Case Diagram ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML use case diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram&#039;&#039;&#039; window, search and select&#039;&#039;&#039; Use Case Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram&#039;&#039;&#039; here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter&#039;&#039;&#039; the diagram name and maybe also the description. The &#039;&#039;&#039;Location&#039;&#039;&#039; field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not&#039;&#039;&#039; going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Create a new use case diagram.png|500x500px|center|thumb|Create a new use case diagram]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a system ====&lt;br /&gt;
To create a system in the use case diagram, select &#039;&#039;&#039;System&#039;&#039;&#039; on the diagram toolbar and then click it on the diagram pane. Finally, name the newly created system when it is created.[[File:Create a system 25217.png|200px|center|thumb|Create a system]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;actor&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;To draw an actor in a use case diagram, select &#039;&#039;&#039;Actor&#039;&#039;&#039; on the diagram toolbar and then click it on the diagram pane. Finally, name the newly created actor when it is created.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[[File:Creatre an actor 25218.png|300px|center|thumb|Create an actor]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a use case ====&lt;br /&gt;
You can then create a use case through Resource Catalog by doing the following:&lt;br /&gt;
#Move the mouse over a source shape (e.g. an actor).&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Resource catalog 26845.png|300px|center|middle|thumb|Resource Catalog]]&lt;br /&gt;
#Release the mouse button until it reaches your preferred place. (E.g. in the system box)[[File:Release the mouse button in the system box.png|200px|center|middle|thumb|Release the mouse button in the system box.]]&lt;br /&gt;
#Select &#039;&#039;&#039;Association -&amp;amp;gt; Use Case&#039;&#039;&#039; from Resource Catalog.[[File:Create use case from resource catalog 26846.png|300px|center|middle|thumb|To create a use case]]&lt;br /&gt;
#The source shape and the newly created use case are connected. Finally, name the newly created use case.[[File:Use case created 26847.png|300px|center|middle|thumb|Use Case created]]&lt;br /&gt;
&lt;br /&gt;
=== Class Diagram ===&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML class diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram&#039;&#039;&#039; window, search and select&#039;&#039;&#039; Class Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram&#039;&#039;&#039; here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter&#039;&#039;&#039; the diagram name and maybe also the description. The &#039;&#039;&#039;Location&#039;&#039;&#039; field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not&#039;&#039;&#039; going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Create a new class diagram.png|500px|center|thumb|Create a class diagram]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a class ====&lt;br /&gt;
To create a class in a class diagram, click &#039;&#039;&#039;Class&#039;&#039;&#039; on the diagram toolbar and then click on the diagram.[[File:Create class 25122.png|300px|center|thumb|Create class]]&lt;br /&gt;
&lt;br /&gt;
Then a class will be created.[[File:Class created 26923.png|300px|center|thumb|Class created]]&lt;br /&gt;
==== Creating an attribute ====&lt;br /&gt;
To create an attribute, right-click the class and select &#039;&#039;&#039;Add -&amp;amp;gt; Attribute&#039;&#039;&#039; from the pop-up menu.[[File:Create attribute 25124.png|400px|center|thumb|Create attribute]]&lt;br /&gt;
&lt;br /&gt;
Then an attribute is created.[[File:Attribute created 2538.png|300px|center|thumb|Attribute created]]&lt;br /&gt;
&lt;br /&gt;
You can modify the specification of the attribute by right-clicking the attribute and selecting &#039;&#039;&#039;Open Specification&#039;&#039;&#039; from the pop-up menu.[[File:Attribute specification.png|500px|center|thumb|Attribute Specification ]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an operation ====&lt;br /&gt;
To create an operation, right-click the class and select &#039;&#039;&#039;Add -&amp;amp;gt; Operation &#039;&#039;&#039;from the pop-up menu.[[File:Create operation 25125.png|400px|center|thumb|Create operation]]&lt;br /&gt;
&lt;br /&gt;
Then an operation is created.[[File:Operation created 2541.png|300px|center|thumb|Operation created]]&lt;br /&gt;
&lt;br /&gt;
You can modify the specification of the attribute by right-clicking the operation and selecting &#039;&#039;&#039;Open Specification&#039;&#039;&#039; from the pop-up menu.[[File:Operation specification.png|500px|center|thumb|Operation Specification]]&lt;br /&gt;
&lt;br /&gt;
==== Creating an association ====&lt;br /&gt;
You can create an associated class in a class diagram by doing the following:&lt;br /&gt;
#Move your mouse pointer over the source shape.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Using resource catalog 26921.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the class to be created. If you want to connect to an existing class, drop at that class. Otherwise, drop at the empty space (either at the diagram background or container shape like package).&lt;br /&gt;
#If you are connecting to an existing class, select &#039;&#039;&#039;Association&#039;&#039;&#039; from &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;. If you are creating a new class, select &#039;&#039;&#039;Association -&amp;amp;gt; Class&#039;&#039;&#039; from &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;. If you want to create an aggregation or composition, select &#039;&#039;&#039;Aggregation -&amp;amp;gt; Class or Composition -&amp;amp;gt; Class&#039;&#039;&#039; instead.[[File:Create associated class 26922.png|400px|center|thumb|Create a class]]&lt;br /&gt;
#If you are creating a new class, you should see the class now and it is connected to the source shape. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Associated class created 26917.png|300px|center|thumb|Associated class created]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the navigability of the association =====&lt;br /&gt;
To edit the navigability of an association end, right-click near the association end, select &#039;&#039;&#039;Navigable&#039;&#039;&#039; from the popup menu and then select the &#039;&#039;&#039;true&#039;&#039;&#039; value.[[image:edit_navigability_25126.png|500px|center|thumb|Edit navigability]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the multiplicity of the association =====&lt;br /&gt;
To edit the multiplicity of an association end, right-click near the association end, select &#039;&#039;&#039;Multiplicity&#039;&#039;&#039; from the popup menu and then select a multiplicity.[[File:Edit multiplicity 25126.png|500px|center|thumb|Edit multiplicity]]&lt;br /&gt;
&lt;br /&gt;
===== Editing the direction of the association =====&lt;br /&gt;
To show the direction of an association, right-click on it and select &#039;&#039;&#039;Presentation Options -&amp;amp;gt; Show Direction&#039;&#039;&#039; from the pop-up menu.[[File:Show direction 25123.png|500px|center|thumb|Show direction]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a generalization ====&lt;br /&gt;
You can create a subclass by doing the following:&lt;br /&gt;
#Move your mouse pointer over the superclass.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Using resource catalog 26918.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the subclass to be created. If you want to connect to an existing class, drop at that class. Otherwise, drop at the empty space (either at the diagram background or container shape like package).&lt;br /&gt;
#If you are connecting to an existing class, select &#039;&#039;&#039;Generalization&#039;&#039;&#039; from Resource Catalog. If you are creating a new class, select &#039;&#039;&#039;Generalization -&amp;amp;gt; Class&#039;&#039;&#039; from Resource Catalog.[[File:Select generalization 26919.png|300px|center|thumb|Create a subclass]]&lt;br /&gt;
If you are creating a new class, you should see the class now and it is connected to the source shape with a generalization. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Subclass created 26920.png|300px|center|thumb|Subclass created]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a dependency from/to attribute/operation ====&lt;br /&gt;
You can also add a dependency from and/or to an attribute or operation in class by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Dependency&#039;&#039;&#039; from the diagram toolbar.[[File:Select dependency 27435.png|300px|center|thumb|Dependency]]&lt;br /&gt;
#Press on the source shape or a class member.[[File:To press on source element 27432.png|300px|center|thumb|Press on the source operation]]&lt;br /&gt;
#Drag to the target shape, or a class member.[[File:Dragging to class member 27433.png|300px|center|thumb|Dragging to the target attribute]]&lt;br /&gt;
#Release the mouse button to create the dependency.[[File:Dependency created 27434.png|300px|center|thumb|Dependency created between an operation and a member]]&lt;br /&gt;
&lt;br /&gt;
=== Sequence Diagram ===&lt;br /&gt;
&amp;lt;p&amp;gt;Perform the steps below to create a UML sequence diagram in &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;Visual Paradigm&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
#Select &#039;&#039;&#039;Diagram -&amp;amp;gt; New &#039;&#039;&#039;from the application toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;New Diagram &#039;&#039;&#039;window, search and select&#039;&#039;&#039; Sequence Diagram&#039;&#039;&#039;, and then click &#039;&#039;&#039;Next&#039;&#039;&#039;.&lt;br /&gt;
#You can &#039;&#039;&#039;choose&#039;&#039;&#039; to create a blank diagram or use the template. We choose to &#039;&#039;&#039;create a blank diagram &#039;&#039;&#039;here.&amp;amp;nbsp;&lt;br /&gt;
#&#039;&#039;&#039;Enter &#039;&#039;&#039;the diagram name and maybe also the description. The &#039;&#039;&#039;Location &#039;&#039;&#039;field enables you to select a model to store the diagram. We are &#039;&#039;&#039;not &#039;&#039;&#039;going to change this value right now.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
[[File:Sequence diagram.png|500px|center|thumb|Create a new sequence diagram]]&lt;br /&gt;
==== Creating an &amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;actor&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;To create an actor, click &#039;&#039;&#039;Actor&#039;&#039;&#039; on the diagram toolbar and then click on the diagram.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;notranslate&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;[[File:Create actor 25230.png|300px|center|thumb|Create an actor]]&lt;br /&gt;
==== Creating a lifeline ====&lt;br /&gt;
To create a lifeline, you can use &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039;:&lt;br /&gt;
#Move your mouse pointer over the source lifeline.&lt;br /&gt;
#Press on the &#039;&#039;&#039;Resource Catalog&#039;&#039;&#039; button and drag it out.[[File:Create lifeline 26851.png|300px|center|thumb|Using Resource Catalog]]&lt;br /&gt;
#Release the mouse button at the place where you want the lifeline to be created.&lt;br /&gt;
#Select &#039;&#039;&#039;Message -&amp;amp;gt; LifeLine&#039;&#039;&#039; from Resource Catalog.[[File:Select message 26852.png|500px|center|thumb|Create a lifeline]]&lt;br /&gt;
#A new lifeline will be created and connected to the actor/lifeline with a message. Enter its name and press &#039;&#039;&#039;Enter&#039;&#039;&#039; to confirm editing.[[File:Lifeline created 26853.png|400px|center|thumb|Lifeline created]]&lt;br /&gt;
&lt;br /&gt;
==== Auto extending activation (Adding a new message / Adding a new activation) ====&lt;br /&gt;
When creating a new message between lifelines/actors, activation will be automatically extended.[[File:Extend activation 2117.png|300px|center|thumb|Auto extending activation]]&lt;br /&gt;
&lt;br /&gt;
If you want to split the newly created activation into two or more, you can check the section &#039;&#039;&#039;[[#Spitting overlapping execution (activation)|Spitting overlapping execution (activation)]] &#039;&#039;&#039;below.&lt;br /&gt;
&lt;br /&gt;
==== Spitting overlapping execution (activation) ====&lt;br /&gt;
You can split the overlapping execution (activation) by &#039;&#039;&#039;right-clicking&#039;&#039;&#039; the execution and selecting &#039;&#039;&#039;Spit Overlapping Execution&#039;&#039;&#039;.[[File:Spilt overlapping execution.png|500px|center|thumb|Spitting overlapping execution (activation)]]&lt;br /&gt;
&lt;br /&gt;
Then the overlapping execution is split.[[File:Overlapping execution split.png|500px|center|thumb|The overlapping execution is split]]&lt;br /&gt;
==== Creating a combined fragment for messages ====&lt;br /&gt;
To create a combined fragment to cover messages, select the messages, right-click on the selection and select &#039;&#039;&#039;Create Combined Fragment&#039;&#039;&#039; and then select a combined fragment type (e.g. loop) from the popup menu.[[image:create_combined_fragment_14702.png|500px|center|thumb|Create a combined fragment for messages]]&lt;br /&gt;
&lt;br /&gt;
A combined fragment of the selected type will be created to cover the messages.[[image:loop_2178.png|500px|center|thumb|The combined fragment created]]&lt;br /&gt;
&lt;br /&gt;
== Exporting the diagram from the project ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;mwt-heading&amp;quot; &amp;gt;&amp;lt;span style=&amp;quot;font-size: 12pt;&amp;quot; &amp;gt;&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot; &amp;gt;&#039;&#039;&#039;[ATTENTION]&#039;&#039;&#039;&amp;lt;/span&amp;gt; I recommend exporting the diagrams in PDF format, as PDF diagrams are vectors and therefore scalable.&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
=== Exporting the diagram as a PDF file (&amp;lt;span style=&amp;quot;color: rgb(224, 62, 45);&amp;quot;&amp;gt;Recommended&amp;lt;/span&amp;gt;) ===&lt;br /&gt;
You can export the opening diagram to an image file by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Export -&amp;amp;gt; Active Diagram as Image...&#039;&#039;&#039; from the toolbar.&lt;br /&gt;
#Select the image format as &#039;&#039;&#039;PDF files (*.pdf vector graphic)&#039;&#039;&#039; at the bottom of the window.[[File:Save as pdf.png|500px|center|thumb|Export the diagram as a PDF file]]&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &amp;lt;strong style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;Save &amp;lt;/strong&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;to export.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exporting the diagram as an image ===&lt;br /&gt;
You can export the opening diagram to an image file by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Export -&amp;amp;gt; Active Diagram as Image...&#039;&#039;&#039; from the toolbar.&lt;br /&gt;
#In the &#039;&#039;&#039;Save&#039;&#039;&#039; window, set the image quality. The higher the quality, the clearer the image, and the larger the image size.[[File:Set image quality 21084.png|300px|center|thumb|Set the image quality]]&lt;br /&gt;
#Select the image format at the bottom of the window.&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &amp;lt;strong style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;Save &amp;lt;/strong&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;to export.&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;font-size: 14.4px;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;NOTE: There are two options for exporting as PNG files - with and without background:&lt;br /&gt;
- With background: export diagram&#039;s background colour. &lt;br /&gt;
- Without background: ignore the background colour by exporting transparent background.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Switching the different diagrams in the current project ==&lt;br /&gt;
You can easily switch the different diagrams in the current project by pressing &#039;&#039;&#039;ctrl + tab&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Saving the current project ==&lt;br /&gt;
You can save your current project by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Save &#039;&#039;&#039;from the toolbar.&lt;br /&gt;
#Specify the filename.&lt;br /&gt;
#Click &#039;&#039;&#039;Save &#039;&#039;&#039;to save the project.&lt;br /&gt;
&lt;br /&gt;
== Importing / Opening your project ==&lt;br /&gt;
You can import / Open your current project by doing the following:&lt;br /&gt;
#Select &#039;&#039;&#039;Project -&amp;amp;gt; Open &#039;&#039;&#039;from the toolbar.&lt;br /&gt;
#Choose the project you want to import/open.&lt;br /&gt;
#Click &#039;&#039;&#039;Open &#039;&#039;&#039;to import/open the project.&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|2]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=391</id>
		<title>Install and Setup JavaSDK and Cucumber (Windows)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows)&amp;diff=391"/>
		<updated>2024-01-05T16:39:29Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Windows &#039;&#039;&#039;operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS) MacOS]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Download and Install JavaSDK =&lt;br /&gt;
== Download JavaSDK ==&lt;br /&gt;
Go to the [https://www.oracle.com/java/technologies/downloads/ JavaSDK Download Page]. Based on your OS, download the following file (Java 21 recommended):&lt;br /&gt;
&lt;br /&gt;
Windows: x64 Installer&lt;br /&gt;
&lt;br /&gt;
== Install JavaSDK ==&lt;br /&gt;
Double-click the file you downloaded, you should see the following interface[[File:01.png|500px|center|thumb|Java(TM) Installing Program]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;NEXT&#039;&#039;&#039;, and choose where you want to install it. Then you wait for it to finish installing and click &#039;&#039;&#039;CLOSE&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Verify JavaSDK (Optional) ==&lt;br /&gt;
You should now find your JavaSDK installation directory e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt; and copy that path.[[File:10.png|800px|center|thumb|JavaSDK Installation directory]]&lt;br /&gt;
&lt;br /&gt;
Now you should modify environment variables on Windows.&lt;br /&gt;
#On the Windows taskbar, &#039;&#039;&#039;right-click&#039;&#039;&#039; the &#039;&#039;&#039;Windows&#039;&#039;&#039; &#039;&#039;&#039;icon&#039;&#039;&#039; and select &#039;&#039;&#039;System&#039;&#039;&#039;.&lt;br /&gt;
#In the &#039;&#039;&#039;Settings&#039;&#039;&#039; window, under &#039;&#039;&#039;Related links&#039;&#039;&#039;, click &#039;&#039;&#039;Advanced system settings&#039;&#039;&#039;.&lt;br /&gt;
#On the &#039;&#039;&#039;&amp;lt;span class=&amp;quot;uicontrol bold&amp;quot;&amp;gt;Advanced&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;tab, click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Environment Variables&amp;lt;/span&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
#Choose &#039;&#039;&#039;Path&#039;&#039;&#039; under the &#039;&#039;&#039;system variables&#039;&#039;&#039; and then Click &#039;&#039;&#039;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;Edit&amp;lt;/span&amp;gt;&amp;amp;nbsp;&#039;&#039;&#039;to modify that environment variable.&lt;br /&gt;
#Click &#039;&#039;&#039;New&#039;&#039;&#039; and &#039;&#039;&#039;Paste&#039;&#039;&#039; that address (e.g. &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;C:\Program Files\Java\jdk-21\bin&amp;lt;/code&amp;gt;) on the textbox&lt;br /&gt;
#&#039;&#039;&#039;Move up&#039;&#039;&#039; that textbox to the &#039;&#039;&#039;top&#039;&#039;&#039; of the list.&lt;br /&gt;
#Click &#039;&#039;&#039;OK&#039;&#039;&#039; and then &#039;&#039;&#039;Apply&#039;&#039;&#039; to have the change take effect.&lt;br /&gt;
&lt;br /&gt;
[[File:11.png|500px|center|thumb|Environment Variables Dialog in Windows]]&lt;br /&gt;
&lt;br /&gt;
You can now verify your JavaSDK using the terminal command &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java --version&amp;lt;/code&amp;gt;. You should see the following content:[[File:02.png|1000px|center|thumb|Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/#section=windows IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:03.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;File -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:04.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:12.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:08.png|700px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:15.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:09.png|700px|center|thumb|Run the project in IntelliJ]] Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:14.png|700px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=390</id>
		<title>Install and Setup JavaSDK and Cucumber (MacOS)</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(MacOS)&amp;diff=390"/>
		<updated>2024-01-05T16:39:10Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This tutorial applies to the &#039;&#039;&#039;Mac&#039;&#039;&#039; operating system, you can also check &#039;&#039;&#039;[https://kkmstudio.familyds.com/mediawiki/index.php?title=Install_and_Setup_JavaSDK_and_Cucumber_(Windows) Windows]&#039;&#039;&#039; tutorial.&amp;lt;br&amp;gt;&lt;br /&gt;
*This tutorial is based on this file (Programming Exercises Course 02161 Week 1 written by Hubert Baumeister in January 2022) to make additions and changes.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;br /&gt;
= Install Homebrew =&lt;br /&gt;
&lt;br /&gt;
Go to the [https://brew.sh/ Homebrew Installation Page]. Copy the following code to your terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terminal will ask you to provide your password. Enter your password and then press the &#039;&#039;&#039;RETURN/ENTER&#039;&#039;&#039; to continue.[[File:Mac01.png|500px|center|thumb|Homebrew Installation]]&amp;lt;p&amp;gt;Once the installation is done, you can check if you have installed the Homebrew successfully by writing &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew --version&amp;lt;/code&amp;gt;in the terminal. It should show the following message:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Mac02.png|500px|center|thumb|Verify Homebrew]]&lt;br /&gt;
&lt;br /&gt;
= Install and Verify JavaSDK =&lt;br /&gt;
Open your terminal and write the following code: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;brew install java&amp;lt;/code&amp;gt;. The Homebrew should then do all things for you.&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;p&amp;gt;Then check your installation by running &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:mac03.png|500x300px|center|thumb|Install and Verify JavaSDK]]&lt;br /&gt;
&lt;br /&gt;
If this is not the case, you also need to create a symlink for the system Java wrappers to find this JDK: &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk \ /Library/Java/JavaVirtualMachines/openjdk.jdk&amp;lt;/code&amp;gt;. After that, try to verify the Java SDK again in your terminal.&lt;br /&gt;
&lt;br /&gt;
= Download and Install IDE (Eclipse or IntelliJ) =&lt;br /&gt;
The course will use Eclipse in its teaching material but all the things we do in the course can be done in IntelliJ too. You can download the latest version of [https://www.eclipse.org/downloads/ Eclipse] and [https://www.jetbrains.com/idea/download/?section=mac IntelliJ (Community Edition)] here. After that, you can follow the instructions of the installation wizard to install the IDE.&lt;br /&gt;
&lt;br /&gt;
= Download and Install the Cucumber plugin =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
From the Eclipse &#039;&#039;&#039;marketplace&#039;&#039;&#039; (from &#039;&#039;&#039;inside the Help menu&#039;&#039;&#039; of Eclipse), download the &amp;quot;Cucumber&amp;quot; plugin.[[File:Mac04.png|500px|center|thumb|Install Cucumber (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
IntelliJ already comes with a Cucumber plugin. But I recommend you also download a plugin called &#039;&#039;&#039;Cucumber for Java&#039;&#039;&#039; since it can add support for Cucumber testing tools with step definitions written. You can download that from &#039;&#039;&#039;IntelliJ IDEA -&amp;amp;gt; Settings -&amp;amp;gt; plugins&#039;&#039;&#039;.&amp;amp;nbsp;[[File:Mac09.png|500px|center|thumb|Install Cucumber (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
== Restart your IDE ==&lt;br /&gt;
After you install the Cucumber plugin, you need to restart your IDE (Your IDE will also notify you to do that).&lt;br /&gt;
&lt;br /&gt;
= Download and Import the project &amp;quot;libaray01&amp;quot; to your IDE =&lt;br /&gt;
You can download the zip file [https://www2.imm.dtu.dk/courses/02161/2021/files/library01.zip library01.zip] here. And then you should unpack the zip file first.&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
You can now import the project into Eclipse by clicking &#039;&#039;&#039;File -&amp;amp;gt; Import -&amp;amp;gt; General -&amp;amp;gt; Projects from Folder or Archive&#039;&#039;&#039;. And then you click the &#039;&#039;&#039;Directory&#039;&#039;&#039; and &#039;&#039;&#039;choose&#039;&#039;&#039; the file you unpacked from the zip file. Then you &#039;&#039;&#039;mark&#039;&#039;&#039; that project library01 and click &#039;&#039;&#039;Finish&#039;&#039;&#039;.[[File:Mac05.png|500px|center|thumb|Import project (Eclipse)]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
You can now import the project into IntelliJ by clicking &#039;&#039;&#039;Open&#039;&#039;&#039; and &#039;&#039;&#039;Choosing&#039;&#039;&#039; the file &#039;&#039;&#039;pom.xml&#039;&#039;&#039; you unpacked from the zip file. Then &#039;&#039;&#039;click&#039;&#039;&#039; &#039;&#039;&#039;OK&#039;&#039;&#039; and &#039;&#039;&#039;Open as Project&#039;&#039;&#039;.[[File:Mac08.png|500px|center|thumb|Import project (IntelliJ)]]&lt;br /&gt;
&lt;br /&gt;
= Run the project in your IDE =&lt;br /&gt;
== Eclipse ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library.acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run as -&amp;amp;gt; JUnit Test&#039;&#039;&#039;. You will see the following content:[[File:Mac06.png|500px|center|thumb|Run the project in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
Although the program fails the test (as it should), it proves that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac07.png|500px|center|thumb|Successfully passed the first scenario test in Eclipse]]&lt;br /&gt;
&lt;br /&gt;
== IntelliJ ==&lt;br /&gt;
Find the file &#039;&#039;&#039;AcceptanceTest.java&#039;&#039;&#039; under the &amp;lt;code class=&amp;quot;mwt-code&amp;quot;&amp;gt;src/test/java/dtu.library/acceptance_tests&amp;lt;/code&amp;gt; and then &#039;&#039;&#039;right-click -&amp;amp;gt; Run &#039;AcceptanceTest&#039;&#039;&#039;&#039;. You will see the following content:[[File:Mac10.png|500px|center|thumb|Run the project in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
Although IntelliJ shows &amp;quot;build failed&amp;quot; at first, you can assume that you can already run the cucumber plugin. You can now begin to implement the production code such that the scenarios &amp;quot;Admin login&amp;quot;, &amp;quot;Admin logout&amp;quot;, &amp;quot;Add book&amp;quot;, and &amp;quot;Search book&amp;quot; pass. After implementing the first scenario on &amp;quot;Admin login&amp;quot;, you should see the following:[[File:Mac11.png|500px|center|thumb|Successfully passed the first scenario test in IntelliJ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Course 02161 Software Engineering 1|1]]&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=389</id>
		<title>Category:Course 02161 Software Engineering 1</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=389"/>
		<updated>2024-01-05T16:38:40Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This category includes the guides for the course 02161 Software Engineering 1 at DTU.&lt;br /&gt;
*The content on this page &#039;&#039;&#039;should not &#039;&#039;&#039;be regarded as official material under any circumstances. If there is any discrepancy between the content on this page and the official course materials, please refer to the official course materials.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the &#039;&#039;&#039;user icon&#039;&#039;&#039; at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=388</id>
		<title>Category:Course 02161 Software Engineering 1</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=388"/>
		<updated>2024-01-05T16:38:13Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This category includes the guides for the course 02161 Software Engineering 1 at DTU.&lt;br /&gt;
*The content on this page &#039;&#039;&#039;should not &#039;&#039;&#039;be regarded as official material under any circumstances. If there is any discrepancy between the content on this page and the official course materials, please refer to the official course materials.&lt;br /&gt;
*The Wiki now supports &#039;&#039;&#039;dark mode&#039;&#039;&#039;. You can switch to it under the user icon at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=387</id>
		<title>Category:Course 02161 Software Engineering 1</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.kkmstudio.dk/index.php?title=Category:Course_02161_Software_Engineering_1&amp;diff=387"/>
		<updated>2024-01-05T16:38:01Z</updated>

		<summary type="html">&lt;p&gt;SUIFENGSK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;READ ME FIRST&#039;&#039;&#039;&lt;br /&gt;
*This category includes the guides for the course 02161 Software Engineering 1 at DTU.&lt;br /&gt;
*The content on this page &#039;&#039;&#039;should not &#039;&#039;&#039;be regarded as official material under any circumstances. If there is any discrepancy between the content on this page and the official course materials, please refer to the official course materials.&lt;br /&gt;
*The Wiki now supports dark mode. You can switch to it under the user icon at the top right of the website.&lt;br /&gt;
*Contact Shuokai Ma ([mailto:s214919@student.dtu.dk s214919@student.dtu.dk]) if you find a problem or have suggestions for this Wiki.&lt;/div&gt;</summary>
		<author><name>SUIFENGSK</name></author>
	</entry>
</feed>