Newbie needs assistance with AI4A error message

552 views
Skip to first unread message

Scott Ferguson

unread,
May 21, 2013, 6:21:45 PM5/21/13
to ai...@googlegroups.com
Should I post this at Getting Started... instead of here?
Getting an error 'the server is temporarily unavailable' on V1.4.6 AI4A.
echo %JAVA_HOME% returns C:\Program Files\Java\jdk1.6.0_34
Should that Java version work or must I upgrade to 1.7?
Should I use a later version of AI4A? (I want max compatibility with MIT AI)
This is a clean install. I have never used AI4A before.
Running Windows 7, 32bit. with appengine and buildserver loading ok.
Thanks--
---sfs

Scott Ferguson

unread,
May 21, 2013, 6:35:19 PM5/21/13
to ai...@googlegroups.com
Taifun just told me AI4A does not yet support MIT v134 yet. I suppose I will have to wait patiently as I have used the new slider component in my huge app and it will not load on MIT's server.
Any E.T.A. on that, Gary?
---sfs

Taifun

unread,
May 21, 2013, 7:07:08 PM5/21/13
to ai...@googlegroups.com
Hi "Newbie" ;-)


Should I post this at Getting Started... instead of here?
;-) for me it's fine here ...


Getting an error 'the server is temporarily unavailable' on V1.4.6 AI4A.
assuming you started the cmd file in the AppEngine folder...
if yes, try it several times (refresh browser window)
 
echo %JAVA_HOME% returns C:\Program Files\Java\jdk1.6.0_34
Should that Java version work or must I upgrade to 1.7?
that should work, what you can do is to upgrade to the newest jdk1.6.0_45, the newest Java 7 currently has an issue
 
Should I use a later version of AI4A? (I want max compatibility with MIT AI)
no, well, you could use 1.4.7 but this is a version in between...
we have to wait patiently until Gary releases an ai4a version which is compatible to MIT Version 134
Taifun

Scott Ferguson

unread,
May 21, 2013, 7:15:28 PM5/21/13
to ai...@googlegroups.com
@Taifun - yes I started the cmd file in the AppEngine folder, and will try it several times. Also will update the jdk to 1.6.0_45.
Thanks :)
---sfs

Taifun

unread,
May 21, 2013, 7:19:05 PM5/21/13
to ai...@googlegroups.com
did you get a "server running" in the log?
Taifun

********************************************************
There is a new version of the SDK available.
-----------
Latest SDK:
Release: 1.8.0
Timestamp: Wed May 01 12:01:15 CST 2013
API versions: [1.0]

-----------
Your SDK:
Release: 1.7.7
Timestamp: Mon Apr 15 16:01:18 CST 2013
API versions: [1.0]

-----------
Please visit https://developers.google.com/appengine/downloads for the latest SD
K.
********************************************************
21.05.2013 17:19:22 com.google.apphosting.utils.config.AppEngineWebXmlReader rea
dAppEngineWebXml
INFO: Successfully processed C:\Prog\ai4a\V1.4.6\AppEngine\war\WEB-INF/appengine
-web.xml
21.05.2013 17:19:22 com.google.apphosting.utils.config.AbstractConfigXmlReader r
eadConfigXml
INFO: Successfully processed C:\Prog\ai4a\V1.4.6\AppEngine\war\WEB-INF/web.xml
21.05.2013 17:19:22 com.google.appengine.tools.development.SystemPropertiesManag
er setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'C:
\Prog\appengine-java-sdk-1.7.7.1\config\sdk\logging.properties' with value 'WEB-
INF/logging.properties' from 'C:\Prog\ai4a\V1.4.6\AppEngine\war\WEB-INF\appengin
e-web.xml'
21.05.2013 17:19:22 com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLo
gger
21.05.2013 17:19:24 com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
21.05.2013 17:19:25 com.google.appinventor.server.IdMap <init>
SCHWERWIEGEND: No fixid list found.
21.05.2013 17:19:25 com.google.appengine.api.datastore.dev.LocalDatastoreService
 init
INFO: Local Datastore initialized:
        Type: Master/Slave
        Storage: C:\Prog\ai4a\V1.4.6\AppEngine\war\WEB-INF\appengine-generated\l
ocal_db.bin
21.05.2013 17:19:26 com.google.appengine.api.datastore.dev.LocalDatastoreService
 load
INFO: Time to load datastore: 234 ms
21.05.2013 17:19:26 com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@localhost:8888
21.05.2013 17:19:26 com.google.appengine.tools.development.AbstractServer startu
p
INFO: Server default is running at http://localhost:8888/
21.05.2013 17:19:26 com.google.appengine.tools.development.AbstractServer startu
p
INFO: The admin console is running at http://localhost:8888/_ah/admin
21.05.2013 17:19:26 com.google.appengine.tools.development.DevAppServerImpl star
t
INFO: Dev App Server is now running

Scott Ferguson

unread,
May 21, 2013, 10:38:08 PM5/21/13
to ai...@googlegroups.com
Yes. It runs and your jdk update suggestion worked to get to the projects list. I can start a new project, but neither AI4A v1.4.6 or v1.4.7 will load the big project due to incompatabilities.
I hesitate to try jdk 1.8.0 as 1.6.0_x has worked well for me so far.
I am also considering setting up a clone of the MIT v134 server on a Linux box.
---sfs

Anand P

unread,
May 21, 2013, 11:14:22 PM5/21/13
to ai...@googlegroups.com
Hi Taifun,

I was able to work with v1.4.7, i try v1.5 since it require AI companion I switch back to v1.4.7 but now i have problem when i try to open block editor i get following error.
(my java is still 1.7.0_17) pls. help me how to fix it.


thank you.

Anand P

unread,
May 21, 2013, 11:22:57 PM5/21/13
to ai...@googlegroups.com

Hi Taifun,

