A Guide For building Appinventor In both Windows and Linux!

I noticed that many people were facing issues in building appinventor in windows.
So I am writing this guide to help install AI2 Sources.


First to make sure

You don't have java --version more than 8


Installations:

  1. Ant
  2. Google Cloud SDK
  3. Appinventor sources itself
  4. Java 8

WIndows

  • Download and Install java
  • Download Ant from its website.

https://apachemirror.wuchna.com//ant/binaries/apache-ant-1.10.10-bin.zip

  • Next we need to install it with its wizard.

  • Then we need to install Google Cloud SDK.

  • Open PowerShell and run --

(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe")

& $env:Temp\GoogleCloudSDKInstaller.exe

  • Go though the installation wizard.

Downloading and compiling AI2 Sources--

Run the following command in your terminal:

  1. git clone https://github.com/mit-cml/appinventor-sources
  2. git submodule update --init
  3. cd appinventor/
  4. ant MakeAuthKey
  5. ant noplay (the noplay argument prevents the building of aiplay app which is known as the companion. Its optional)
  6. java_dev_appserver --port=8888 --address=0.0.0.0 appengine/build/war/
  7. Now open another command prompt
  8. cd appinventor/buildserver/
  9. ant RunLocalBuildServer
  10. Your Appinventor instance is ready in http://localhost:8888

If this gives error like...

BUILD FAILED
C:\appinventor-sources\appinventor\build.xml:50: The following error occurred while executing this line:
C:\appinventor-sources\appinventor\appengine\build.xml:173: Warning: Could not find file C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js to copy.

Its probably because of your antivirus software...
Try whitelisting the appinventor directory to the antivirus program.
If this issue persists then try to run
ant instead of ant noplay



Linux

Installation:

  • sudo apt update (Updates your software repos)

  • sudo apt-get install openjdk-8-jdk openjdk-8-doc openjdk-8-jre-lib (Installs Java 8)

  • sudo apt install ant (Installs Ant)

  • apt-get install google-cloud-sdk (Install Google Cloud Platform SDK)

  • sudo apt-get install google-cloud-sdk-app-engine-java (Installs components for the sdk)

Run the following commands:

  1. git clone https://github.com/mit-cml/appinventor-sources
  2. git submodule update --init
  3. cd appinventor/
  4. ant MakeAuthKey
  5. ant noplay (the noplay argument prevents the building of aiplay app which is known as the companion. Its optional)
  6. java_dev_appserver.sh --port=8888 --address=0.0.0.0 appengine/build/war/
  7. Now open another command prompt
  8. cd appinventor/buildserver/
  9. ant RunLocalBuildServer
  10. Your Appinventor instance is ready in http://localhost:8888

FAQ

  1. Running -- java_dev_appserver --port=8888 --address=0.0.0.0 appengine/build/war/ fails.

Ans) Try running gcloud components install app-engine-java. If this fails then try installing python 2.7

  1. java_dev_appserver command not found

Ans) Make sure Google Cloud SDK is added to path. For example
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin


Any problems? Post it here make sure to post the error log along with it :)

It doesn't work in git bash unless you add .cmd or .sh to the command

Make sure to leave a :heart:

13 Likes

U don't know how good and helpful it is for beginners. Thanks from depth of my heart :heart:

2 Likes

Thanks :slight_smile: @Rudra_Software_Corpo

3 Likes

@ewpatton Did I miss something ?

3 Likes

Does the java dev appserver work in git?

1 Like

@Rudra_Software_Corpo can you elaborate ?


When I run ant or ant noplay I always get the build failed error. Why is this happening? and how to overcome this?

1 Like

Please provide full log

1 Like
E:\appinventor-sources\appinventor>ant
Buildfile: E:\appinventor-sources\appinventor\build.xml

all:

init:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\build\appengine
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build\classes
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\reports
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\reports\raw
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\reports\html

MakeWarLibsDir:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib

common_CommonUtils:

init:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\build\common
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\build
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\build\classes
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\reports
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\reports\raw
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\reports\html

