GT 4.0 Implementation in Progtutorial MATH Example

xiaoxiao2021-04-07  364

After the GT 4.0 is installed, the example, reflect the characteristics of the grid, as a introduction of the textbook, can refer to ProgTutorial, this document is very clear, and there is an example, let everyone do not learn to program, Preliminary experience grid. For the main functions of the grid, as well as the working principle of each document, you can see the documentation. Here mainly introduces the installation of this software.

1. First, ensure that the GT4 is installed normally, and the example can be on the Internet. You must also download python for windows.

2, install Python, any installation position.

3, unzip the example, to any directory, it is recommended to decompress the D: / Example, this directory will also be used.

4, build the GAR file.

Enter the D: / EXAMPLE directory, enter Globus-build-Service.py First. If the operation is smooth, it will be generated in an Example directory.

GAR file.

5, deploy the GAR file, under the root directory:

D: / Globus-Deploy-Gar D: /example/org_globus_examples_services_core_first.gar

6. Enter globus_location / etc, enter Globus-develop env.bat, here is the JAR file path under the LIB of GT4 to enter. You can view the environment variables before and after input, command to set classpath, which will include all JAR files under the GT4 LIB folder.

7. After running is normal, you need to compile the client.java file.

Enter an Example Contents, Javac Org / Globus / Examples / Clients / MathService_Instance / Client.java Compile Customer

Diffier program.

8, start the Globus service.

Globus-start-container -nosec. At this time, if the Tomcat is running, a port conflict will occur, the report port is occupied, and the Tomcat can be resolved.

9. Run the client in an example directory, java org.globus.examples.clients.mathService_instance.client

http://127.0.0.1:8080/wsrf/services/examples/core/first/mathservice

The above two lines should be connected together, do not separate, there is a space in the middle. If it is normal, the result will appear:

Current Value: 15

Current Value: 10

At this time, if you can't find a class file, you may be a ClassPath problem, you can check the settings of step 6 successfully.

The above is the installation process of this example, which is slightly complicated, and the method used after the installation is successful, the start service (step 8), reopen the window, add environment variable (step 6), start the client (step 9). There will be various problems in the process of using this example, it may be difficult to succeed once, everyone is patient and debugging.

转载请注明原文地址:https://www.9cbs.com/read-132481.html

New Post(0)