Starting the Monnit MINE Java Sample Application GUI
Getting Started With the Monnit MINE Java Sample Application GUI
Monnit MINE is a standalone server which allows you to integrate with Monnit gateways and sensors with third party platforms. As Monnit devices operate with a proprietary protocol, Monnit MINE is required to directly integrate with the Monnit system. MINE is a “middleware” server that accepts the communication from Monnit hardware and allows you to integrate with other platforms. MINE is offered in a .NET and Java library. This article will provide steps on starting the MINE server Java Sample Application GUI so you can start testing using the MINE Java library.
Information on getting started with the MINE Java library can be found at the following link: http://mine.imonnit.com/Java/v3.0.0/GettingStarted_3.0.0.pdf.
Summary of steps
- Visit the site http://mine.imonnit.com and download the most recent version of the MINE Java library
- Unzip the Monnit_Mine_Java_x.x.x.x folder
- Navigate to the JavaMineLibraryMineGUIdist folder and confirm you see the MineGUI.jar file
- Launch the Command prompt as an Administrator (search Command in Windows Search, right click the Command Prompt, and select Run as Administrator)
Execute the following command to change to the appropriate directory (be sure to replace [FOLDER LOCATION] with the directory where your MINE folder is saved)
cd C:[FOLDER LOCATION]Monnit_Mine_Java_x.x.x.xJavaMineLibraryMineGUIdist
After you have navigated to the applicable folder location in the Command Prompt, execute the following command:
java -jar MineGUI.jar
The JAVA MINE Sample Application GUI should appear, and you can start testing.
Creating a .bat file to launch the GUI
Additionally, you can create a .bat file to automatically launch the Java MINE Sample Application GUI. If you create a .txt file in the C:[FOLDER LOCATION]Monnit_Mine_Java_x.x.x.xJavaMineLibraryMineGUIdist directory, and enter the text below, and save with the file extension .bat, you can launch the MINE GUI from the .bat file.
java -jar MineGUI.jar
Getting started with a gateway and sensor
Once the GUI is running, set 0.0.0.0 for the IP Address. This will apply the localhost address to the server (accept communication on all incoming IP addresses). Choose the type of protocol you would like to use, and the port number (default TCPAndUDP Port 3000 is recommended). Once you have the configurations, click Start Listening. You will want to make sure to add an exception to any existing firewalls, so that the port that you choose is available. You can then add your gateway ID, and point it to your server as per Unlocking and Pointing a gateway to a custom host or IP address (Enterprise/Express/MINE). You can then add your sensor, power it on, and you should get communication from the devices.