CommonUtils:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\build\classes\CommonUtils
    [javac] Compiling 3 source files to E:\appinventor-sources\appinventor\common\build\classes\CommonUtils
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
    [javac] Creating empty E:\appinventor-sources\appinventor\common\build\classes\CommonUtils\com\google\appinventor\common\utils\package-info.class
      [jar] Building jar: E:\appinventor-sources\appinventor\build\common\CommonUtils.jar
      [jar] Building jar: E:\appinventor-sources\appinventor\build\common\CommonUtils-gwt.jar

common_CommonVersion:

init:

CommonVersion:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\build\classes\CommonVersion
    [mkdir] Created dir: E:\appinventor-sources\appinventor\common\build\src\com\google\appinventor\common\version
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\common\build\src\com\google\appinventor\common\version
    [javac] Compiling 3 source files to E:\appinventor-sources\appinventor\common\build\classes\CommonVersion
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
    [javac] Creating empty E:\appinventor-sources\appinventor\common\build\classes\CommonVersion\com\google\appinventor\common\version\package-info.class
      [jar] Building jar: E:\appinventor-sources\appinventor\build\common\CommonVersion.jar
      [jar] Building jar: E:\appinventor-sources\appinventor\build\common\CommonVersion-gwt.jar

components_CommonConstants:

init:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\build\components
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\reports
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\reports\raw
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\reports\html

CommonConstants:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\CommonConstants
    [javac] Compiling 7 source files to E:\appinventor-sources\appinventor\components\build\classes\CommonConstants
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\CommonConstants\com\google\appinventor\components\common\package-info.class
      [jar] Building jar: E:\appinventor-sources\appinventor\build\components\CommonConstants.jar
      [jar] Building jar: E:\appinventor-sources\appinventor\build\components\CommonConstants-gwt.jar

WarLibs:
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib
     [copy] Copying 11 files to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib

AiSharedLib:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build\classes\AiSharedLib
    [javac] Compiling 78 source files to E:\appinventor-sources\appinventor\appengine\build\classes\AiSharedLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
      [jar] Building jar: E:\appinventor-sources\appinventor\appengine\build\AiSharedLib.jar
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib

AiServerLib:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build\classes\AiServerLib
     [copy] Copying 4 files to E:\appinventor-sources\appinventor\appengine\build\classes\AiServerLib\com\google\appinventor\server
    [javac] Compiling 68 source files to E:\appinventor-sources\appinventor\appengine\build\classes\AiServerLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 warnings
      [jar] Building jar: E:\appinventor-sources\appinventor\appengine\build\AiServerLib.jar
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib

components_AndroidRuntime:

common_CommonVersion:

init:

CommonVersion:

init:

HtmlEntities:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\HtmlEntities
    [javac] Compiling 1 source file to E:\appinventor-sources\appinventor\components\build\classes\HtmlEntities
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
      [jar] Building jar: E:\appinventor-sources\appinventor\components\build\HtmlEntities.jar

Barcode:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\Barcode
    [javac] Compiling 40 source files to E:\appinventor-sources\appinventor\components\build\classes\Barcode
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 warnings
      [jar] Building jar: E:\appinventor-sources\appinventor\build\components\deps\Barcode.jar

CopyComponentLibraries:
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps\armeabi-v7a
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps\arm64-v8a
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps\x86_64
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 59 files to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 2 files to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\build\components\deps

common_CommonUtils:

init:

CommonUtils:

CommonConstants:

AnnotationProcessors:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
    [javac] Compiling 41 source files to E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: E:\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: E:\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 warnings
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\scripts\package-info.class
     [copy] Copying 22 files to E:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
      [jar] Building jar: E:\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

AndroidRuntime.uptodate:

