I tried to build app inventor extension on windows But failed help

I tried to build extension with extension template but faild
showing this log

$ ant
Buildfile: D:\AIX Creator\extension-template\build.xml

javac:
[javac] Compiling 1 source file to D:\AIX Creator\extension-template\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] D:\AIX Creator\extension-template\src\com\creator\ptg.java:27: error: class Pitagoras is public, should be declared in a file named Pitagoras.java
[javac] public class Pitagoras extends AndroidNonvisibleComponent implements Component {
[javac] ^
[javac] 1 error
[javac] 1 warning

BUILD FAILED
D:\AIX Creator\extension-template\build.xml:29: Compile failed; see the compiler error output for details.

Total time: 0 seconds
Picked up _JAVA_OPTIONS: -Xmx1024m

1 Like

Rename your java file to Pitagoras.java and try again.

5 Likes

$ ant all
Buildfile: D:\AIX Creator\extension-template\build.xml

javac:
[javac] Compiling 1 source file to D:\AIX Creator\extension-template\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] D:\AIX Creator\extension-template\src\com\creator\ptg.java:48: error: reached end of file while parsing
[javac] }
[javac] ^
[javac] 1 error
[javac] 1 warning

BUILD FAILED
D:\AIX Creator\extension-template\build.xml:29: Compile failed; see the compiler error output for details.

Total time: 0 seconds
Picked up _JAVA_OPTIONS: -Xmx1024m

1 Like

Try this command:

ant extensions
2 Likes