Avoiding Hiccups in Building Oracle JET Applications

When using NetBeans IDE to work on an Oracle JET project installed using the Yeoman generator on the command line, the files in the "src" folder are incomplete without the build command being run. Of course, you can just enable the Grunt build task and that solves that issue. Just right-click on the project and choose Build:

The first time you do this, you'll be prompted as follows:

Say Yes and you'll be here (your version of the below may be different to mine since I'm using a development build of NetBeans IDE):

Note that I checked the "Build Project" checkbox, which has "build" in there by default. When I click OK out of the dialog above, and then try to build the project again, I see the following in the Output window:

"C:\nodejs\grunt.cmd" "build"
Running "build" task

Running "oraclejet-build:undefined" (oraclejet-build) task
 Oracle JET Grunt plugin 
Processing Grunt command...
 [Warning] Missing platform. Default to web. 
Theme Name:Platform - alta:web 
Theme Version - 2.1.0
cleaning staging path.....
copy files to staging directory.....
copy finished...
compiling sass....
sass compile skipped...
running theme injection task.....
indexHtml theme path injection finished..
running theme copy task.....
theme copy finished...
running injection task.....
mainJs paths injection finished..

Done.
Done.

At this point, you need to be very careful. The process above has created a "web" folder, as shown below:

Note: The "web" folder is where things need to be "run" from to see the real app, while the source files should only be edited in the "src" folder. Be careful that you do not run into the issue of editing the "web" files and then losing your work when you do the next build. Be aware that the "web" folder is completely overwritten when you do a build.

Only after you have done the build, can you do "grunt serve", which will serve up the application into the platform of choice, which is the browser by default.

Comments:

Hello

I've created a blank template application using yeoman generator
and used the command "build --platform=android" to build the apk file

But when i try to build, build task goes fine and at the end it says "done" it doesn't show any error.Here is the log

Running "build" task

