WIN7 Building Java Parallel development environment MPJ Express (PART1)

Source: Internet
Author: User

Quickly build a Java parallel development environment in Winindows 7 MPJ Express and the various issues that may be encountered in the analysis (PART1)


MPJ Express is a thread-safe Java version of the parallel messaging library that provides a complete implementation of the Mpijava 1.2 API specification. MPJ Express implements two communication devices in the MPJ library, the first of which is called Niodev, based on the Java NIO package. The second kind is called Mxdev, based on the Myrinet Express Library.

Based on this message store, users can use Java as a programming language to develop parallel programs. Especially with the popularity of high-performance platforms, MPJ Express is bound to be more important and widely used in the face of big data mining or processing tasks, or parallel computing or programming tasks. Of course, since MPJ Express is still not very stable, the latest version is the versions 0.43 (updated on July 18. 2014), so the use will still encounter such or such problems, this article will lead you to build a parallel development environment based on MPJ Express, and for some of the problems may occur in a detailed analysis.


System Basic requirements: 1) JAVA (including JRE and JDK) for Windows 7;2), 3) Eclipse


First, download the MPJ Express Compression pack. URL http://mpj-express.org/download.php


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/17/wKiom1UhQb7DdQWWAAL70i5hDOQ982.jpg "title=" je_0. PNG "alt=" wkiom1uhqb7ddqwwaal70i5hdoq982.jpg "/>

Click the section in the Red box to enter the download page as shown in.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/17/wKiom1UhQrvibdfVAAOSwEAyZ0U085.jpg "title=" je_1. PNG "alt=" wkiom1uhqrvibdfvaaosweayz0u085.jpg "/>

Similarly, select the section in the Red box to start the download, unzip and wait after the download, such as.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/17/wKiom1UhQ8nTwFdOAAHEBu4_ovw221.jpg "title=" je_2. PNG "alt=" wkiom1uhq8ntwfdoaahebu4_ovw221.jpg "/>


Next, set the environment variables. Right-click My Computer (or computer) on the desktop, select Properties from the context menu, go to the interface shown, and select Advanced system settings (the section in the Red box) to enter the System Properties dialog box, select the Advanced tab, and then select environment variable (the section in the red box).

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/12/wKioL1UhRhLA7Vp1AAMTc3ecE3I222.jpg "title=" je_03. PNG "alt=" wkiol1uhrhla7vp1aamtc3ece3i222.jpg "/>

The next steps are very important, and many of the subsequent issues are related to this step. Suppose we save the extracted file under the path "D:\mpj-v0_43", then in the Environment Variables dialog box, create a new system variable mpj_home, the variable value is D:\mpj-v0_43.

Then increase the path search route, select path in the system variable, click the "Edit" button, append to the Variable Value section (as shown)

%mpj_home%\bin;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/12/wKioL1UhSNiyKjP9AAJbdnlDvxI179.jpg "title=" je_04. PNG "alt=" wkiol1uhsniykjp9aajbdnldvxi179.jpg "/>

Then we test whether the environment configuration is successful. Select Run from the Start menu, enter CMD in the Run dialog that pops up, and click OK, as shown in.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5D/13/wKioL1UhSlXiIqroAADnp9wGJmU052.jpg "style=" float: none; "title=" Je_05.png "alt=" Wkiol1uhslxiiqroaadnp9wgjmu052.jpg "/>


Enter Mpjrun at the console prompt, and if all is normal, get the result as shown below.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5D/17/wKiom1UhSR2j5rbrAAKTQ4yj5R4244.jpg "style=" float: none; "title=" Je_06.png "alt=" Wkiom1uhsr2j5rbraaktq4yj5r4244.jpg "/>


Continue testing, enter a command similar to the following to get the result as shown, then everything is OK.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/13/wKioL1UhSnTRBnFsAAFfleUIJfs037.jpg "style=" float: none; "title=" Je_07.png "alt=" Wkiol1uhsntrbnfsaaffleuijfs037.jpg "/>

If an exception is thrown in the operation, ignore it. However, if there are other conditions, then jump directly to (this series of) PART3 section, the author in the PART3 part of some of the common problems to deal with the method.


Not finished, to be continued ...

This article from "White Horse Negative Gold" blog, reproduced please contact the author!

WIN7 Building Java Parallel development environment MPJ Express (PART1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.