Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Error Running Application

I have created an application (which runs fine in Eclipse), but will not run within IntelliJ IDEA. Every time, it builds and then exits with the error: Error running Application: 'IntelliJ IDEA IU-163.9166.29' is not a valid JRE home.

Within IntelliJ I have an SDK set up: 1.8, pointing to /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home

like image 531
Joshua Crocker Avatar asked Dec 18 '16 21:12

Joshua Crocker


People also ask

How do I resolve an error in IntelliJ?

Apply fixes in the Problems tool window Click a problem to display inspection details on the right. icon on the toolbar or in the context menu. You can also press Alt+Enter and select a suitable fix from the popup menu.

How do I stop all running applications in IntelliJ?

You can run a process with ⌃R (macOS), or Shift+F10 (Windows/Linux). To stop a process, you can use ⌘F2 on macOS, or Ctrl+F2 on Windows/Linux.

How do I fix run configuration in IntelliJ?

Open the Run/Debug Configuration dialog in one of the following ways: Select Run | Edit Configurations from the main menu. With the Navigation bar visible (View | Appearance | Navigation Bar), choose Edit Configurations from the run/debug configuration selector. Press Alt+Shift+F10 and then press 0 .

How do I stop a running test in IntelliJ?

Stop tests Click. or press Ctrl+F2 to terminate the process immediately. Click. to terminate the process gracefully, allowing shutdown hooks to run.


1 Answers

After some messing around within the IDE, I have found out that, within the Run/Debug Configurations screen, there was a setting to set the JRE. This wasn't set to the correct value, so the program wasn't running. Upon changing it to the correct value, it worked.

like image 56
Joshua Crocker Avatar answered Sep 20 '22 20:09

Joshua Crocker