Running "oraclejet-build:undefined" (oraclejet-build) task
Oracle JET Grunt plugin
Processing Grunt command...
Theme Name:Platform - alta:android
Theme Version - 2.1.0
cleaning staging path.....
copy files to staging directory.....
copy finished...
compiling sass....
sass compile skipped...
running theme copy task.....
theme copy finished...
running theme injection task.....
indexHtml theme path injection finished..
injecting index.html with cordova script...
running injection task.....
mainJs paths injection finished..
invoke cordova prepare.....
cordova prepare finished....
invoke cordova compile.....
<Buffer 41 4e 44 52 4f 49 44 5f 48 4f 4d 45 3d 44 3a 5c 41 6e 64 72 6f 69 64 5c 53 44 4b 0a>
<Buffer 4a 41 56 41 5f 48 4f 4d 45 3d 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 5c 4a 61 76 61 5c 6a 64 6b 31 2e 38 2e 30 5f 35 31 0a>
<Buffer 49 6e 63 72 65 6d 65 6e 74 61 6c 20 6a 61 76 61 20 63 6f 6d 70 69 6c 61 74 69 6f 6e 20 69 73 20 61 6e 20 69 6e 63 75 62 61 74 69 6e 67 20 66 65 61 74 ... >
<Buffer 3a 70 72 65 42 75 69 6c 64 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 70 72 65 44 65 62 75 67 42 75 69 6c 64 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a ... >
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 70 72 65 44 65 62 75 67 42 75 69 6c 64 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a ... >
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 6d 65 72 67 65 44 65 62 75 67 50 72 6f 67 75 61 72 64 46 69 6c 65 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 70 61 63 6b 61 67 65 44 65 62 75 67 52 65 6e 64 65 72 73 63 72 69 70 74>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 63 68 65 63 6b 44 65 62 75 67 4d 61 6e 69 66 65 73 74>
<Buffer 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 70 72 65 70 61 72 65 44 65 62 75 67 44 65 70 65 6e 64 65 6e 63 69 65 73>
<Buffer 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 52 65 6e 64 65 72 73 63 72 69 70 74>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 52 65 73 56 61 6c 75 65 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 52 65 73 6f 75 72 63 65 73 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f ... >
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 41 69 64 6c>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 42 75 69 6c 64 43 6f 6e 66 69 67>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 6d 65 72 67 65 44 65 62 75 67 53 68 61 64 65 72 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 53 68 61 64 65 72 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 41 73 73 65 74 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 6d 65 72 67 65 44 65 62 75 67 41 73 73 65 74 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 70 72 6f 63 65 73 73 44 65 62 75 67 4d 61 6e 69 66 65 73 74>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 70 72 6f 63 65 73 73 44 65 62 75 67 52 65 73 6f 75 72 63 65 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 53 6f 75 72 63 65 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 69 6e 63 72 65 6d 65 6e 74 61 6c 44 65 62 75 67 4a 61 76 61 43 6f 6d 70 69 6c 61 74 69 6f 6e 53 61 66 65 67 75 61 ... >
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 4a 61 76 61 57 69 74 68 4a 61 76 61 63>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 70 72 6f 63 65 73 73 44 65 62 75 67 4a 61 76 61 52 65 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 74 72 61 6e 73 66 6f 72 6d 52 65 73 6f 75 72 63 65 73 57 69 74 68 4d 65 72 67 65 4a 61 76 61 52 65 73 46 6f 72 44 ... >
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 74 72 61 6e 73 66 6f 72 6d 43 6c 61 73 73 65 73 41 6e 64 52 65 73 6f 75 72 ... >
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 6d 65 72 67 65 44 65 62 75 67 4a 6e 69 4c 69 62 46 6f 6c 64 65 72 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 74 72 61 6e 73 66 6f 72 6d 4e 61 74 69 76 65 5f 6c 69 62 73 57 69 74 68 4d 65 ... >
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 74 72 61 6e 73 66 6f 72 6d 4e 61 74 69 76 65 5f 6c 69 62 73 57 69 74 68 53 ... >
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 43 6f 72 64 6f 76 61 4c 69 62 3a 62 75 6e 64 6c 65 44 65 62 75 67>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 70 72 65 70 61 72 65 41 6e 64 72 6f 69 64 43 6f 72 64 6f 76 61 4c 69 62 55 6e 73 70 65 63 69 66 69 65 64 44 ... >
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 70 72 65 70 61 72 65 44 65 62 75 67 44 65 70 65 6e 64 65 6e 63 69 65 73>
<Buffer 0d 0a>
<Buffer 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 41 69 64 6c>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 52 65 6e 64 65 72 73 63 72 69 70 74>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 42 75 69 6c 64 43 6f 6e 66 69 67>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 6d 65 72 67 65 44 65 62 75 67 53 68 61 64 65 72 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 53 68 61 64 65 72 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 41 73 73 65 74 73>
<Buffer 20>
<Buffer 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 6d 65 72 67 65 44 65 62 75 67 41 73 73 65 74 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 52 65 73 56 61 6c 75 65 73 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a 3a ... >
<Buffer 0d 0a>
<Buffer 3a 70 72 6f 63 65 73 73 44 65 62 75 67 4d 61 6e 69 66 65 73 74>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 70 72 6f 63 65 73 73 44 65 62 75 67 52 65 73 6f 75 72 63 65 73>
<Buffer 0d 0a 3a 67 65 6e 65 72 61 74 65 44 65 62 75 67 53 6f 75 72 63 65 73 0d 0a 3a 69 6e 63 72 65 6d 65 6e 74 61 6c 44 65 62 75 67 4a 61 76 61 43 6f 6d 70 ... >
<Buffer 0d 0a>
<Buffer 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 4a 61 76 61 57 69 74 68 4a 61 76 61 63>
<Buffer 0d 0a>
<Buffer 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 4a 61 76 61 57 69 74 68 4a 61 76 61 63 20 2d 20 69 73 20 6e 6f 74 20 69 6e 63 72 65 6d 65 6e 74 61 6c 20 28 65 ... >
<Buffer 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 4e 64 6b>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 63 6f 6d 70 69 6c 65 44 65 62 75 67 53 6f 75 72 63 65 73 0d 0a>
<Buffer 3a 70 72 65 50 61 63 6b 61 67 65 4d 61 72 6b 65 72 46 6f 72 44 65 62 75 67>
<Buffer 0d 0a>
<Buffer 3a 74 72 61 6e 73 66 6f 72 6d 43 6c 61 73 73 65 73 57 69 74 68 44 65 78 46 6f 72 44 65 62 75 67>
<Buffer 0d 0a 52 75 6e 6e 69 6e 67 20 64 65 78 20 69 6e 2d 70 72 6f 63 65 73 73 20 72 65 71 75 69 72 65 73 20 62 75 69 6c 64 20 74 6f 6f 6c 73 20 32 33 2e 30 ... >
<Buffer 3a 6d 65 72 67 65 44 65 62 75 67 4a 6e 69 4c 69 62 46 6f 6c 64 65 72 73>
<Buffer 0d 0a 3a 74 72 61 6e 73 66 6f 72 6d 4e 61 74 69 76 65 5f 6c 69 62 73 57 69 74 68 4d 65 72 67 65 4a 6e 69 4c 69 62 73 46 6f 72 44 65 62 75 67>
<Buffer 0d 0a>
<Buffer 3a 70 72 6f 63 65 73 73 44 65 62 75 67 4a 61 76 61 52 65 73>
<Buffer 20 55 50 2d 54 4f 2d 44 41 54 45 0d 0a>
<Buffer 3a 74 72 61 6e 73 66 6f 72 6d 52 65 73 6f 75 72 63 65 73 57 69 74 68 4d 65 72 67 65 4a 61 76 61 52 65 73 46 6f 72 44 65 62 75 67>
<Buffer 0d 0a 3a 76 61 6c 69 64 61 74 65 44 65 62 75 67 53 69 67 6e 69 6e 67 0d 0a>
<Buffer 3a 70 61 63 6b 61 67 65 44 65 62 75 67>
<Buffer 0d 0a 3a 7a 69 70 61 6c 69 67 6e 44 65 62 75 67>
<Buffer 0d 0a>
<Buffer 3a 61 73 73 65 6d 62 6c 65 44 65 62 75 67>
<Buffer 0d 0a>
<Buffer 3a 63 64 76 42 75 69 6c 64 44 65 62 75 67 0d 0a 0d 0a>
<Buffer 42 55 49 4c 44 20 53 55 43 43 45 53 53 46 55 4c 0d 0a 0d 0a 54 6f 74 61 6c 20 74 69 6d 65 3a 20 32 32 2e 33 31 32 20 73 65 63 73 0d 0a>
<Buffer 42 75 69 6c 74 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 61 70 6b 28 73 29 3a 20 0a 09 43 3a 2f 55 73 65 72 73 2f 64 65 76 61 64 72 65 64 2f 44 6f ... >
<Buffer 0d 0a>
Cordova compile finished....

Done.
Done.

And now the problem is it does not create any .apk file.

Can you please let me know if i am missing anything.

Posted by guest on March 16, 2017 at 03:33 AM PDT #

Here's the forum where you can ask questions, discuss things, etc, about Oracle JET:

https://community.oracle.com/community/development_tools/oracle-jet

Posted by Geertjan Wielenga on March 16, 2017 at 05:46 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java and JavaScript technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily, mainly on topics connected to Oracle JET and NetBeans IDE.

Search


Archives
« April 2017
SunMonTueWedThuFriSat
      
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
23
24
25
26
27
28
29
30
      
Today