Solved, it was java i think somehow it was java update, now i uninstall the latest update and it works :)

Thank you.

Taifun

unread,
May 22, 2013, 8:18:01 AM5/22/13
to ai...@googlegroups.com
I am also considering setting up a clone of the MIT v134 server on a Linux box.
I set that up on Windows, just follow the docus http://appinventor.mit.edu/appinventor-sources/
if you need help, just let us know
Taifun

Scott Ferguson

unread,
May 23, 2013, 11:10:51 AM5/23/13
to ai...@googlegroups.com
Thanks. I have been going through that document this morning and definitely prefer running on Windows 7.
---sfs

Scott Ferguson

unread,
May 24, 2013, 9:38:47 PM5/24/13
to ai...@googlegroups.com
My attempt at building the MIT server---

This is the output from the ant session:
Any suggestions would be appreciated.
Thanks.

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Pat\Documents\GitHub> cd appinventor-sources
C:\Users\Pat\Documents\GitHub\appinventor-sources [master +11 ~0 -0 !]> cd appinventor
C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor [master +12 ~0 -0 !]> ant.bat
Buildfile: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\build.xml

all:

init:

MakeWarLibsDir:

common_BlocksEditorHttpConstants:

init:

BlocksEditorHttpConstants:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

components_CommonConstants:

init:

CommonConstants:

WarLibs:

AiSharedLib:

blockseditor_BlocksEditor:

init:

blockslib_OpenBlocks:

init:

components_XmlComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:
      [jar] Building jar: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\components\build\AnnotationProce
ssors.jar

AndroidRuntime:

XmlComponentDescription:

common_CommonVersion:

init:

CommonVersion:

OpenBlocks:

common_BlocksEditorHttpConstants:

init:

BlocksEditorHttpConstants:

common_CommonVersion:

init:

CommonVersion:

YoungAndroidLib:

check-KeyStore:

KeyStore:

BlocksEditor:

buildserver_StarterApp:

init:

GenStarterAppSrcZip:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

CopyToRunLibDir:

blockslib_OpenBlocks:

init:

components_XmlComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:
      [jar] Building jar: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\components\build\AnnotationProce
ssors.jar

AndroidRuntime:

XmlComponentDescription:

common_CommonVersion:

init:

CommonVersion:

OpenBlocks:

YailGenerator:

components_AndroidRuntime:

init:

CommonConstants:

HtmlEntities:

AndroidRuntime:

components_ComponentList:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:
      [jar] Building jar: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\components\build\AnnotationProce
ssors.jar

AndroidRuntime:

ComponentList:

BuildServer:

CheckStarterApp:

StarterApp:
     [java] May 24, 2013 8:22:49 PM com.google.appinventor.buildserver.ProjectBuilder build
     [java] INFO: temporary project root: C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0
     [java] May 24, 2013 8:22:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0\src\com\google\appinvent
or\aiphoneapp\Screen1.blk from input zip
     [java] May 24, 2013 8:22:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0\src\com\google\appinvent
or\aiphoneapp\Screen1.scm from input zip
     [java] May 24, 2013 8:22:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0\src\com\google\appinvent
or\aiphoneapp\Screen1.yail from input zip
     [java] May 24, 2013 8:22:49 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
     [java] INFO: extracting C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0\youngandroidproject\proj
ect.properties from input zip
     [java] May 24, 2013 8:22:49 PM com.google.appinventor.buildserver.Execution execute
     [java] INFO: ____Executing C:\Program Files\Java\jdk1.6.0_45\jre/bin/keytool -genkey -keystore C:\Users\Pat\AppData
\Local\Temp\1369444969151_0.5426062034943049-0\android.keystore -alias AndroidKey -keyalg RSA -dname CN="App Inventor",
O=AppInventor for Android, C=US -validity 10000 -storepass android -keypass android
     [java] Libraries needed, n= 9
     [java] Native Libraries needed, n= 0
     [java] Component assets needed, n= 0
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 10%
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler generatePermissions
     [java] INFO: usesLocation = False
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 15%
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler writeAndroidManifest
     [java] INFO: VCode: null
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler writeAndroidManifest
     [java] INFO: VName: null
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 20%
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler generateClasses
     [java] INFO: source file: C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0\youngandroidproject\..
\src\com\google\appinventor\aiphoneapp\Screen1.yail
     [java] Android Manifest: including <receiver> tag
     [java] Libraries Classpath, n 9
     [java] Libraries Classpath = C:\Users\Pat\AppData\Local\Temp\kawa2113471224819119825.jar;C:\Users\Pat\AppData\Local
\Temp\acra-4.4.0322925214620234217.jar;C:\Users\Pat\AppData\Local\Temp\AndroidRuntime851971062178443329.jar;C:\Users\Pat
\AppData\Local\Temp\google-http-client-android2-beta129835405727701046.jar;C:\Users\Pat\AppData\Local\Temp\google-oauth-
client-beta8049374722130261446.jar;C:\Users\Pat\AppData\Local\Temp\twitter4j935097565356346415.jar;C:\Users\Pat\AppData\
Local\Temp\fusiontables7763367410801328971.jar;C:\Users\Pat\AppData\Local\Temp\google-api-client-android2-beta7963123989
238699907.jar;C:\Users\Pat\AppData\Local\Temp\google-http-client-beta4377755256053800234.jar;C:\Users\Pat\AppData\Local\
Temp\google-api-client-beta5495693192326678623.jar;C:\Users\Pat\AppData\Local\Temp\guava-14.0.18451953356269174106.jar;C
:\Users\Pat\AppData\Local\Temp\google-http-client-android3-beta763168875890549962.jar;C:\Users\Pat\AppData\Local\Temp\an
droid8700466192569905719.jar
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Execution execute
     [java] INFO: ____Executing C:\Program Files\Java\jdk1.6.0_45\jre/bin/java -mx1848M -cp C:\Users\Pat\AppData\Local\T
