When Compiled I get Errors


After following these four steps.

Then I compiled by using these inputs

Finally I got this one.

first of all what you are compiling?

I am trying to follow the steps given here. https://github.com/mit-cml/appinventor-sources. Also I am trying to replicate the app inventor. Any Suggestions

1 Like

Follow these steps:

  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
1 Like

my build fails when i do that

how to do this?

How does it fail?

91942@LAPTOP-6UUDPKB0 MINGW64 /c/appinventor-sources/appinventor (master)
$ ant noplay
Picked up _JAVA_OPTIONS: -Xmx2048M
Buildfile: C:\appinventor-sources\appinventor\build.xml

noplay:

init:

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

common_CommonUtils:

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

CommonUtils:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\common\build\classes\CommonUtils
    [javac] Compiling 3 source files to C:\appinventor-sources\appinventor\common\build\classes\CommonUtils
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
    [javac] Creating empty C:\appinventor-sources\appinventor\common\build\classes\CommonUtils\com\google\appinventor\common\utils\package-info.class
      [jar] Building jar: C:\appinventor-sources\appinventor\build\common\CommonUtils.jar
      [jar] Building jar: C:\appinventor-sources\appinventor\build\common\CommonUtils-gwt.jar

common_CommonVersion:

init:

CommonVersion:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\common\build\classes\CommonVersion
    [mkdir] Created dir: C:\appinventor-sources\appinventor\common\build\src\com\google\appinventor\common\version
     [copy] Copying 1 file to C:\appinventor-sources\appinventor\common\build\src\com\google\appinventor\common\version
    [javac] Compiling 3 source files to C:\appinventor-sources\appinventor\common\build\classes\CommonVersion
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
    [javac] Creating empty C:\appinventor-sources\appinventor\common\build\classes\CommonVersion\com\google\appinventor\common\version\package-info.class
      [jar] Building jar: C:\appinventor-sources\appinventor\build\common\CommonVersion.jar
      [jar] Building jar: C:\appinventor-sources\appinventor\build\common\CommonVersion-gwt.jar

components_CommonConstants:

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

CommonConstants:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\components\build\classes\CommonConstants
    [javac] Compiling 7 source files to C:\appinventor-sources\appinventor\components\build\classes\CommonConstants
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\CommonConstants\com\google\appinventor\components\common\package-info.class
      [jar] Building jar: C:\appinventor-sources\appinventor\build\components\CommonConstants.jar
      [jar] Building jar: C:\appinventor-sources\appinventor\build\components\CommonConstants-gwt.jar

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

AiSharedLib:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\appengine\build\classes\AiSharedLib
    [javac] Compiling 78 source files to C:\appinventor-sources\appinventor\appengine\build\classes\AiSharedLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
      [jar] Building jar: C:\appinventor-sources\appinventor\appengine\build\AiSharedLib.jar
     [copy] Copying 1 file to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib

AiServerLib:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\appengine\build\classes\AiServerLib
     [copy] Copying 4 files to C:\appinventor-sources\appinventor\appengine\build\classes\AiServerLib\com\google\appinventor\server
    [javac] Compiling 68 source files to C:\appinventor-sources\appinventor\appengine\build\classes\AiServerLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [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.
      [jar] Building jar: C:\appinventor-sources\appinventor\appengine\build\AiServerLib.jar
     [copy] Copying 1 file to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\lib

components_AndroidRuntime:

common_CommonVersion:

init:

CommonVersion:

init:

HtmlEntities:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\components\build\classes\HtmlEntities
    [javac] Compiling 1 source file to C:\appinventor-sources\appinventor\components\build\classes\HtmlEntities
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
      [jar] Building jar: C:\appinventor-sources\appinventor\components\build\HtmlEntities.jar

Barcode:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\components\build\classes\Barcode
    [javac] Compiling 40 source files to C:\appinventor-sources\appinventor\components\build\classes\Barcode
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [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] 1 warning
      [jar] Building jar: C:\appinventor-sources\appinventor\build\components\deps\Barcode.jar

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

common_CommonUtils:

init:

CommonUtils:

CommonConstants:

AnnotationProcessors:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
    [javac] Compiling 41 source files to C:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] Note: C:\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: C:\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] 1 warning
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\annotations\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\scripts\package-info.class
     [copy] Copying 22 files to C:\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
      [jar] Building jar: C:\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

AndroidRuntime.uptodate:

