Appinventor and linux fedora 22

132 views
Skip to first unread message

Edson Oliveira

unread,
Jun 6, 2015, 7:36:01 PM6/6/15
to app-inventor-o...@googlegroups.com
Today i am open a fork in github and get a clone to my computer with linux fedora 22.

I can´t understand how compile and use localy for change the fonts.

My think about the chanches are translate do Brazilian Portuguese ( not the commands, of course) and create a index B-tree to use with Tiny and TinyWeb.

Can anyone help me?

Edson

Jos Flores

unread,
Jun 7, 2015, 5:41:38 AM6/7/15
to app-inventor-open-source-dev
There are linux instructions in the docs:
https://docs.google.com/document/pub?id=1Xc9yt02x3BRoq5m1PJHBr81OOv69rEBy8LVG_84j9jc

Note that translations are generally managed through this server:
http://pootle.appinventor.mit.edu/
There's a good chunk already translated into Portuguese.

To make changes to components, you can follow the guides in here:
http://appinventor.mit.edu/appinventor-sources/#documentation

cheers,
José
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

Edson Oliveira

unread,
Jun 7, 2015, 11:01:38 AM6/7/15
to app-inventor-o...@googlegroups.com
I have a fork and in my computer i have some external files translated to submit.

In the system and interface, properly, i will don´t write anything until run localy.

Now, runing the (ant) command, have 4 important error messages to resolve, until go on to other possible errors:
/home/Edson/Área de trabalho/Ai2u/appinventor-sources-PtBr/appinventor/build.xml:16: The following error occurred while executing this line:
/home/Edson/Área de trabalho/Ai2u/appinventor-sources-PtBr/appinventor/build-common.xml:409: The following error occurred while executing this line:
/home/Edson/Área de trabalho/Ai2u/appinventor-sources-PtBr/appinventor/components/build.xml:319: The following error occurred while executing this line:
/home/Edson/Área de trabalho/Ai2u/appinventor-sources-PtBr/appinventor/components/build.xml:214: Compile failed; see the compiler error output for details.




Em domingo, 7 de junho de 2015 06:41:38 UTC-3, Jos escreveu:
There are linux instructions in the docs:
https://docs.google.com/document/pub?id=1Xc9yt02x3BRoq5m1PJHBr81OOv69rEBy8LVG_84j9jc

Note that translations are generally managed through this server:
http://pootle.appinventor.mit.edu/
There's a good chunk already translated into Portuguese.

To make changes to components, you can follow the guides in here:
http://appinventor.mit.edu/appinventor-sources/#documentation

cheers,
José



On 7 June 2015 at 00:36, Edson Oliveira <elo.app...@gmail.com> wrote:
> Today i am open a fork in github and get a clone to my computer with linux
> fedora 22.
>
> I can´t understand how compile and use localy for change the fonts.
>
> My think about the chanches are translate do Brazilian Portuguese ( not the
> commands, of course) and create a index B-tree to use with Tiny and TinyWeb.
>
> Can anyone help me?
>
> Edson
>
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Jos Flores

unread,
Jun 7, 2015, 11:07:27 AM6/7/15
to app-inventor-open-source-dev
I'm not clear you haven't modified any code, but something for you to
try could be to place your sources in a folder with no spaces in the
name (like 'Área de trabalho'). Java and spaces in folder names don't
go along together, generally.

cheers,
José
>> > email to app-inventor-open-so...@googlegroups.com.
>> > To post to this group, send email to
>> > app-inventor-o...@googlegroups.com.
>> > Visit this group at
>> > http://groups.google.com/group/app-inventor-open-source-dev.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-so...@googlegroups.com.

Edson Oliveira

unread,
Jun 9, 2015, 5:31:51 PM6/9/15
to app-inventor-o...@googlegroups.com
Hello, good night!

I moved the app source for my home and root ran the ant.

Construction was much further but has many messages and I know that is not ok.

Lock steps
1) java: java-1.8.0-openjdk-1.8.0.45-39.b14.fc21.x86_64
2) ant: ant-junit-1.9.4-3.fc21.noarch and all package
3) source: from github yesterday
4) source directory: /home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/
5) appengine: appengine-java-sdk-1.9.21
6) appengine directory: /home/Edson/Ai2u/
appengine-java-sdk-1.9.21/bin
7) in source directory run:
$ ant clear
$ ant
... error in buil
$ /home/Edson/Ai2u/appengine-java-sdk-1.9.21/bin/dev_appserver.sh --port=8888 --address=0.0.0.0 /home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/appengine/build/war/
... do not run

Edson Oliveira

