Error running 'server [compile]'

Having issues? Ask here!
Forum rules
- Search for existing answers before creating a new topic
- Topic titles must be descriptive and searchable
- Duplicate questions will be redirected to the existing answer(s) and locked.
Post Reply
User avatar
ann
Noob
Posts: 11
Joined: Sat Feb 10, 2024 3:12 pm
Has thanked: 10 times
Been thanked: 5 times

Error running 'server [compile]'

Post by ann »

I am having trouble after following the guide on setting up IntelliJ
You can see I am using JRE 11

I also tried manually adding C:\Program Files\Eclipse Adoptium\jdk-11.0.22.7-hotspot but it doesn't work

Image
User avatar
Ceikry
Site Admin
Posts: 587
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 82 times
Been thanked: 105 times

Re: Error running 'server [compile]'

Post by Ceikry »

Maven requires the JDK, not the JRE. The JDK is the "full" java with everything you need for development, JRE only has what you need to run built java programs.
Nerds
User avatar
ann
Noob
Posts: 11
Joined: Sat Feb 10, 2024 3:12 pm
Has thanked: 10 times
Been thanked: 5 times

Re: Error running 'server [compile]'

Post by ann »

Thanks, I got it to compile!
I had to go to project structure, not settings

Image
Post Reply