diff --git a/README.md b/README.md index 4bc5a2a..e2607d3 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Starter project configuration for the course [COMP 303: Software Design](https:/ This repository is configured to be seamlessly imported into the latest version of the [Eclipse IDE](https://www.eclipse.org/). However, if you know what you are doing, you can import the project into the IDE of your choice and find the corresponding tools. -To set yourself up: +To set yourself up ([for intellij, click here](https://github.com/0jas0jas/COMP303Starter/blob/master/intellij%20tutorial.md)): 1. Make sure you have [Eclipse for Java](https://www.eclipse.org/) (or your favorite Java IDE) and [Java 17 or higher](https://jdk.java.net/). 2. Install JavaFX and create a library for it in Eclipse by following [these instructions](https://openjfx.io/openjfx-docs/#IDE-Eclipse) diff --git a/intellij tutorial.md b/intellij tutorial.md new file mode 100644 index 0000000..71472e2 --- /dev/null +++ b/intellij tutorial.md @@ -0,0 +1,24 @@ +## Setting up starter code on Intellij: + +1. Go to File > New > Project from version control +2. You will notice that no program files are actually in your `Project` library. +3. Go to File > Project Structure +4. Find `Modules` in the left panel +5. Click on `COMP 303` > Select `comp303` > Right-click and check `Sources` + +6. You should now see `src` directory now. But if you try running `Welcome` by right-clicking and selecting "Run Welcome", it might show you an error like this: + +```java +/home/ojas/IdeaProjects/COMP303Starter/src/module-info.java:7:20 +java: module not found: javafx.base +``` + +Here's how to fix it: + +7. Go back to File > Project Structure +8. Go to `Project` and in SDK choose `liberica-full-23` +9. Then go to `Libraries` in Project Structure +10. Click on the little "+" icon and select Maven +11. In the textbox type in javafx and scroll down to find `org.openjfx:javafx-base:22-ea+16` +12. Install this and do the same for `openjfx.javafx.controls12` and `junit:junit:4.13.2` +13. That's it! It should work now.