cmusphinx / sphinx4

Pure Java speech recognition library
cmusphinx.sourceforge.net
Other
1.4k stars 587 forks source link

can't build sphinx with mvn #19

Closed HParker closed 9 years ago

HParker commented 9 years ago

Sorry having trouble figuring out what I am doing wrong.

mvn clean package
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
javac: invalid target release: 1.7
Usage: javac <options> <source files>
use -help for a list of possible options

[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Sphinx4 ........................................... SUCCESS [1.081s]
[INFO] Sphinx4 models .................................... SUCCESS [7.561s]
[INFO] Sphinx4 core ...................................... FAILURE [0.154s]
[INFO] Sphinx4 demo applications ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.968s
[INFO] Finished at: Thu Jan 22 15:37:15 PST 2015
[INFO] Final Memory: 10M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sphinx4-core: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] javac: invalid target release: 1.7
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :sphinx4-core

If there is a better place to ask let me know.

Thanks!

nshmyrev commented 9 years ago

You need java7 or java8, java6 is not going to work.

HParker commented 9 years ago

@nshmyrev I believe I have java 7 installed. If there is something I am missing if you could let me know that would be great thank you!

➜  sphinx4 git:(master) ✗ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
➜  sphinx4 git:(master) ✗ javac -version
javac 1.7.0_75
nshmyrev commented 9 years ago

Probably you do not have JAVA_HOME properly set. See for details

http://stackoverflow.com/questions/19891423/invalid-target-release-1-7

HParker commented 9 years ago

Thank you! Sorry for my configuration issues.