Geertjan's Blog

From Oracle JET Web to Hybrid

Geertjan Wielenga
Product Manager

A 'web' project scaffolded using Oracle JET 2.1.0 can be extended with 'hybrid' features.

You can then build both web or hybrid app from the same sources.

To add the 'hybrid' capabilities to a web project, use the oraclejet:add-hybrid command in the application directory:

yo oraclejet:add-hybrid --platforms=android|ios|windows --appid=com.my.app --appname="My Hybrid App"

The --appid, --appid, and --platforms options take the same values as the yo oraclejet:hybrid generator.

The oraclejet:add-hybrid command creates a Cordova project and two new source directories 'src-hybrid' and 'src-web' in the application directory. These directories can be used for any source content that is specific to the hybrid or web mode respectively. For example, when building a hybrid app, the src-hybrid/index.html file (if it exists) takes precedence over the "common" src/index.html.

Join the discussion

Comments ( 3 )
  • guest Wednesday, September 7, 2016


    While creating the hybrid navBar oracle jet app i'm getting below error.Due to which application is not running.

    I have added the android sdk path in Tools -> options -> HTML/JS -> Mobile Platform 'D:\android-sdk_r18-windows'

    error stacK:

    Processing template... navBar

    0: Creating a new cordova project.

    'adb' is not recognized as an internal or external command,

    operable program or batch file.

    WARN: Skipping following platform as the test command returned an error - android => adb devices with Error: spawn adb ENOENT

    Oracle JET: Your app structure is generated. Continuing with library install...

    Performing npm, bower installs may take a bit...

    Invoking npm install

    Invoking bower install

    Please let us know what step needs to be done to add platform to

    hybrid mobile application in netbeans IDE.

  • Geertjan Wednesday, September 7, 2016

    The problem is very clear: "'adb' is not recognized as an internal or external command". I.e., you haven't set up Android correctly. If you can't run "adb" on the command line, then NetBeans can't do that either.

  • guest Friday, September 16, 2016


    Thanx for the reply,

    I have already installed android and i am able to get response from cmd for adb command.

    However netbeans is not able to connect to that installed adb

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.