Home > Software design >  Running an Erlang Application in Eclipse is throwing an exception
Running an Erlang Application in Eclipse is throwing an exception

Time:10-08

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.

  1. Installed Eclipse and Erlide plugin
  2. Installed Erlang OTP 25.0 from Erlang RunConfig Exception

    ErlangInstalledRuntime.png
    Erlang Installed Runtime Setting

    RunConfig-ErlangApp-Environment.png
    RunConfig-ErlangApp-Environment

    RunConfig-ErlangApp-Runtime.png
    RunConfig-ErlangApp-Runtime

    werl output
    werl output

    RunConfig-ErlangApp-Erlang.png
    RunConfig-ErlangApp-Erlang

    Project structure
    Project Structure

    Eclipse Launching Error
    Eclipse Launching Error

    CodePudding user response:

    Unfortunately, Erlang 25 doesn't load beam files older than v21, and the files included in erlide are that old. I am not really maintaining the project anymore, I can try to rebuild with v25, but can make no promises. Even then, the debugger will no longer work, it can be good to note.

    CodePudding user response:

    The reported issue is seen with the latest Erlang version 25.0 and the older versions I have checked till 23.0. As a workaround, I have migrated to IntelliJ IDE.

  • Related