emp\kawa2113471224819119825.jar;C:\Users\Pat\AppData\Local\Temp\acra-4.4.0322925214620234217.jar;C:\Users\Pat\AppData\Lo
cal\Temp\AndroidRuntime851971062178443329.jar;C:\Users\Pat\AppData\Local\Temp\google-http-client-android2-beta1298354057
27701046.jar;C:\Users\Pat\AppData\Local\Temp\google-oauth-client-beta8049374722130261446.jar;C:\Users\Pat\AppData\Local\
Temp\twitter4j935097565356346415.jar;C:\Users\Pat\AppData\Local\Temp\fusiontables7763367410801328971.jar;C:\Users\Pat\Ap
pData\Local\Temp\google-api-client-android2-beta7963123989238699907.jar;C:\Users\Pat\AppData\Local\Temp\google-http-clie
nt-beta4377755256053800234.jar;C:\Users\Pat\AppData\Local\Temp\google-api-client-beta5495693192326678623.jar;C:\Users\Pa
t\AppData\Local\Temp\guava-14.0.18451953356269174106.jar;C:\Users\Pat\AppData\Local\Temp\google-http-client-android3-bet
a763168875890549962.jar;C:\Users\Pat\AppData\Local\Temp\android8700466192569905719.jar kawa.repl -f C:\Users\Pat\AppData
\Local\Temp\runtime8785941347902991037.scm -d C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062034943049-0\youngan
droidproject\..\build\classes -P com.google.appinventor.aiphoneapp. -C C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5
426062034943049-0\youngandroidproject\..\src\com\google\appinventor\aiphoneapp\Screen1.yail C:\Users\Pat\AppData\Local\T
emp\runtime8785941347902991037.scm
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler generateClasses
     [java] SEVERE: Kawa compile has failed.
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler generateClasses
     [java] INFO: Kawa compile time: 0.094 seconds
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 35%
     [java] Error occurred during initialization of VM
     [java] Could not reserve enough space for object heap
     [java] Libraries needed command line n = 9
     [java] Libraries command line = [C:\Program Files\Java\jdk1.6.0_45\jre/bin/java, -mx1848M, -jar, C:\Users\Pat\AppDa
ta\Local\Temp\dx_3774065022009284582.jar, --dex, --positions=lines, --output=C:\Users\Pat\AppData\Local\Temp\13694449691
51_0.5426062034943049-0\youngandroidproject\..\build\tmp\classes.dex, C:\Users\Pat\AppData\Local\Temp\1369444969151_0.54
26062034943049-0\youngandroidproject\..\build\classes, C:\Users\Pat\AppData\Local\Temp\AndroidRuntime851971062178443329.
jar, C:\Users\Pat\AppData\Local\Temp\kawa2113471224819119825.jar, C:\Users\Pat\AppData\Local\Temp\acra-4.4.0322925214620
234217.jar, C:\Users\Pat\AppData\Local\Temp\google-http-client-android2-beta129835405727701046.jar, C:\Users\Pat\AppData
\Local\Temp\google-oauth-client-beta8049374722130261446.jar, C:\Users\Pat\AppData\Local\Temp\twitter4j935097565356346415
.jar, C:\Users\Pat\AppData\Local\Temp\fusiontables7763367410801328971.jar, C:\Users\Pat\AppData\Local\Temp\google-api-cl
ient-android2-beta7963123989238699907.jar, C:\Users\Pat\AppData\Local\Temp\google-http-client-beta4377755256053800234.ja
r, C:\Users\Pat\AppData\Local\Temp\google-api-client-beta5495693192326678623.jar, C:\Users\Pat\AppData\Local\Temp\guava-
14.0.18451953356269174106.jar, C:\Users\Pat\AppData\Local\Temp\google-http-client-android3-beta763168875890549962.jar]
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 50%
     [java] May 24, 2013 8:22:50 PM com.google.appinventor.buildserver.Execution execute
     [java] INFO: ____Executing C:\Program Files\Java\jdk1.6.0_45\jre/bin/java -mx1848M -jar C:\Users\Pat\AppData\Local\
Temp\dx_3774065022009284582.jar --dex --positions=lines --output=C:\Users\Pat\AppData\Local\Temp\1369444969151_0.5426062
034943049-0\youngandroidproject\..\build\tmp\classes.dex C:\Users\Pat\AppData\Local\Temp\1369444969151_0.542606203494304
9-0\youngandroidproject\..\build\classes C:\Users\Pat\AppData\Local\Temp\AndroidRuntime851971062178443329.jar C:\Users\P
at\AppData\Local\Temp\kawa2113471224819119825.jar C:\Users\Pat\AppData\Local\Temp\acra-4.4.0322925214620234217.jar C:\Us
ers\Pat\AppData\Local\Temp\google-http-client-android2-beta129835405727701046.jar C:\Users\Pat\AppData\Local\Temp\google
-oauth-client-beta8049374722130261446.jar C:\Users\Pat\AppData\Local\Temp\twitter4j935097565356346415.jar C:\Users\Pat\A
ppData\Local\Temp\fusiontables7763367410801328971.jar C:\Users\Pat\AppData\Local\Temp\google-api-client-android2-beta796
3123989238699907.jar C:\Users\Pat\AppData\Local\Temp\google-http-client-beta4377755256053800234.jar C:\Users\Pat\AppData
\Local\Temp\google-api-client-beta5495693192326678623.jar C:\Users\Pat\AppData\Local\Temp\guava-14.0.1845195335626917410
6.jar C:\Users\Pat\AppData\Local\Temp\google-http-client-android3-beta763168875890549962.jar
     [java] Error occurred during initialization of VM
     [java] Could not reserve enough space for object heap
     [java] Could not create the Java virtual machine.
     [java] May 24, 2013 8:22:51 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 75%
     [java] May 24, 2013 8:22:51 PM com.google.appinventor.buildserver.Compiler runDx
     [java] WARNING: YAIL compiler - DX execution failed.

