1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    sencha-user59 is on a distinguished road

      0  

    Default Unanswered: Can't generate a production from sencha

    Unanswered: Can't generate a production from sencha


    Hi,

    I've developed my first sencha touch application, but I can't seem to generate a production version. It fails indicating that it can't locate java. However, it is installed and its path is valid as shown below. Failure is in minification of app.js. Any help would be much appreciated. Thanks.


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>java -version
    java version "1.7.0_02"
    Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>sencha app build production
    [INFO] Deploying your application to C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS
    \build\production
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/loading
    [INFO] Resolving your application dependencies...
    [INFO] Found 196 dependencies. Concatenating all into app.js...
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [ERROR] Error: Command failed: 'java' is not recognized as an internal or external command,
    operable program or batch file.


    [ERROR] 'java' is not recognized as an internal or external command, operable program or batch file.
    [ERROR] Error: Command failed: 'java' is not recognized as an internal or external command,
    operable program or batch file.
    [ERROR] 'java' is not recognized as an internal or external command,operable program or batch file.
    [ERROR] Error: Command failed: 'java' is not recognized as an internal or external command,
    operable program or batch file.
    [ERROR] 'java' is not recognized as an internal or external command,operable program or batch file.


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>java -version
    java version "1.7.0_02"
    Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>

  2. #2
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    sencha-user59 is on a distinguished road

      0  

    Default Production failure - java not found

    Production failure - java not found


    Hi,

    I still can't figure out what is going on, so I'm re-posting. If anyone has a way of troubleshooting this, I would appreciate it very much.

    I've developed my first sencha touch application, but I can't seem to generate a production version. It fails indicating that it can't locate java. However, it is installed and its path is valid as shown below. Failure is in minification of app.js. Any help would be much appreciated. Thanks.


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>java -version
    java version "1.7.0_02"
    Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>sencha app build production
    [INFO] Deploying your application to C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS
    \build\production
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/loading
    [INFO] Resolving your application dependencies...
    [INFO] Found 196 dependencies. Concatenating all into app.js...
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [ERROR] Error: Command failed: 'java' is not recognized as an internal or external command,
    operable program or batch file.


    [ERROR] 'java' is not recognized as an internal or external command, operable program or batch file.
    [ERROR] Error: Command failed: 'java' is not recognized as an internal or external command,
    operable program or batch file.
    [ERROR] 'java' is not recognized as an internal or external command,operable program or batch file.
    [ERROR] Error: Command failed: 'java' is not recognized as an internal or external command,
    operable program or batch file.
    [ERROR] 'java' is not recognized as an internal or external command,operable program or batch file.


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>java -version
    java version "1.7.0_02"
    Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)


    C:\dev\apache-tomcat-7.0.26\webapps\ROOT\GS>

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    Waterloo, ON
    Posts
    8
    Vote Rating
    0
    Vic2 is on a distinguished road

      0  

    Default


    Did you figure this out?

  4. #4
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    6
    Answers
    1
    Vote Rating
    0
    sencha-user59 is on a distinguished road

      0  

    Default Yes

    Yes


    Yes, I added java.exe location to the PATH variable, and it worked after that.

  5. #5
    Sencha User
    Join Date
    May 2012
    Location
    Waterloo, ON
    Posts
    8
    Vote Rating
    0
    Vic2 is on a distinguished road

      0  

    Default


    where can i find this PATH variable? and do i just type in java.exe to the field?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."