-
19 May 2012 11:47 AM #1
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>
-
21 May 2012 9:26 AM #2
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>
-
13 Jun 2012 7:13 AM #3
Did you figure this out?
-
13 Jun 2012 10:38 PM #4
Yes
Yes
Yes, I added java.exe location to the PATH variable, and it worked after that.
-
14 Jun 2012 6:07 AM #5
where can i find this PATH variable? and do i just type in java.exe to the field?


Reply With Quote