|
1 year ago | |
---|---|---|
.. | ||
CHANGELOG.md | 1 year ago | |
CONTRIBUTING.md | 1 year ago | |
LICENSE.md | 1 year ago | |
README.md | 1 year ago |
page_type: sample languages:
This sample application demonstrates a very basic MIP SDK Java wrapper sample. It'll demonstrate how to create the project, add dependencies, and get to a place where the app can run on both Windows and Ubuntu.
This project framework provides the following features:
Windows
Ubuntu
sudo apt-get install default-jdk
sudo apt-get install maven
sudo apt-get install scons libgsf-1-dev libssl-dev libsecret-1-dev freeglut3-dev libcpprest-dev libcurl3-dev uuid-dev libboost-all-dev
<PATH TO MAVEN>\mvn.cmd org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=<PATH TO MIP SDK>\java-sdk-wrapper.jar
mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=java-sdk-wrapper.jar
Note: Not using a fully qualified path for the -Dfile parameter may cause an exception. Use a full path.
The Java wrapper download contains two folders: file_sdk and java_wrapper.
Update the ApplicationId on line 22 in App.java to match your application registration in Azure AD.
Open the project folder in VS Code and load the project when prompted.
Update the following block in App.java to include your clientId.
appInfo.setApplicationId("YOUR CLIENT ID");
appInfo.setApplicationName("MIP SDK Java Sample");
appInfo.setApplicationVersion("1.14");
At this point, you should be able to build the project. If your app states that dependencies are missing:
Maven: Add a dependency...
Maven: Add a dependency...