BUILD FAILED
C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing
 this line:
C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\build-common.xml:292: The following error occurred while e
xecuting this line:
C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\buildserver\build.xml:214: Java returned: 1

Total time: 36 seconds
C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor [master +12 ~0 -0 !]>
---sfs

Gary

unread,
May 25, 2013, 7:09:34 AM5/25/13
to ai...@googlegroups.com

It warned you

...
     [java] Error occurred during initialization of VM
     [java] Could not reserve enough space for object heap
     [java] Could not create the Java virtual machine.
... 

are you on a 64 bit PC?
do you have a 64 bit Java?

Gary

Scott Ferguson

unread,
May 25, 2013, 8:44:29 AM5/25/13
to ai...@googlegroups.com
Hi Gary -
No it's a 32 bit machine.
I had already gone into Control Panel, Java, Java tab and added a startup argument: -XX:MaxHeapSize=256m
but that did not seem to help.

Should I post in the AI open source group instead since it is not your server?
I did try making an MIT version of your server with the AppEngine,folder with MIT war folder, modified startAI.cmd to point to appengine 1.8.0 sdk and MIT buildserver folders.
It could not start the server, and I had no idea what was missing that you modify to make your AI4A server work.
---sfs

Jos Flores

unread,
May 25, 2013, 11:15:03 AM5/25/13
to ai...@googlegroups.com
Hi Scott, have you tried setting ANT_OPTS

something like
set ANT_OPTS=-Xms512m -Xmx512m

windows 32bits tends to choke on allocating a large amount of memory,
even if you have enough RAM.

cheers,
José
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor for All" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ai4a+uns...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Scott Ferguson

unread,
May 25, 2013, 11:48:05 AM5/25/13
to ai...@googlegroups.com
Thanks, José --
set ANT_OPTS=-Xms512m -Xmx512m
I just tried it and although it seemed to run longer this time (almost one minute) same errors.
I plan on changing my PC config to operate as a server to perform better in processing services and try tweaking the heap and ram values.
Here are the differences in the old vs. new ant session output:

[java] INFO: Kawa compile time: 0.094 seconds
:
Total time: 36 seconds

[java] INFO: Kawa compile time: 0.171 seconds
:
Total time: 56 seconds
---sfs

Gary

unread,
May 25, 2013, 12:23:45 PM5/25/13
to ai...@googlegroups.com
Howdy Scot and José

The buildserver has

... -Xmx1440m and the --childProcessRamMb 1470

try 
set ANT_OPTS=-Xms1470m -Xmx1440m

Yutthana

unread,
May 25, 2013, 2:19:57 PM5/25/13
to ai...@googlegroups.com
try
set _JAVA_OPTIONS=-Xmx900m

or set it in advance system variable

Scott Ferguson

unread,
May 25, 2013, 2:29:05 PM5/25/13
to ai...@googlegroups.com
Thanks, Guys!
What worked to get BUILD SUCCESSFUL was:
_JAVA_OPTIONS = -Xmx1024M
Now how do I start this thing so I can do my localhost:8888   ???
---sfs

Taifun

unread,
May 25, 2013, 2:33:20 PM5/25/13
to ai...@googlegroups.com
congratulations!
just copy the scripts from Gary's ai4a personal server and adjust them to your needs
Taifun

Scott Ferguson

unread,
May 25, 2013, 3:18:35 PM5/25/13
to ai...@googlegroups.com
Thanks, Taifun :)
I had installed the appengine sdk under "Program Files" and got the error 'cannot find --port=888'
Moving the sdk to C:\appengine-java-sdk-1.8.0 worked to get:

INFO: Dev App Server is now running
---sfs

Taifun

unread,
May 25, 2013, 3:28:19 PM5/25/13
to ai...@googlegroups.com
which means, "Scott's personal server" is now running successfully?
Taifun

Scott Ferguson

unread,
May 25, 2013, 4:36:31 PM5/25/13
to ai...@googlegroups.com

Well it is running, but I get an error message when attempting to use it in either Chrome or Firefox...
---sfs

Taifun

unread,
May 25, 2013, 6:04:40 PM5/25/13
to ai...@googlegroups.com
please post the log, which is generated by the startAI.cmd script
to copy the contents of the DOS box: in the DOS box do a right mouse click, a context menu appears: press "select all", then press enter and all the content will be copied into the clipboard
using ctrl-v you can paste the contents somewhere...
Taifun

Taifun

unread,
May 25, 2013, 6:09:34 PM5/25/13
to ai...@googlegroups.com
btw, I'm using the following startAI.cmd script:

start %AEJSDK%\bin\dev_appserver.cmd --port=8888 --address=localhost C:\Users\Taifun\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war

Taifun

Scott Ferguson

unread,
May 25, 2013, 9:34:53 PM5/25/13
to ai...@googlegroups.com
ant.bat clean
ant.bat
=>
itor\youngandroid\properties\YoungAndroidLengthPropertyEditor.java:123: warning: [deprecation] isChecked() in com.google
.gwt.user.client.ui.CheckBox has been deprecated
    [javac]     } else if (fillParentRadioButton.isChecked()) {
    [javac]                                     ^
    [javac] C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\ex
plorer\commands\BuildCommand.java:61: warning: [deprecation] getMediumDateTimeFormat() in com.google.gwt.i18n.client.Dat
eTimeFormat has been deprecated
    [javac]         DateTimeFormat.getMediumDateTimeFormat().format(new Date())));
    [javac]                       ^
    [javac] C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\ex
