hello
i am a newbee and i want your help, i want to configure my intellij FOR editing java extensions...
my question is how i can do for this kind of imports :
ah sorry ... yes i am using the App Inventor Open Source. (ant extensions).
but i i am editing the java file with intellij and i want that intellij do the autocompletion for all methods for this imports .
Blockquote
javac:
[javac] Compiling 471 source files to D:\App inventor Ext creat\my-extension\build\classes
[javac] D:\App inventor Ext creat\my-extension\src\com\google\appinventor\components\runtime\util\OlsTrendLine.java:13: error: package org.apache.commons.math3.linear does not exist
[javac] import org.apache.commons.math3.linear.MatrixUtils;
[javac] ^
[javac] D:\App inventor Ext creat\my-extension\src\com\google\appinventor\components\runtime\util\OlsTrendLine.java:14: error: package org.apache.commons.math3.linear does not exist
[javac] import org.apache.commons.math3.linear.RealMatrix;
[javac] ^
[javac] D:\App inventor Ext creat\my-extension\src\com\google\appinventor\components\runtime\util\OlsTrendLine.java:15: error: package org.apache.commons.math3.stat.regression does not exist
[javac] import org.apache.commons.math3.stat.regression.OLSMultipleLinearRegression;
[javac] ^
[javac] warning: Supported source version 'RELEASE_7' from annotation processor 'com.google.appinventor.components.scripts.ComponentDescriptorGenerator' less than -source '1.8'
[javac] error: cannot access CurlExtension
[javac] bad source file: D:\App inventor Ext creat\my-extension\src\com\google\appinventor\components\runtime\CurlExtension.java
[javac] file does not contain class com.google.appinventor.components.runtime.CurlExtension
[javac] Please remove or make sure it appears in the correct subdirectory of the sourcepath.
[javac] warning: Supported source version 'RELEASE_7' from annotation processor 'com.google.appinventor.components.scripts.ComponentListGenerator' less than -source '1.8'
[javac]
[javac]
[javac] An annotation processor threw an uncaught exception.
[javac] Consult the following stack trace for details.
[javac] java.lang.EnumConstantNotPresentException: com.google.appinventor.components.annotations.PropertyCategory.GENERAL
[javac] at sun.reflect.annotation.EnumConstantNotPresentExceptionProxy.generateException(EnumConstantNotPresentExceptionProxy.java:46)
[javac] at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:84)
[javac] at com.sun.proxy.$Proxy6.category(Unknown Source)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.executableElementToProperty(ComponentProcessor.java:1926)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.processProperties(ComponentProcessor.java:2540)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.processComponent(ComponentProcessor.java:1869)
[javac] at com.google.appinventor.components.scripts.ComponentProcessor.process(ComponentProcessor.java:1551)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
[javac] at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
[javac] at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
[javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:523)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:381)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:370)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:361)
[javac] at com.sun.tools.javac.Main.compile(Main.java:56)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javac] at java.lang.reflect.Method.invoke(Method.java:498)
[javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57)
[javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1352)
[javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1092)
[javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[javac] at java.lang.reflect.Method.invoke(Method.java:498)
[javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[javac] at org.apache.tools.ant.Task.perform(Task.java:350)
[javac] at org.apache.tools.ant.Target.execute(Target.java:449)
[javac] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[javac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
[javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
[javac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
[javac] at org.apache.tools.ant.Main.runBuild(Main.java:818)
[javac] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
BUILD FAILED
D:\App inventor Ext creat\my-extension\build.xml:49: Compile failed; see the compiler error output for details.
Copy the xml and create a .classpath file into your project root directory and paste the copied xml inside the file. If you want to add new dependencies so just make a new line at the end and set the path of the new jar.