But
While running ant command, My Build Log
Harish@SRIKAR MINGW64 /e/srikar/Funmora_Builder/appinventor (master)
$ ant
Buildfile: E:\srikar\Funmora_Builder\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:
BlocklyTranslationGenerator:
CheckDocs:
BuildDocs:
[exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "E:\srikar\Funmora_Builder\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 "E:\srikar\Funmora_Builder\appinventor\docs\markdown"): CreateProcess error=2, The system cannot find the file specified
CopyToBuildWar:
[copy] Copying 465 files to E:\srikar\Funmora_Builder\appinventor\appengine\build\war
[copy] Copying 8 files to E:\srikar\Funmora_Builder\appinventor\appengine\build\war\static\css
[mkdir] Created dir: E:\srikar\Funmora_Builder\appinventor\appengine\build\war\static\media
[copy] Copying 28 files to E:\srikar\Funmora_Builder\appinventor\appengine\build\war\static\media
[copy] Copying 1 file to E:\srikar\Funmora_Builder\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid
[copy] Copying 17 files to E:\srikar\Funmora_Builder\appinventor\appengine\build\war\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\i18n
[copy] Copying 6 files to E:\srikar\Funmora_Builder\appinventor\appengine\build\war\static
[copy] Copying 27 files to E:\srikar\Funmora_Builder\appinventor\appengine\build\war\static
CheckYaClientApp:
YaClientApp:
[mkdir] Created dir: E:\srikar\Funmora_Builder\appinventor\appengine\build\extra
[java] Error occurred during initialization of VM
[java] Could not reserve enough space for 2097152KB object heap
BUILD FAILED
E:\srikar\Funmora_Builder\appinventor\build.xml:16: The following error occurred while executing this line:
E:\srikar\Funmora_Builder\appinventor\appengine\build.xml:581: Java returned: 1
Total time: 11 seconds
You don't have enough RAM allocated to build Appinventor, it seems. Compiling the Appengine server specifically requires a minimum of 2-4 GB Ram to build correctly.
How much ram do you have?
3 Likes
Well, I am giving full info
16 GB Ram
Windows 10
512GB Storage
If your device have an enough free memory to start the java VM, which is at least 2GB, you might have the _JAVA_OPTIONS environment variable set to a value that is less than 2GB ram, sometimes you also could experience this problem if you use a 32-bit JVM, try to switch to 64 bit JVM in that case.
4 Likes
Sorry, I am trying to understand you, but I cannot.
That's the problem.
Everyone is thinking that you will understand somehow but you don't unfortunately.
Though I was nowhere in the thread and neither I would like to spend my time reading the complete thread so just delete the sources, clone again and then do what have been mentioned in Readme file.
11 Likes
I proposed the same an hour ago
10 Likes
But in the readme.md file it completely different.
But, I found that this is what we are doing
@vknow360 I am following the way said in readme.md
at this Forking Or Cloning
And also following guide
https://josmas.github.io/contributingToAppInventor2/
See what TIM has suggested in #60 ,
But even in #200, you haven't removed the spaces ...
How to believe that you are following the guide correctly?
I'll suggest you to do this correctly even after I know my suggestion will be ignored
5 Likes
I am following the way said in readme.md
at this Forking Or Cloning
Should I follow any other way?
Afroz Ahmad@LAPTOP-1G90T038 MINGW64 ~/Desktop/appinventor-sources/appinventor (master)
$ ant
Buildfile: C:\Users\Afroz Ahmad\Desktop\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:
BlocklyTranslationGenerator:
BUILD FAILED
C:\Users\Afroz Ahmad\Desktop\appinventor-sources\appinventor\build.xml:16: The following error occurred while executing this line:
C:\Users\Afroz Ahmad\Desktop\appinventor-sources\appinventor\build-common.xml:299: The following error occurred while executing this line:
C:\Users\Afroz Ahmad\Desktop\appinventor-sources\appinventor\blocklyeditor\build.xml:95: java.nio.file.NoSuchFileException: Ahmad\Desktop\appinventor-sources\appinventor\blocklyeditor\src\msg\ai_blockly\en.json
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.Files.readAllBytes(Files.java:3152)
at msg.BlocklyTranslationGenerator.main(BlocklyTranslationGenerator.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:218)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.Main.runBuild(Main.java:818)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Total time: 12 seconds
This topic goes so long please anyone give solution
@ewpatton help us we need your help
Have you whitelisted the appinventor directory in antivirus ?
2 Likes
Means what @dora_paz
I do not understand
Means did you turn-off your anti-virus ?
1 Like
Instead of temporarily disable antivirus, try to whitelist appinventor folder
4 Likes
@dora_paz still same error I have added folder of appinventor sources in exclution
1 Like