plorer\commands\CopyYoungAndroidProjectCommand.java:202: warning: [deprecation] getMediumDateTimeFormat() in com.google.
gwt.i18n.client.DateTimeFormat has been deprecated
    [javac]       DateTimeFormat dateTimeFormat = DateTimeFormat.getMediumDateTimeFormat();
    [javac]                                                     ^
    [javac] C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\ex
plorer\commands\CopyYoungAndroidProjectCommand.java:246: warning: [deprecation] com.google.gwt.user.client.DeferredComma
nd in com.google.gwt.user.client has been deprecated
    [javac]       DeferredCommand.addCommand(new Command() {
    [javac]       ^
    [javac] C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\ex
plorer\commands\ShowProgressBarCommand.java:62: warning: [deprecation] getMediumDateTimeFormat() in com.google.gwt.i18n.
client.DateTimeFormat has been deprecated
    [javac]     this.buildRequestTime = DateTimeFormat.getMediumDateTimeFormat().format(new Date());
    [javac]                                           ^
    [javac] C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\ex
plorer\commands\WaitForBuildResultCommand.java:66: warning: [deprecation] getMediumDateTimeFormat() in com.google.gwt.i1
8n.client.DateTimeFormat has been deprecated
    [javac]     buildRequestTime = DateTimeFormat.getMediumDateTimeFormat().format(new Date());
    [javac]                                      ^
    [javac] C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\src\com\google\appinventor\client\pr
operties\json\ClientJsonParser.java:20: warning: [deprecation] parse(java.lang.String) in com.google.gwt.json.client.JSO
NParser has been deprecated
    [javac]         : ClientJsonValue.convert(com.google.gwt.json.client.JSONParser.parse(source));
    [javac]                                                                        ^
    [javac] Note: Some input files additionally use or override a deprecated API.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 100 warnings
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\simple\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\explorer\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\youngandroid\properties\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\boxes\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\simple\palette\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\simple\components\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\explorer\commands\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\explorer\project\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\youngandroid\palette\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\explorer\youngandroid\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\package-info.class
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\cla
sses\com\google\appinventor\client\editor\youngandroid\package-info.class
     [copy] Copying 1 file to C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-INF\
classes\com\google\appinventor
     [copy] Copying 71 files to C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\WEB-IN
F\classes
     [copy] Copied 12 empty directories to 11 empty directories under C:\Users\Pat\Documents\GitHub\appinventor-sources\
appinventor\appengine\build\war\WEB-INF\classes

AiRebindLib:
    [mkdir] Created dir: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\classes\AiRebindL
ib
    [javac] Compiling 1 source file to C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\cla
sses\AiRebindLib
      [jar] Building jar: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\AiRebindLib.jar

CopyToBuildWar:
     [copy] Copying 589 files to C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war

CheckYaClientApp:

YaClientApp:
     [java] Picked up _JAVA_OPTIONS: -Xmx1024M

CheckKeystore:

Keystore:
     [echo] Using KeyczarTool to generate keystore
    [mkdir] Created dir: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war\keystore
     [java] Picked up _JAVA_OPTIONS: -Xmx1024M
     [java] log4j:WARN No appenders could be found for logger (org.keyczar.Keyczar).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] Picked up _JAVA_OPTIONS: -Xmx1024M
     [java] log4j:WARN No appenders could be found for logger (org.keyczar.Keyczar).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] Picked up _JAVA_OPTIONS: -Xmx1024M

all:


init:

blockslib_OpenBlocks:

init:

components_XmlComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:

AndroidRuntime:

XmlComponentDescription:

common_CommonVersion:

init:

CommonVersion:

OpenBlocks:

common_BlocksEditorHttpConstants:

init:

BlocksEditorHttpConstants:

common_CommonVersion:

init:

CommonVersion:

YoungAndroidLib:

check-KeyStore:

KeyStore:

BlocksEditor:

all:


init:

components_XmlComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:

AndroidRuntime:

XmlComponentDescription:

common_CommonVersion:

init:

CommonVersion:

OpenBlocks:

all:

init:

CommonUtils:

CommonVersion:

BlocksEditorHttpConstants:

CommonTestUtils:
    [mkdir] Created dir: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\common\build\classes\CommonTestUt
ils
    [javac] Compiling 2 source files to C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\common\build\class
es\CommonTestUtils
    [javac] Creating empty C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\common\build\classes\CommonTest
Utils\com\google\appinventor\common\testutils\package-info.class
      [jar] Building jar: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\build\common\CommonTestUtils.jar


all:

init:


common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

CopyToRunLibDir:

blockslib_OpenBlocks:

init:

components_XmlComponentDescription:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:

AndroidRuntime:

XmlComponentDescription:

common_CommonVersion:

init:

CommonVersion:

OpenBlocks:

YailGenerator:

components_AndroidRuntime:

init:

CommonConstants:

HtmlEntities:

AndroidRuntime:

components_ComponentList:

init:

CommonConstants:

ComponentProcessingLib:

HtmlEntities:

AnnotationProcessors:

AndroidRuntime:

ComponentList:

BuildServer:

all:

init:

CommonConstants:

HtmlEntities:

AndroidRuntime:

ComponentProcessingLib:

AnnotationProcessors:

JsonComponentDescription:

XmlComponentDescription:

ComponentList:

all:

BUILD SUCCESSFUL
Total time: 8 minutes 33 seconds
C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor [master +11 ~0 -0 !]>
===============================================================
In the startAI.cmd I am using: start %AEJSDK%\bin\dev_appserver.cmd --port=8888 --address=localhost C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\appengine\build\war

(startAI.cmd execution) =>

Picked up _JAVA_OPTIONS: -Xmx1024M
May 25, 2013 8:18:49 PM com.google.apphosting.utils.config.AppEngineWebXmlReader
 readAppEngineWebXml