unread,
Jun 9, 2015, 5:38:47 PM6/9/15
to app-inventor-o...@googlegroups.com
--- exception and others errors in the ant run
Buildfile: /home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/build.xml
(beneath is one in each line)
all: ... init:
... MakeWarLibsDir: ... common_BlocksEditorHttpConstants:... init:... BlocksEditorHttpConstants:
common_CommonUtils: ... init: ... CommonUtils: ... common_CommonVersion: ... init: ... CommonVersion:
components_CommonConstants: ... init: ... CommonConstants: ... WarLibs: ... AiSharedLib: ... AiServerLib:
components_JsonComponentDescription: ... init: ... CommonConstants: ... ComponentProcessingLib:
... HtmlEntities: ... common_CommonUtils: ... init: ... CommonUtils:
AnnotationProcessors:
      [jar] Building jar: /home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/components/build/AnnotationProcessors.jar
common_CommonVersion:
(beneath is one in each line)
init:
... CommonVersion: ... AndroidRuntime: ... JsonComponentDescription: ... components_ComponentTranslation:
init: ... CommonConstants: ... ComponentProcessingLib: ... HtmlEntities: ... common_CommonUtils: ... init: ... CommonUtils:
AnnotationProcessors:
      [jar] Building jar: /home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/components/build/AnnotationProcessors.jar
common_CommonVersion:
(beneath is one in each line)
init:
... CommonVersion: ... AndroidRuntime: ... ComponentTranslation: ... AiClientLib: ... AiRebindLib:
GenerateGuid1:
[generateguid] jun 09, 2015 6:27:32 PM org.apache.bsf.BSFManager loadScriptingEngine
[generateguid] GRAVE: Exception :
[generateguid] java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable
[generateguid]     at java.lang.Class.getDeclaredConstructors0(Native Method)
[generateguid]     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
[generateguid]     at java.lang.Class.getConstructor0(Class.java:3075)
[generateguid]     at java.lang.Class.newInstance(Class.java:412)
[generateguid]     at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:697)
[generateguid]     at org.apache.bsf.BSFManager.exec(BSFManager.java:485)
[generateguid]     at org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:100)
[generateguid]     at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(ScriptDef.java:350)
[generateguid]     at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
[generateguid]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[generateguid]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[generateguid]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[generateguid]     at java.lang.reflect.Method.invoke(Method.java:497)
[generateguid]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[generateguid]     at org.apache.tools.ant.Task.perform(Task.java:348)
[generateguid]     at org.apache.tools.ant.Target.execute(Target.java:435)
[generateguid]     at org.apache.tools.ant.Target.performTasks(Target.java:456)
[generateguid]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[generateguid]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[generateguid]     at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[generateguid]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
[generateguid]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[generateguid]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[generateguid]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[generateguid]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[generateguid]     at java.lang.reflect.Method.invoke(Method.java:497)
[generateguid]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[generateguid]     at org.apache.tools.ant.Task.perform(Task.java:348)
[generateguid]     at org.apache.tools.ant.Target.execute(Target.java:435)
[generateguid]     at org.apache.tools.ant.Target.performTasks(Target.java:456)
[generateguid]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[generateguid]     at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[generateguid]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[generateguid]     at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[generateguid]     at org.apache.tools.ant.Main.runBuild(Main.java:851)
[generateguid]     at org.apache.tools.ant.Main.startAnt(Main.java:235)
[generateguid]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[generateguid]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[generateguid] Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.Scriptable
[generateguid]     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[generateguid]     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[generateguid]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[generateguid]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[generateguid]     ... 38 more
[generateguid]

BUILD FAILED
/home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/build.xml:16: The following error occurred while executing this line:
/home/Edson/Ai2u/appinventor-sources-PtBr/appinventor/appengine/build.xml:68: java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
    at java.lang.Class.getConstructor0(Class.java:3075)
    at java.lang.Class.newInstance(Class.java:412)
    at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:697)
    at org.apache.bsf.BSFManager.exec(BSFManager.java:485)
    at org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:100)
    at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(ScriptDef.java:350)
    at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    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:497)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.Scriptable
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 38 more
Total time: 8 seconds

Edson Oliveira

unread,
Jun 9, 2015, 7:03:32 PM6/9/15
to app-inventor-o...@googlegroups.com
The problem is also when building.
I get a version of Ai2LiveComplete by Hossein and ir run all clean.

Jos Flores

unread,
Jun 10, 2015, 5:01:09 AM6/10/15
to app-inventor-open-source-dev
The issue seems to be with OpenJDK support for JavaScript:
java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable

We've seen similar things before with OpenJDK that were only fixed by
using a different version of the OpenJDK, or moving to Oracle JDK.

The fact that AI2LiveComplete works might be because it does not
include the caching changes that use the Scriptable JS interface...
Hossein may be able to clarify that.

cheers,
José



On 10 June 2015 at 00:03, Edson Oliveira <elo.app...@gmail.com> wrote:
> The problem is also when building.
> I get a version of Ai2LiveComplete by Hossein and ir run all clean.
>
Reply all
Reply to author
Forward
0 new messages