icon-arrow icon-check icon-mail icon-phone icon-facebook icon-linkedin icon-youtube icon-twitter icon-cheveron icon-download icon-instagram play close close icon-arrow-uturn icon-calendar icon-clock icon-search icon-chevron-process icon-skills icon-knowledge icon-kite icon-education icon-languages icon-tools icon-experience icon-coffee-cup
Werken bij Integration & Application Talents
Blog 02/03/2016

Oracle JET 2.0 released

Oracle release

Last monday Oracle released JET version 2.0. The most important news in my opinion is that Oracle JET now is Open Source. Also Oracle JET is available on Github here.

There are a lot of new features added to 2.0. On this site there’s an overview of the new features.

One nice feature is that you can generate a hybrid mobile application.

There are some prerequisites before you can develop a hybrid mobile application. First you must install yeoman, grunt and cordova. Yeoman is a tool to generate a template for your application. Grunt is a JavaScript task runner and Cordova is necessary for cross-platform development.

The installation of these tools can be done in the terminal:

npm –g install yo
npm –g install grunt
npm –g install cordova

After the installation of the components you can generate a mobile hybrid application. Enter in a terminal:

yo oraclejet:hybrid android_navbar  --appName="android_navbar" --template=navBar --platforms=android

 

Oracle JET code

The application is generated. It can take a while.

Change the directory in the terminal:

cd android_navbar

Then build the application with Grunt:

grunt build --platform=android

 

Oracle JET

To run the application you can choose to run the application in the browser or in an Android emulator. I installed Android studio download here and created a virtual device.
One remark: When you use an emulator make sure you installed in the SDK Manager Android 5.1.1 (version 22). This is required by Cordova.

Now you can run the application:

grunt serve --platform=android --destination=Nexus_5_API_23_x86

And in the emulator you can see the generated application:

Phone screen
Phone screen

Geen reacties

Geef jouw mening

Reactie plaatsen

Reactie toevoegen

Jouw e-mailadres wordt niet openbaar gemaakt.

Geen HTML

  • Geen HTML toegestaan.
  • Regels en alinea's worden automatisch gesplitst.
  • Web- en e-mailadressen worden automatisch naar links omgezet.

Wil je deel uitmaken van een groep gedreven en ambitieuze experts? Stuur ons jouw cv!