INFO: Successfully processed C:\Users\Pat\Documents\GitHub\appinventor-sources\a
ppinventor\appengine\build\war\WEB-INF/appengine-web.xml
May 25, 2013 8:18:49 PM com.google.apphosting.utils.config.AbstractConfigXmlRead
er readConfigXml
INFO: Successfully processed C:\Users\Pat\Documents\GitHub\appinventor-sources\a
ppinventor\appengine\build\war\WEB-INF/web.xml
May 25, 2013 8:18:49 PM com.google.appengine.tools.development.SystemPropertiesM

anager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'C:
\appengine-java-sdk-1.8.0\config\sdk\logging.properties' with value 'WEB-INF/log
ging.properties' from 'C:\Users\Pat\Documents\GitHub\appinventor-sources\appinve
ntor\appengine\build\war\WEB-INF\appengine-web.xml'
May 25, 2013 8:18:49 PM com.google.apphosting.utils.jetty.JettyLogger info

INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLo
gger
May 25, 2013 8:18:51 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
May 25, 2013 8:18:53 PM com.google.appinventor.server.IdMap <init>
SEVERE: No fixid list found.
May 25, 2013 8:18:54 PM com.google.appengine.api.datastore.dev.LocalDatastoreSer
vice init

INFO: Local Datastore initialized:
        Type: Master/Slave
        Storage: C:\Users\Pat\Documents\GitHub\appinventor-sources\appinventor\a
ppengine\build\war\WEB-INF\appengine-generated\local_db.bin
May 25, 2013 8:18:54 PM com.google.appengine.api.datastore.dev.LocalDatastoreSer
vice load
INFO: The backing store, C:\Users\Pat\Documents\GitHub\appinventor-sources\appin
ventor\appengine\build\war\WEB-INF\appengine-generated\local_db.bin, does not ex
ist. It will be created.
May 25, 2013 8:18:56 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@localhost:8888
May 25, 2013 8:18:56 PM com.google.appengine.tools.development.AbstractServer st

artup
INFO: Server default is running at http://localhost:8888/
May 25, 2013 8:18:56 PM com.google.appengine.tools.development.AbstractServer st

artup
INFO: The admin console is running at http://localhost:8888/_ah/admin
May 25, 2013 8:18:56 PM com.google.appengine.tools.development.DevAppServerImpl
start

INFO: Dev App Server is now running
================================================================
At this point an attempt to launch the service at localhost:8888 resulted in the same error: Error 503 SERVICE_UNAVAILABLE
---sfs

Yutthana

unread,
May 25, 2013, 10:37:23 PM5/25/13
to ai...@googlegroups.com
last line it say "Server running"
try CTRL+F5 to force refresh

Scott Ferguson

unread,
May 26, 2013, 6:24:14 AM5/26/13
to ai...@googlegroups.com
Ah, CTRL+F5, the override cache trick...
Thanks :)
---sfs

Scott Ferguson

unread,
May 26, 2013, 6:40:35 AM5/26/13
to ai...@googlegroups.com
@Yutthana -- That (CTRL+F5) worked! Thank you everyone :)
---sfs

Wanddy Huang

unread,
May 26, 2013, 11:40:53 AM5/26/13
to ai...@googlegroups.com
I noticed that you check out the newest source to build your personal server.It's not recommended  do it this way because the newest source is under development ,there are more bugs than stable release.so i suggest  you download the source archives from  http://appinventor.mit.edu/appinventor-sources/ .

在 2013年5月26日星期日UTC+8下午6时40分35秒,Scott Ferguson写道:

Gary

unread,
May 27, 2013, 6:07:33 AM5/27/13
to ai...@googlegroups.com
I put the steps I take in this conversation

Gary


Scott Ferguson

unread,
May 27, 2013, 9:31:09 AM5/27/13
to ai...@googlegroups.com
OK. Thanks. I really don't know what I am doing regarding git. I am a total git. :(
---sfs

Gary

unread,
May 27, 2013, 10:16:04 AM5/27/13
to ai...@googlegroups.com
I think it is ok to use the current source. Read what the changes do and be ready for bugs.

If you want to be the same as the MIT release, you can still get the latest and then work with the previous tagged branch locally.

git branch v134
for example

Scott Ferguson

unread,
May 27, 2013, 10:48:45 AM5/27/13
to ai...@googlegroups.com
OK. I have the correct sources now and am trying to run the BuildServer.
I have created the lib folder from BuildServer.tar and am using Gary's launch-buildserver.cmd file pointing to my install of java (which is under 'Program Files' -- possible problem?)
Here is the output when attempting to launch the build server:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Pat\Desktop\for-BuildServer>launch-buildserver.cmd

C:\Users\Pat\Desktop\for-BuildServer>set JARSIGNER=C:\Program Files\Java\jdk1.6.
0_45\bin\jarsigner.exe

C:\Users\Pat\Desktop\for-BuildServer>cd lib

C:\Users\Pat\Desktop\for-BuildServer\lib>java -Xmx1470m -cp activation-1.1.jar;j
ersey-bundle-1.3.jar;args4j-2.0.18.jar;jersey-multipart-1.3.jar;asm-3.1.jar;jett
ison-1.1.jar;BuildServer.jar;json.jar;CommonUtils.jar;jsr311-api-1.1.1.jar;Commo
nVersion.jar;localizer.jar;FastInfoset-1.2.2.jar;mail-1.4.jar;grizzly-servlet-we
bserver-1.9.18-i.jar;guava-10.0.1.jar;rome-0.9.jar;http-20070405.jar;sdklib.jar;
jackson-core-asl-1.1.1.jar;stax-api-1.0-2.jar;jaxb-api-2.1.jar;wadl2java.jar;jax
b-impl-2.1.10.jar;wadl-cmdline.jar;jaxb-xjc.jar;wadl-core.jar;jdom-1.0.jar -Dfil
e.encoding=UTF-8 com.google.appinventor.buildserver.BuildServer --childProcessRa
mMb 1470 --jarsignerLocation "C:\Program Files\Java\jdk1.6.0_45\bin\jarsigner.ex
e"
Picked up _JAVA_OPTIONS: -Xmx1024M
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/col
lect/ImmutableMap
        at com.google.appinventor.buildserver.BuildServer.<clinit>(BuildServer.j
ava:97)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Immutable
Map
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 1 more
Could not find the main class: com.google.appinventor.buildserver.BuildServer.
Program will exit.

