javaeclipsempilinux-mintmpj-express

Set up MPJ Express in eclipse


I keep obtaining the same identical error as here. I'm running eclipse under linux mint 17.3.

I've tried to add to MPJ_HOME to system variables writing this command on the terminal: export MPJ_HOME=/path/to/mpj/ (giving the real path to the folder of mpj) but the when I compile eclipse keep telling me:

[MPJRun.java]:[MPJRun.java]:MPJ_HOME environment found..
java.lang.Exception: [MPJRun.java]:MPJ_HOME environment found..
    at runtime.starter.MPJRun.<init>(MPJRun.java:155)
    at runtime.starter.MPJRun.main(MPJRun.java:1238)

How can I solve? I've already defined MPJ_HOME in Eclipse.


Solution

  • Finally I find out where the problem was!

    I already have inserted in RunConfiguration>Tab "Arguments">Button "Variables...">Edit Variable>New Variable the correct values:

    Name: MPJ_HOME
    Value: /path/to/mpj
    Description: [What you want]
    

    and in RunConfiguration>Tab "Arguments">TextField "VM Arguments" this value: -jar ${MPJ_HOME}/lib/starter.jar -np 4

    After that I missed to do so: RunConfiguration>Tab "Environment">New... and insert the following values:

    Name: MPJ_HOME
    Value: ${MPJ_HOME}
    

    With this configuration everything is working.

    I know that this is a real stupid problem but I hope that this answer could help someone.