after modifier src/main/java/com/example/App.java, i use command $ mvn compile
it give me following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project myHellopApp: Compilation failure: Compilation failure:
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[56,21] package org.nanohttpd does not exist
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[58,26] cannot find symbol
[ERROR] symbol: class NanoHTTPD
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[75,27] cannot find symbol
[ERROR] symbol: class IHTTPSession
[ERROR] location: class com.example.App
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[75,12] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class com.example.App
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[62,15] cannot find symbol
[ERROR] symbol: variable NanoHTTPD
[ERROR] location: class com.example.App
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[74,5] method does not override or implement a method from a supertype
[ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[83,16] cannot find symbol
[ERROR] symbol: method newFixedLengthResponse(java.lang.String)
[ERROR] location: class com.example.App
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
the problem is that i can't import correct packages, I've try to use import org.nanohttpd.* but it didn't work.
and i could see the NanoHTTPD.java at nanohttpd/core/src/main/java/org/nanohttpd/protocols/http/NanoHTTPD.java. could you please give me some advises?
after modifier src/main/java/com/example/App.java, i use command $ mvn compile
it give me following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project myHellopApp: Compilation failure: Compilation failure: [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[56,21] package org.nanohttpd does not exist [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[58,26] cannot find symbol [ERROR] symbol: class NanoHTTPD [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[75,27] cannot find symbol [ERROR] symbol: class IHTTPSession [ERROR] location: class com.example.App [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[75,12] cannot find symbol [ERROR] symbol: class Response [ERROR] location: class com.example.App [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[62,15] cannot find symbol [ERROR] symbol: variable NanoHTTPD [ERROR] location: class com.example.App [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[74,5] method does not override or implement a method from a supertype [ERROR] /home/charles/workspace/advanced_database/nanohttpd/myHellopApp/src/main/java/com/example/App.java:[83,16] cannot find symbol [ERROR] symbol: method newFixedLengthResponse(java.lang.String) [ERROR] location: class com.example.App [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
the problem is that i can't import correct packages, I've try to use import org.nanohttpd.* but it didn't work. and i could see the NanoHTTPD.java at nanohttpd/core/src/main/java/org/nanohttpd/protocols/http/NanoHTTPD.java. could you please give me some advises?