but there's a step that's impossible (at least with eclipse 3.1, I'm downloading 3.2 but I don't expect it to be different).
Under "Setup the JDK compliance level of the Java Compiler to 1.4" it says "Make sure that Disallow identifiers called 'assert' under JDK Compliance is set to Warning." but I can't do this.
If I set source compatability to 1.3, change asser to warning and put source compatability back to 1.4 assert gets automatically put back to error and is greyed out so I can't change it.
I suspect this is where all the compiler errors are coming from. I tried ignoring it in hopes that the ant build script would manage to avoid anything broken but when I ran it I got:
Buildfile: C:\eclipse\workspace\sphinx4\build.xml
all:
create_all_model_classes:
create_my_model_classes: [mkdir] Created dir: C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz
create_my_model_classes: [mkdir] Created dir: C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz
create_my_model_classes: [mkdir] Created dir: C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz [copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz
check_jsapi_default.isPresent:
copy_jsapi_jar:
check_jsapi_jar.isPresent:
issue_jsapi_warning:
set_patternset_to_compile:
set_patternset_to_doc:
handle_jsapi:
compile_src: [mkdir] Created dir: C:\eclipse\workspace\sphinx4\bld\classes [javac] Compiling 312 source files to C:\eclipse\workspace\sphinx4\bld\classes [javac] javac: invalid source release: 1.5 [javac] Usage: javac <options> <source files> [javac] where possible options include: [javac] -g Generate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source} Generate only some debugging info [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath <path> Specify where to find user class files [javac] -sourcepath <path> Specify where to find input source files [javac] -bootclasspath <path> Override location of bootstrap class files [javac] -extdirs <dirs> Override location of installed extensions [javac] -d <directory> Specify where to place generated class files [javac] -encoding <encoding> Specify character encoding used by source files [javac] -source <release> Provide source compatibility with specified release [javac] -target <release> Generate class files for specific VM version [javac] -help Print a synopsis of standard options
BUILD FAILED
C:\eclipse\workspace\sphinx4\build.xml:226: The following error occurred while executing this line:
C:\eclipse\workspace\sphinx4\build.xml:251: Compile failed; see the compiler error output for details.
Total time: 3 seconds
Any ideas on what I could do?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I followed these instructions:
http://cmusphinx.sourceforge.net/sphinx4/doc/Eclipse.html
but there's a step that's impossible (at least with eclipse 3.1, I'm downloading 3.2 but I don't expect it to be different).
Under "Setup the JDK compliance level of the Java Compiler to 1.4" it says "Make sure that Disallow identifiers called 'assert' under JDK Compliance is set to Warning." but I can't do this.
If I set source compatability to 1.3, change asser to warning and put source compatability back to 1.4 assert gets automatically put back to error and is greyed out so I can't change it.
I suspect this is where all the compiler errors are coming from. I tried ignoring it in hopes that the ant build script would manage to avoid anything broken but when I ran it I got:
Buildfile: C:\eclipse\workspace\sphinx4\build.xml
all:
create_all_model_classes:
create_my_model_classes:
[mkdir] Created dir: C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz
create_my_model_classes:
[mkdir] Created dir: C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz
create_my_model_classes:
[mkdir] Created dir: C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz
[copy] Copying 1 file to C:\eclipse\workspace\sphinx4\edu\cmu\sphinx\model\acoustic\TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz
check_jsapi_default.isPresent:
copy_jsapi_jar:
check_jsapi_jar.isPresent:
issue_jsapi_warning:
set_patternset_to_compile:
set_patternset_to_doc:
handle_jsapi:
compile_src:
[mkdir] Created dir: C:\eclipse\workspace\sphinx4\bld\classes
[javac] Compiling 312 source files to C:\eclipse\workspace\sphinx4\bld\classes
[javac] javac: invalid source release: 1.5
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose Output messages about what the compiler is doing
[javac] -deprecation Output source locations where deprecated APIs are used
[javac] -classpath <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source files
[javac] -bootclasspath <path> Override location of bootstrap class files
[javac] -extdirs <dirs> Override location of installed extensions
[javac] -d <directory> Specify where to place generated class files
[javac] -encoding <encoding> Specify character encoding used by source files
[javac] -source <release> Provide source compatibility with specified release
[javac] -target <release> Generate class files for specific VM version
[javac] -help Print a synopsis of standard options
BUILD FAILED
C:\eclipse\workspace\sphinx4\build.xml:226: The following error occurred while executing this line:
C:\eclipse\workspace\sphinx4\build.xml:251: Compile failed; see the compiler error output for details.
Total time: 3 seconds
Any ideas on what I could do?
Thanks.
I origianally used the CVS source which is no longer valid and ran into the same problem you did.
I changed to the valid SVN source. It is 1.5 compatible. Using 1.5 I did not need to make any special adjustments for 1.4 anymore.