C:\Users\Pat\Desktop\for-BuildServer\lib>
----
It is picking up th e-Xmx1024M from a system variable that I had set earlier.
Any suggestions would be appreciated :)
---sfs

Yutthana

unread,
May 27, 2013, 11:04:32 AM5/27/13
to ai...@googlegroups.com
check version of your *.jar in "lib" directory if you use buildserver32.cmd from Gary personal server it's not update.

Taifun

unread,
May 27, 2013, 8:51:44 PM5/27/13
to ai...@googlegroups.com
Scott, did you check Yutthana's recommendations?
I use the following launch-buildserver.cmd file on 'Windows 7 64 bit in the following directory: C:\Users\Taifun\Documents\GitHub successfully
Taifun

cd appinventor-sources/appinventor/buildserver/lib

java -Xmx1828m -cp activation-1.1.jar;jersey-bundle-1.3.jar;args4j-2.0.18.jar;jersey-multipart-1.3.jar;asm-3.1.jar;commons-io-2.0.1.jar;jettison-1.1.jar;BuildServer.jar;json.jar;CommonUtils.jar;jsr311-api-1.1.1.jar;CommonVersion.jar;localizer.jar;FastInfoset-1.2.2.jar;mail-1.4.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-11.0.1.jar;rome-0.9.jar;http-20070405.jar;sdklib.jar;jackson-core-asl-1.9.4.jar;stax-api-1.0-2.jar;jaxb-api-2.1.jar;wadl2java.jar;jaxb-impl-2.1.10.jar;wadl-cmdline.jar;jaxb-xjc.jar;wadl-core.jar;jdom-1.0.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.BuildServer


Yutthana

unread,
May 27, 2013, 9:55:20 PM5/27/13
to ai...@googlegroups.com
guava is guava-14.0.1.jar
if you compile from last git update this should work

cd /d %~dp0
cd lib
java -Xmx1024m -cp BuildServer.jar;CommonUtils.jar;CommonVersion.jar;FastInfoset-1.2.2.jar;activation-1.1.jar;args4j-2.0.18.jar;asm-3.1.jar;commons-io-2.0.1.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-14.0.1.jar;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api-2.1.jar;jaxb-impl-2.1.10.jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;jersey-multipart-1.3.jar;jettison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.jar;mail-1.4.jar;rome-0.9.jar;sdklib.jar;stax-api-1.0-2.jar;wadl-cmdline.jar;wadl-core.jar;wadl2java.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.BuildServer

Taifun

unread,
May 28, 2013, 11:06:44 AM5/28/13
to ai...@googlegroups.com
thank you Yutthana, it seems to be they changes something recently...
now I'm up to date again and use the following script to run the buildserver (Windows 7 64 bit)
Taifun

cd appinventor-sources/appinventor/buildserver/build/run/lib

java -Xmx1828m -cp BuildServer.jar;CommonUtils.jar;CommonVersion.jar;FastInfoset-1.2.2.jar;activation-1.1.jar;args4j-2.0.18.jar;asm-3.1.jar;commons-io-2.0.1.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-14.0.1.jar;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api-2.1.jar;jaxb-impl-2.1.10.jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;jersey-multipart-1.3.jar;jettison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.jar;mail-1.4.jar;rome-0.9.jar;sdklib.jar;stax-api-1.0-2.jar;wadl-cmdline.jar;wadl-core.jar;wadl2java.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.BuildServer

Scott Ferguson

unread,
May 28, 2013, 2:56:20 PM5/28/13
to ai...@googlegroups.com
Thanks, Yutthana and Taifun :)
Yutthana's version worked without modification.
I can now package my app!
---sfs

Scott Ferguson

unread,
May 28, 2013, 3:07:19 PM5/28/13
to ai...@googlegroups.com
Hmmm. I get an error about the Jarsigner at the end of packaging:
:
________Invoking AAPT
AAPT time: 0.749 seconds
________Invoking ApkBuilder
________Signing the apk file
YAIL compiler - could not find jarsigner.

Error: Your build failed due to an error in the JarSigner stage, not because of an error in your program.
???
Has anyone seen this before?
---sfs

M. Hossein Amerkashi

unread,
May 28, 2013, 3:16:35 PM5/28/13
to ai...@googlegroups.com
Gary mentioned about him getting error.
I don't get any issues.

-Hossein


--

Scott Ferguson

unread,
May 28, 2013, 3:18:16 PM5/28/13
to ai...@googlegroups.com
From this post, I did a dir /s jarsigner.exe as Gary suggested and the only match was in a folder for his personal server that I had tested. So it appears to be missing from the Java subdirectory?
---sfs

Scott Ferguson

unread,
May 28, 2013, 3:24:00 PM5/28/13
to ai...@googlegroups.com
No, I see it is there under the C:\Java\bin folder.
???
---sfs

M. Hossein Amerkashi

unread,
May 28, 2013, 3:24:47 PM5/28/13
to ai...@googlegroups.com
jarsigner.exe is in jdk folder


--

M. Hossein Amerkashi

unread,
May 28, 2013, 3:32:18 PM5/28/13
to ai...@googlegroups.com
Scott,
For time being, what you can do is open the Compiler.exe, comment line 820, 821 and instead add something like following:
        jarsignerFile=new File("/path/to//your/jarsigner/jarsigner.exe");