AndroidRuntime:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] Compiling 291 source files to E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: Wrote file file:///E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.json
    [javac] Note: Wrote file file:///E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.txt
    [javac] Note: Wrote file file:///E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components_build_info.json
    [javac] Note: Wrote file file:///E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/AutogeneratedOdeMessages.java
    [javac] Note: Wrote file file:///E:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/ComponentsTranslation.java
    [javac] E:\appinventor-sources\appinventor\components\src\com\google\appinventor\components\runtime\util\NanoHTTPD.java:667: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
    [javac]                                                 matchbytes.addElement(new Integer(matchbyte));
    [javac]                                                                       ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 5 warnings
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\errors\package-info.class
      [jar] Building jar: E:\appinventor-sources\appinventor\build\components\AndroidRuntime.jar
     [copy] Copying 3 files to E:\appinventor-sources\appinventor\build\components
    [mkdir] Created dir: E:\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 2 files to E:\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 11 files to E:\appinventor-sources\appinventor\docs\markdown\reference\components

AiClientLib:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes
    [javac] Compiling 391 source files to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use or override a deprecated API that is marked for removal.
    [javac] Note: Recompile with -Xlint:removal for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\youngandroid\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\commands\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\boxes\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\project\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\palette\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\palette\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\components\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\package-info.class
    [javac] Creating empty E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\properties\package-info.class
     [copy] Copying 1 file to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor
     [copy] Copying 161 files to E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes
     [copy] Copied 15 empty directories to 9 empty directories under E:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes

AiRebindLib:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\appengine\build\classes\AiRebindLib
    [javac] Compiling 1 source file to E:\appinventor-sources\appinventor\appengine\build\classes\AiRebindLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: [options] source value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 7 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
      [jar] Building jar: E:\appinventor-sources\appinventor\appengine\build\AiRebindLib.jar

blocklyeditor_BlocklyTranslationGenerator:

CheckBlocklyTranslations:

init:
    [mkdir] Created dir: E:\appinventor-sources\appinventor\build\blocklyeditor
    [mkdir] Created dir: E:\appinventor-sources\appinventor\blocklyeditor\build
    [mkdir] Created dir: E:\appinventor-sources\appinventor\blocklyeditor\build\classes
    [mkdir] Created dir: E:\appinventor-sources\appinventor\blocklyeditor\reports
    [mkdir] Created dir: E:\appinventor-sources\appinventor\blocklyeditor\reports\raw
    [mkdir] Created dir: E:\appinventor-sources\appinventor\blocklyeditor\reports\html

CheckBlocklyCompile:

BlocklyCompile:
     [java] Exception in thread "main" java.lang.ExceptionInInitializerError
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:58)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:31)
     [java]     at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
     [java]     at org.plovr.cli.Command.execute(Command.java:47)
     [java]     at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
     [java]     at org.plovr.cli.Main.main(Main.java:30)
     [java] Caused by: com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
     [java]     at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
     [java]     at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:49)
     [java]     at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:125)
     [java]     at com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:507)
     [java]     at com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:159)
     [java]     at com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
     [java]     at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:122)
     [java]     at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:95)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:72)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:62)
     [java]     at com.google.template.soy.GuiceInitializer.initializeIfNecessary(GuiceInitializer.java:55)
     [java]     at com.google.template.soy.SoyFileSet$Builder.<init>(SoyFileSet.java:141)
     [java]     at com.google.template.soy.SoyFileSet$Builder.<init>(SoyFileSet.java:125)
     [java]     at org.plovr.CompileRequestHandler.<clinit>(CompileRequestHandler.java:33)
     [java]     ... 6 more
     [java] Caused by: java.lang.ExceptionInInitializerError
     [java]     at com.google.inject.internal.cglib.reflect.$FastClassEmitter.<init>(FastClassEmitter.java:67)
     [java]     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72)
     [java]     at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
     [java]     at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216)
     [java]     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64)
     [java]     at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:207)
     [java]     at com.google.inject.internal.DefaultConstructionProxyFactory.create(DefaultConstructionProxyFactory.java:53)
     [java]     at com.google.inject.internal.ProxyFactory.create(ProxyFactory.java:153)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:89)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:28)
     [java]     at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:36)
     [java]     at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:32)
     [java]     at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
     [java]     ... 23 more
     [java] Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5d22bbb7
     [java]     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
     [java]     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
     [java]     at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
     [java]     at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
     [java]     at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
     [java]     at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
     [java]     at com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46)
     [java]     ... 37 more

