Developing an Application Using the JET IDE
Application developers can use the integrated development environment (IDE) provided with the Juniper Extension Toolkit (JET) virtual machine (VM) to develop applications.
To develop an application by using the JET IDE:
- Start the JET IDE and select Juniper Extension Toolkit > JET Project.
- Type in a project name, select an item from the Applications
List, and click Finish.
The new project name appears in the Sandbox Explorer window (top left pane). You can expand the new project name and see several directories, including the src directory. Expand the src directory to see several more directories, among them the python, lib, and bin directories. These are the directories you use to create new application components.
- Highlight the appropriate directory for your applications
files (choose from among the python, lib, and bin directories), either select File > New > Folder or right-click and select New > Folder, type a folder
name, and click Finish.
To develop applications in Python, create a new
applicationdirectory in the python directory and develop the application inside the newly created directory.
To create a C/C++ library, create a new
librarydirectory in the lib directory and develop the library inside the newly created directory.
To create a C/C++ executable, create a new
applicationdirectory in the bin directory and develop the application inside the newly created directory.
For example, for a C/C++ application, you can put some libraries in the lib directory and other application components in the bin directory.
- Generate and import client library code Starting in Junos OS Release 16.2R1, you must generate
and import the client library code rather than downloading pre-packaged
Using the IDL files from the client IDL library for the services you are working in, generate client library code following the instructions at http://www.grpc.io/docs. Import the generated code into your sandbox using either the Import option from the File menu, or by copying the generated files and pasting them into your sandbox.
- Create files for your application code.
Highlight the appropriate subdirectory, either select File > New > File or right-click and select New > File, type a filename, and click Finish.
- Create the code in the application files and do one of the following to save: select File > Save, press Ctrl+s, or click the diskette icon.
Makefiles and the manifest file are created automatically once you have created the JSON file.