diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a4027d --- /dev/null +++ b/README.md @@ -0,0 +1,122 @@ +# How to setup HSA module in IntelliJ + +**Kuba Szatan** + +--- + +## Step 1. + +Download the ***hsacompiled.jar*** file [here](https://drive.google.com/file/d/1xO1sHzfKHjaQSocTkIUihtzhVre-jzr-/view?usp=sharing). + +## Step 2. + +Create your IntelliJ project: + +![Step 2](images/step-02.png) + +## Step 3. + +Enter project details and click **Create** + +![Step 3](images/step-03.png) + +## Step 4. + +Paste the downloaded ***hsacompiled.jar*** into your project root (project location) + +![Step 4](images/step-04.png) + +## Step 5. + +Press the 4 vertical lines in the top left, click **File -> Project Structure** + +![Step 5a](images/step-05a.png) + +![Step 5b](images/step-05b.png) + +## Step 6. + +Click Libraries + +![Step 6](images/step-06.png) + +## Step 7. + +Click **+** and **Java** + +![Step 7](images/step-07.png) + +## Step 8. + +Select **hsacompiled.jar** and click **Select Folder** + +![Step 8](images/step-08.png) + +## Step 9. + +Click **OK** + +![Step 9](images/step-09.png) + +## Step 10. + +Click **Modules** + +![Step 10](images/step-10.png) + +## Step 11. + +Check **hsacompiled** + +![Step 11](images/step-11.png) + +## Step 12. + +Click **Apply** and **OK** + +![Step 12](images/step-12.png) + +## Step 13. + +To test if everything works, go back to your Main class, and add basic hsa code: + +```java +import hsa.Console; + +public class Main { + + Console c; + + Main() { + + c = new Console(); + + } + + public void display() { + + c.println("Hello world"); + + } + + + public static void main(String[] args) { + + Main mine = new Main(); + + mine.display(); + + } + +} +``` + +![Step 13](images/step-13.png) + +## Step 14. (Final step) + +Press run, and you should get the following result: + +![Step 14a](images/step-14a.png) + +![Step 14b](images/step-14b.png) diff --git a/images/step-02.png b/images/step-02.png new file mode 100644 index 0000000..42ec973 Binary files /dev/null and b/images/step-02.png differ diff --git a/images/step-03.png b/images/step-03.png new file mode 100644 index 0000000..1e8f633 Binary files /dev/null and b/images/step-03.png differ diff --git a/images/step-04.png b/images/step-04.png new file mode 100644 index 0000000..5d60ad9 Binary files /dev/null and b/images/step-04.png differ diff --git a/images/step-05a.png b/images/step-05a.png new file mode 100644 index 0000000..916a76c Binary files /dev/null and b/images/step-05a.png differ diff --git a/images/step-05b.png b/images/step-05b.png new file mode 100644 index 0000000..32dbf62 Binary files /dev/null and b/images/step-05b.png differ diff --git a/images/step-06.png b/images/step-06.png new file mode 100644 index 0000000..b1325be Binary files /dev/null and b/images/step-06.png differ diff --git a/images/step-07.png b/images/step-07.png new file mode 100644 index 0000000..bf70df7 Binary files /dev/null and b/images/step-07.png differ diff --git a/images/step-08.png b/images/step-08.png new file mode 100644 index 0000000..0a234e5 Binary files /dev/null and b/images/step-08.png differ diff --git a/images/step-09.png b/images/step-09.png new file mode 100644 index 0000000..f2e89f8 Binary files /dev/null and b/images/step-09.png differ diff --git a/images/step-10.png b/images/step-10.png new file mode 100644 index 0000000..5b0b29b Binary files /dev/null and b/images/step-10.png differ diff --git a/images/step-11.png b/images/step-11.png new file mode 100644 index 0000000..ce8dc3c Binary files /dev/null and b/images/step-11.png differ diff --git a/images/step-12.png b/images/step-12.png new file mode 100644 index 0000000..c1cf504 Binary files /dev/null and b/images/step-12.png differ diff --git a/images/step-13.png b/images/step-13.png new file mode 100644 index 0000000..5db07e5 Binary files /dev/null and b/images/step-13.png differ diff --git a/images/step-14a.png b/images/step-14a.png new file mode 100644 index 0000000..6962e17 Binary files /dev/null and b/images/step-14a.png differ diff --git a/images/step-14b.png b/images/step-14b.png new file mode 100644 index 0000000..ab82923 Binary files /dev/null and b/images/step-14b.png differ