Will have better solution for you later.

-Hossein.

M. Hossein Amerkashi

unread,
May 28, 2013, 3:37:30 PM5/28/13
to ai...@googlegroups.com
Sorry, I meant Compiler.java
Make sure that you rebuild

-Hossein.

Taifun

unread,
May 28, 2013, 3:37:59 PM5/28/13
to ai...@googlegroups.com
@Scott: how did you set JAVA_HOME?
to find it out, enter this in a dos window:
echo %JAVA_HOME%
what do you get?
Taifun

Scott Ferguson

unread,
May 28, 2013, 5:56:17 PM5/28/13
to ai...@googlegroups.com
@Taifun

how did you set JAVA_HOME?
It is C:\Java which should be correct unless it needs to include \bin

@Hossein
For time being, what you can do is open the Compiler.java, comment line 820, 821 and instead add something like following:
        jarsignerFile=new File("/path/to//your/
jarsigner/jarsigner.exe")
OK
---sfs

Scott Ferguson

unread,
May 28, 2013, 6:59:37 PM5/28/13
to ai...@googlegroups.com
@all
Packaging is working now, so I'm good :)
Thanks to everyone who helped--
@Hossein
Hardcoding the path to jarsigner.exe in Compiler.java worked :)
---sfs

M. Hossein Amerkashi

unread,
May 28, 2013, 9:06:32 PM5/28/13
to ai...@googlegroups.com
Great.
A better alternative would be to issue the following in the DOS command window:

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_39

change above to point to your jdk folder

-Hossein.


Scott Ferguson

unread,
May 29, 2013, 8:01:28 AM5/29/13
to ai...@googlegroups.com
Thanks. I already have that in the system environment and verified that it is there and correct, but it doesn't pick it up for some reason.
My path is C:\Java
---sfs

Gary

unread,
May 29, 2013, 8:12:37 AM5/29/13
to ai...@googlegroups.com
Here is the code from the ai4a version

.../Compiler.java


private boolean runJarSigner(String apkAbsolutePath, String keystoreAbsolutePath) {
    // start of ai4a code
    String javaHome = System.getenv("JAVA_HOME"); // ggf
    String jarsigner = "jarsigner";
    if (System.getProperty("os.name").contains("Windows")) {
      jarsigner = "jarsigner.exe";
    }
    LOG.log(Level.INFO, "jarsigner: " + javaHome + File.separator + "bin" + File.separator + jarsigner);
    // end of ai4a code
    File jarsignerFile = new File(javaHome + File.separator + "bin" + File.separator + jarsigner);
    if (!jarsignerFile.exists()) {
      LOG.warning("YAIL compiler - could not find jarsigner.");
      err.println("YAIL compiler - could not find jarsigner.");
      userErrors.print(String.format(ERROR_IN_STAGE, "JarSigner"));
      return false;
    }

----------
It uses the JAVA_HOME environment variable.
Replace the code at the top of runJarSigner with the above.

Gary

unread,
May 29, 2013, 8:15:30 AM5/29/13
to ai...@googlegroups.com

Scott Ferguson

unread,
May 29, 2013, 4:45:05 PM5/29/13
to ai...@googlegroups.com
@Gary
so by making those mods in Compiler.java I would not have to hard code the path to jarsigner.exe?
Thanks, I will have to try that.
---sfs

Gary

unread,
May 30, 2013, 7:57:46 AM5/30/13
to ai...@googlegroups.com
Put the change in and you will be mostly V1.4.x. :-)

Let us know how it goes.

Gary

Wanddy Huang

unread,
May 30, 2013, 9:52:20 AM5/30/13
to ai...@googlegroups.com
Hi,
If you set JAVA_HOME correctly,try to use "%JAVA_HOME%\java"(include quotations) instead of java in lunch-buildserver.cmd.This may help you buildserver find jarsigner.exe.
Its not good to hard code the path in Compiler.java,I think. 

在 2013年5月29日星期三UTC-7下午1时45分05秒,Scott Ferguson写道:

Wanddy Huang

unread,
May 30, 2013, 11:14:59 AM5/30/13
to ai...@googlegroups.com
Sorry,something missing of my last post here.
It should be : use "%JAVA_HOME%\bin\java"(include quotations) instead of java in lunch-buildserver.cmd 
The longest line of the cmd file should start like:"%JAVA_HOME%\bin\java" -Xmx1848m -cp activation-1.1.jar;........

Scott Ferguson

unread,
May 31, 2013, 7:13:59 AM5/31/13
to ai...@googlegroups.com
@Wanddy Huang
OK. Thanks. I agree hard-coding is not the best solution.
---sfs

Scott Ferguson

unread,
May 31, 2013, 7:46:56 AM5/31/13
to ai...@googlegroups.com
@Gary
Thanks but I am uneasy about making that great a change in the source of Compiler.java so am opting for what works for now.
---sfs

Gary

unread,
Jun 1, 2013, 7:33:36 AM6/1/13
to ai...@googlegroups.com
I wish I could get it to work without a change. If Wanddy's solution works, !!!

Hari Nair

unread,
Jun 21, 2013, 1:03:42 PM6/21/13
to ai...@googlegroups.com
But how and where to set the below? I'm novice here.
_JAVA_OPTIONS = -Xmx1024M

On Saturday, 25 May 2013 23:59:05 UTC+5:30, Scott Ferguson wrote:
Thanks, Guys!
What worked to get BUILD SUCCESSFUL was:
_JAVA_OPTIONS = -Xmx1024M
Now how do I start this thing so I can do my localhost:8888   ???
---sfs

On Saturday, May 25, 2013 1:19:57 PM UTC-5, Yutthana wrote:
try
set _JAVA_OPTIONS=-Xmx900m

or set it in advance system variable
Reply all
Reply to author
Forward
0 new messages