Menu

FAQ

M. Hossein Amerkashi

Frequently Asked Questions

What's the installation process?

Please check the installation guide on the wiki HERE

I'm unable to package / download to my computer

This usually means that you need to increase the java heap size. Close your buildserver (if already running), then for Windows and make sure that you use WinStartBuildServerWithHeap.cmd to start your buildserver - please make sure that you don't have other buildservers running.

When opening blocks editor, I get 'Cannot find cache resource for url'

This has to do with java cache. You need to clear out the java cache. Please see the YouTube video below for fixing this issue:
https://www.youtube.com/watch?v=uI9RbmT9PKs

What files should I download

AiLiveCompleteV1.34.zip - this includes the binary / executable files and contains everything necessary to run your offline AI server.

exampleFontFace.zip - optional - includes an example source file that can be uploaded to offline AI Server. It demonstrate usage of custom fonts

app-inventor-private.zip - optional - includes all the source files

How can I build for apps that are larger than 5mb?
  • Make sure that you DO NOT start the build server; i.e. DO NOT run the WinStartBuildServer.cmd
  • Run the command below from a DOS window. Please make sure that you update it to point to your source AI file and output destination folder and your email address (see bold text below)

You have to open a DOS window and cd to: ailivecomplete\buildserver\lib

"%JAVA_HOME%\bin\java" -Xmx1g -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.Main --inputZipFile C:\Users\Me\Downloads\SQLite3.zip --userName kkashi01@gmail.com --outputDir C:\Users\Me\Downloads

If you have an older version of Windows and it complains about line length, cd to root folder of AiLiveComplete. Then enter the following (update to point to your zip and output location):
"%JAVA_HOME%\bin\java" -Xmx1g -cp "BuildServer/lib/*" -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.Main --inputZipFile c:\users\me\downloads\testAiCom135.zip --userName joe@gmail.com --outputDir C:\Users\Me\Downloads

When starting the server, screen flashes and then disappears

This could be because you have a run-away java process. In another word, you killed (closed console) the last session by simply hitting the X in the console bar. To properly shut-down the server, use Control-C and respond Y to shutdown.

To kill the runaway java process, in Windows, start-up your task manager, search for 'Java' process and kill the process.

I like to reset / refresh my app engine database

Note: Refreshing may CLEAR all your projects. We are not responsible for your project loss.

  1. Shut down your AI server
  2. cd to AIServer\WEB-INF\appengine-generated
  3. Rename local_db.bin to like local_db.bin.MMdd where MM is the month and dd is the day
  4. Restart your AI server

Discussion

  • James Poli

    James Poli - 2013-07-12

    After having done the chmod step I try running ./startAIServer.sh and I get a permission denied error. Any thoughts?

    Apart from me being an idiot...no..nevermind..issue resolved.

     

    Last edit: James Poli 2013-07-12
    • M. Hossein Amerkashi

      James, For benefit of all, what was the real issue and what steps you took to resolve it?

       
  • Arashmh

    Arashmh - 2013-07-14

    I have followed all the steps u mentioned, but localhost:8888 brings a page for me saying: "This webpage is not available" .. what should i do ?
    info:
    I am using winxp
    i made a variable JAVA_HOME with the value equal to path of my JDK folder

     
    • M. Hossein Amerkashi

      Arash, When you start your AIServer using WinStartAIServer.cmd, then there should be a DOS window that shows if server started successfully. In there, toward the end, it should tell you that server has started running (see below). Does your DOS window show this message?

      INFO: Server default is running at http://localhost:8888/

       
      • Arashmh

        Arashmh - 2013-07-14

        the dos windows opens and quickly closes in less than 2 secs ..

         
    • M. Hossein Amerkashi

      Please post a discussion topic using link below. There is something wrong with your java path:

      https://groups.google.com/forum/#!forum/apptomarket

       
  • Arashmh

    Arashmh - 2013-07-14

    Hossein
    I tried to remove the exclamation mark in my path as u told me on AI4A forum.. well that solved the issue now both AI4A and AiLiveComplete are working on my machine..
    thank you very much

     
  • Arashmh

    Arashmh - 2013-07-14

    Which version of companion should I use to connect my phone ?

     
  • Matias Camusso

    Matias Camusso - 2015-08-04

    how fix this error?
    admin@admin:~$ java -cp /opt/SourceAppinventor-master/buildserver/lib/* -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.Main --inputZipFile /Escritorio/testeo.zip --userName demo@gmail.com --outputDir /Escritorio
    Exception in thread "main" java.lang.NoClassDefFoundError: /opt/SourceAppinventor-master/buildserver/lib/asm-3/1/jar
    Caused by: java.lang.ClassNotFoundException: .opt.SourceAppinventor-master.buildserver.lib.asm-3.1.jar
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: /opt/SourceAppinventor-master/buildserver/lib/asm-3.1.jar. Program will exit.

     

Log in to post a comment.

MongoDB Logo MongoDB