AndroidRuntime:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] Compiling 291 source files to C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] Note: Wrote file file:/C:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.json
    [javac] Note: Wrote file file:/C:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.txt
    [javac] Note: Wrote file file:/C:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components_build_info.json
    [javac] Note: Wrote file file:/C:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/AutogeneratedOdeMessages.java
    [javac] Note: Wrote file file:/C:/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/ComponentsTranslation.java
    [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] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\errors\package-info.class
      [jar] Building jar: C:\appinventor-sources\appinventor\build\components\AndroidRuntime.jar
     [copy] Copying 3 files to C:\appinventor-sources\appinventor\build\components
    [mkdir] Created dir: C:\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 2 files to C:\appinventor-sources\appinventor\build\components\ComponentTranslation\src\com\google\appinventor\client
     [copy] Copying 11 files to C:\appinventor-sources\appinventor\docs\markdown\reference\components

AiClientLib:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes
    [javac] Compiling 391 source files to C:\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 unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\youngandroid\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\commands\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\boxes\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\project\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\explorer\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\palette\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\palette\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\components\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\simple\package-info.class
    [javac] Creating empty C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\properties\package-info.class
     [copy] Copying 1 file to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor
     [copy] Copying 161 files to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes
     [copy] Copied 15 empty directories to 9 empty directories under C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes

AiRebindLib:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\appengine\build\classes\AiRebindLib
    [javac] Compiling 1 source file to C:\appinventor-sources\appinventor\appengine\build\classes\AiRebindLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning
      [jar] Building jar: C:\appinventor-sources\appinventor\appengine\build\AiRebindLib.jar

blocklyeditor_BlocklyTranslationGenerator:

CheckBlocklyTranslations:

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

CheckBlocklyCompile:

BlocklyCompile:
     [java] Picked up _JAVA_OPTIONS: -Xmx2048M

BlocklyTranslationGenerator:
    [mkdir] Created dir: C:\appinventor-sources\appinventor\blocklyeditor\build\classes\BlocklyTranslator-classes
    [mkdir] Created dir: C:\appinventor-sources\appinventor\build\blocklyeditor\msg
    [javac] Compiling 1 source file to C:\appinventor-sources\appinventor\blocklyeditor\build\classes\BlocklyTranslator-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning

CheckDocs:

BuildDocs:
     [exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "C:\appinventor-sources\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified
     [exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "C:\appinventor-sources\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified

CopyToBuildWar:
     [copy] Copying 457 files to C:\appinventor-sources\appinventor\appengine\build\war
     [copy] Copying 8 files to C:\appinventor-sources\appinventor\appengine\build\war\static\css
    [mkdir] Created dir: C:\appinventor-sources\appinventor\appengine\build\war\static\media
     [copy] Copying 28 files to C:\appinventor-sources\appinventor\appengine\build\war\static\media

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.

Total time: 25 seconds

Try to just run ant and see if it builds correctly. It could be a bug in the build system because the BlocklyCompile step produces blockly-all.js, but it isn't failing at that step so in theory that file should exist at that point.

1 Like

ant also causes error -

$ ant
Picked up _JAVA_OPTIONS: -Xmx2048M
Buildfile: C:\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] Picked up _JAVA_OPTIONS: -Xmx2048M

BlocklyTranslationGenerator:

CheckDocs:

BuildDocs:
     [exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "C:\appinventor-sources\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified
     [exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "C:\appinventor-sources\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified

CopyToBuildWar:
     [copy] Copying 1 file to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid
Attempt to copy C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\blockly.js using NIO Channels failed due to 'C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js'.  Falling back to streams.

BUILD FAILED
C:\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
C:\appinventor-sources\appinventor\appengine\build.xml:173: Failed to copy C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js to C:\appinventor-sources\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\blockly.js due to java.nio.file.AccessDeniedException C:\appinventor-sources\appinventor\build\blocklyeditor\blockly-all.js

Total time: 9 seconds

Have you changed any files, and are all of those directories writable?

nope

i dont know? :thinking:

well the main thing is that the blockly-all.js does not exists

Correct. It is built by the BlocklyCompile step, which appears in your output and doesn't indicate an error (otherwise the build would have stopped there). That's why I am wondering what the writable state of the build directories are and whether Windows is silently failing to write the file.

so what is the solution for it?

My preferred solution is to not use Windows...

You should verify that you own all of those directories and that you have write permissions for every directory, and that you are running the shell as your own user and not as an administrator.

1 Like

ok now i used powershell it worked but my antivirus software showed this - image

Well there's your problem...

is there any virus in it because antivirus software is deleting it everytime

No. Virus checking is a heuristic, and it's wrong. If you trust the antivirus software over the fact that you're building the source yourself, then I'd recommend you stop here and remove the sources from your computer.

2 Likes

ok thanks for help