I am trying to re-compile the simple.war source code from the example tar file. I created an ant make file for compiling the source. When run ant I get the following error when ant tries to compile DataBean$RowColumnKey.java. "DataBean$RowColumnKey.java:10: modifier private not allowed here."
07 // Referenced classes of package
org.apache.myfaces.examples.crosstable:
08 //
DataBean
09
10 private
class RowColumnKey
11 {
What java
flags, special instruction, and/or processes did you use to compile this java source file? Can I get a copy of the build.xml file(s)?
Any information would be greatly appreciated.
Thanks in advance....
Buildfile: jboss-build.xml Overriding previous definition of reference to build.classpath
prepare:
compile:
[javac] Compiling 54 source files to \build
[javac]
\src\org\apache\myfaces\examples\crosstable\DataBean$RowColumnKey.java:10:
modifier private not allowed here
[javac] private class RowColumnKey
[javac] ^
[javac]
\src\org\apache\myfaces\examples\listexample\PagedSortableCarList$1.java:11:
duplicate class: org.apache.myfaces.examples.listexample._cls1
[javac] class _cls1
[javac] ^
[javac]
\src\org\apache\myfaces\examples\listexample\SimpleCountry$1.java:11: duplicate
class: org.apache.myfaces.examples.listexample._cls1
[javac] class _cls1
[javac] ^
[javac]
\src\org\apache\myfaces\examples\listexample\SimpleSortableCarList$1.java:11:
duplicate class: org.apache.myfaces.examples.listexample._cls1
[javac] class _cls1
[javac] ^
[javac]
\src\org\apache\myfaces\examples\listexample\OpenDataList$1.java:19: cannot
find symbol
[javac] symbol : variable val$columnIndex
[javac] location: class org.apache.myfaces.examples.listexample._cls1
[javac] Object column1 = ((List)o1).get(val$columnIndex);
[javac] ^
[javac]
\src\org\apache\myfaces\examples\listexample\OpenDataList$1.java:20: cannot
find symbol
[javac] symbol : variable val$columnIndex
[javac] location: class org.apache.myfaces.examples.listexample._cls1
[javac] Object column2 = ((List)o2).get(val$columnIndex);
[javac] ^
[javac]
\src\org\apache\myfaces\examples\listexample\OpenDataList$1.java:30: cannot
find symbol
[javac] symbol : variable val$direction
[javac] location: class org.apache.myfaces.examples.listexample._cls1
[javac] result = ((Comparable)column1).compareTo(column2) *
val$direction;
[javac] ^
[javac] \src\org\apache\myfaces\examples\misc\OptionsForm$1.java:17: cannot
find symbol
[javac] symbol : method access$000()
[javac] location: class org.apache.myfaces.examples.misc.OptionsForm
[javac] Locale locale = (Locale)OptionsForm.access$000().get(index);
[javac] ^
[javac] \src\org\apache\myfaces\examples\misc\OptionsForm$1.java:24: cannot
find symbol
[javac] symbol : method access$000()
[javac] location: class org.apache.myfaces.examples.misc.OptionsForm
[javac] return OptionsForm.access$000().size();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 9 errors