BUILD FAILED
E:\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
E:\appinventor-sources\appinventor\build-common.xml:299: The following error occurred while executing this line:
E:\appinventor-sources\appinventor\blocklyeditor\build.xml:118: Java returned: 1

Total time: 24 seconds
1 Like

@Satzd68 did you run
git submodule update --init

Yes i did.

1 Like

I did not see this error before...
can you try whitelisting appinventor directory from your appinventor directory

1 Like

How to do that one?

Do you have any antivirus software ?

1 Like

Yes i actually Disabled it. after i got the ant error. then again tried ant still got this error.

1 Like

After disabling
run git submodule update --init

1 Like

I still get this.

E:\appinventor-sources\appinventor>git submodule update --init

E:\appinventor-sources\appinventor>ant
Buildfile: E:\appinventor-sources\appinventor\build.xml

all:

init:

MakeWarLibsDir:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

components_CommonConstants:

init:

CommonConstants:

WarLibs:

AiSharedLib:

AiServerLib:

components_AndroidRuntime:

common_CommonVersion:

init:

CommonVersion:

init:

HtmlEntities:

Barcode:

CopyComponentLibraries:

common_CommonUtils:

init:

CommonUtils:

CommonConstants:

AnnotationProcessors:

AndroidRuntime.uptodate:

AndroidRuntime:

AiClientLib:

AiRebindLib:

blocklyeditor_BlocklyTranslationGenerator:

CheckBlocklyTranslations:

init:

CheckBlocklyCompile:

BlocklyCompile:
     [java] Exception in thread "main" java.lang.ExceptionInInitializerError
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:58)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:31)
     [java]     at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
     [java]     at org.plovr.cli.Command.execute(Command.java:47)
     [java]     at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
     [java]     at org.plovr.cli.Main.main(Main.java:30)
     [java] Caused by: com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
     [java]     at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
     [java]     at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:49)
     [java]     at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:125)
     [java]     at com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:507)
     [java]     at com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:159)
     [java]     at com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
     [java]     at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:122)
     [java]     at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:95)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:72)
     [java]     at com.google.inject.Guice.createInjector(Guice.java:62)
     [java]     at com.google.template.soy.GuiceInitializer.initializeIfNecessary(GuiceInitializer.java:55)
     [java]     at com.google.template.soy.SoyFileSet$Builder.<init>(SoyFileSet.java:141)
     [java]     at com.google.template.soy.SoyFileSet$Builder.<init>(SoyFileSet.java:125)
     [java]     at org.plovr.CompileRequestHandler.<clinit>(CompileRequestHandler.java:33)
     [java]     ... 6 more
     [java] Caused by: java.lang.ExceptionInInitializerError
     [java]     at com.google.inject.internal.cglib.reflect.$FastClassEmitter.<init>(FastClassEmitter.java:67)
     [java]     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72)
     [java]     at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
     [java]     at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216)
     [java]     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64)
     [java]     at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:207)
     [java]     at com.google.inject.internal.DefaultConstructionProxyFactory.create(DefaultConstructionProxyFactory.java:53)
     [java]     at com.google.inject.internal.ProxyFactory.create(ProxyFactory.java:153)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:89)
     [java]     at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:28)
     [java]     at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:36)
     [java]     at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:32)
     [java]     at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
     [java]     at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
     [java]     ... 23 more
     [java] Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5d22bbb7
     [java]     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
     [java]     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
     [java]     at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
     [java]     at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
     [java]     at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
     [java]     at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
     [java]     at com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46)
     [java]     ... 37 more

BUILD FAILED
E:\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
E:\appinventor-sources\appinventor\build-common.xml:299: The following error occurred while executing this line:
E:\appinventor-sources\appinventor\blocklyeditor\build.xml:118: Java returned: 1

Total time: 10 seconds

I think @ewpatton can help ?

Ok sure Thanks for your help @Pradevel

@ewpatton Can you help me on this?

1 Like

He is asking if java_dev_appserver command works on git bash or not