image
 
 

Cloud Compiler Installation

Welcome to our version of ObjectRiver's Cloud Compiler for WebSockets. Our first release is used with Intellij's IDE. We have shipped a variety examples to demonstrate different features. These examples are shipped with working Intellij project configurations. Follow the steps below, and we will get you started.

Step 1: Open Hello Example Open the Hello example located in objectriver/test/webrpc/hello directory with intellij.

Step 2: Install Cloud Compiler Plugin Install the CloudCompiler Intellij plugin.
Open dialog file->settings and click plugins.
Click button (Install plugin from disk...) Select plugin from objectriver/or/sdk/CloudCompilerPlugin.zip

Step3: Check if JDK is correct. Since this project was built on our integration machine we need check the JDK configuration. Open dialog file->Project Structure. Click Project on the top left. If Project JDK is red, or not set to JDK version 7, you need to change the setting. HTML/WebSockets requires JDK7.

Step4: Enter username and password. From the run menu, located in the center of the Intellij toolbar, select "Edit Configuations". Select CloudCompilerClient. Change the username and password to your username and password from the ObjectRiver forum.

Step5: Change working directory. Since we configured this project in C:/objectriver/testing/webrpc/hello your working directory may be different. Change working dir if needed
Press OK to save changes.

Step6: Run Cloud Compiler to generate WebSocket code. From the run menu, located in the center of the Intellij toolbar, select CloudCompilerClient and press the run button. You should see output in the console showing the a list of files be created.

Step7: Run HelloServer. The examples use Tyrus which is the reference implementation of WebSockets so no WebServer is needed for development. Select HelloServer from the run menu and press the run button.

Step8: Run HelloMain. Select HelloMain from the run menu and press the run button.

Step9: What just happened. You just ran your first Client/Server WebSocket application. The Cloud Compiler uses an interface definition that describes the interface, in this case the hello world application. If you open this definition located in hello/model/hello.webrpc you will see the definition of the procedure hello(). Please see our documentation which explains the hello example in detail.






 
 
image