3

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.

1
  • If you trying to solve such issue in NetBeans use this. Method 1 from third section. It worked for me. UPD: this message is for users, who will find this post one of first. Dec 8, 2018 at 1:53

1 Answer 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.