I have installed Erlang OTP 25.0, erlide 0.56.0, Eclipse 2022-09 & Java 18. I have created a new Erlang project and module. I am facing 2 issues.
Issue #1: Getting an error when I tried to launch the Eclipse after creating the Erlang project.
Issue #2: When I tried to run the application, I am getting an exception "Launching App1 has encountered a problem. An internal error occurred during launching App1. Expected the service OtpNodeProxy 5756dc@null FAILED to be running, but the service has FAILED" as shown in the screenshot ErlangRunConfigException. Please help me in resolving the issue.
I have followed the procedure given below.
- Installed Eclipse and Erlide plugin
- Installed Erlang OTP 25.0 from https://www.erlang.org/patches/otp-25.0
- Updated the environment PATH to refer to the Erlang installation path. I cross-checked this setting by typing "werl".
- In Eclipse, Erlang InstalledRuntimes is automatically updated with the Erlang version 25.0. Refer to the screenshot ErlangInstalledRuntime
- Created a Erlang project and module.
- Edited the Hello.erl with HelloWorld code.
- In Eclipse->RunConfguration, created an ErlangApplication (refer to the screenshot RunConfig-ErlangApp-Erlang). I set RunTime and Node name as shown in the screenshot RunConfig-ErlangApp-Runtime. Selected the Windows PATH as shown in the screenshot RunConfig-ErlangApp-Environment.
Hello.erl
```
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("hello, world\n").
```
Images:
ErlangRunConfigException.png
RunConfig-ErlangApp-Environment.png
RunConfig-ErlangApp-Runtime.png