Here are the GMSEC Windows Installation instructions.
1. Download GMSEC API and upzip the folder
2. Download JDK version 1.5 from http://java.sun.com/j2se/1.5.0/download.jsp website *
3. Click on the start button and right click on My Computer
4. Click on properties -- Advanced -- Environment Variables
5. Under System Variables highlight path and click edit
6. After the last path entry put a semi-colon and then the address to your Java JDK and the GMSEC API jar file. Should look something like this: ;C:_location_\jdk1.5.0_04\bin;C:_location_\GMSEC\GMSEC_API_v1.2.1\bin\win\Release;
7. Now you need to create a classpath in the System Variables by clicking new and entering classpath under variable name and then follow step 8 to enter in the location to the necessary file.
8. First set the classpath to point to the location of the gmsecapi.jar file and you need a period to set the classpath for the JDK copy and paste this: .;c:_location_\GMSEC_RELEASE\bin\gmsecapi.jar
9. Now you need to test that the path and classpath are properly set
10. Open a command shell (Start -- All programs -- Accessories -- Command Prompt)
11. cd to the location of the GMSEC API
12. cd to GMSEC_RELEASE\examples\java
13. There is one java file which will not compile you need to change this file to a different name
14. type: move gmreq_cb.java gmreq_cb_0
15. Now you will compile all of the java files by typing: javac *.java
16. Type: dir If you have correctly compiled all Java files you should see .class files for all of the .java files in the directory
17. Open a new command shell cd to c:_location_\GMSEC\GMSEC_RELEASE\bin\win\Release
18. Then type: MBServer (this will start the middleware)
19. Open a new command shell cd to c:_location_\GMSEC\GMSEC_RELEASE\examples\java
20. Then type: java gmsub connectionType=gmsec_mb
21. Open a new command shell cd to c:_location_\GMSEC\GMSEC_RELEASE\examples\java
22. Then type: java gmpub connectionType gmsec_mb
23. If the message sending is successful you should see the message pass from the gmpub command prompt to the gmsub command prompt
24. If you would like to send a message to another computer you will need to include the Server location for step 24 (ie: java gmpub connectionType=gmsec_mb Server=Subscriber Computer IP Address)
[GmsecDocuments] - click here to return to GMSEC Documents page