Closed nicholasjhenry closed 10 years ago
Upgrading Java didn't resolve the compilation errors:
java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Thanks for testing the compilation. I have downgraded the code to Java 6 and the current version should compile without those errors. Please, let me know any other issue.
OK, making progress! That gets me pass the original compilation error, however, I get a new one:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/EncodingTest.java:[23,21] package java.nio.file does not exist
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/image/BImageTest.java:[27,21] package java.nio.file does not exist
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/TextContentTest.java:[23,21] package java.nio.file does not exist
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/Page/ViewerTest.java:[24,21] package java.nio.file does not exist
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/ocrevaluation/ErrorMeasureTest.java:[27,21] package java.nio.file does not exist
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/CharFilterTest.java:[29,21] package java.nio.file does not exist
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/EncodingTest.java:[64,21] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.io.EncodingTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/image/BImageTest.java:[71,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.image.BImageTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/TextContentTest.java:[65,21] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.io.TextContentTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/Page/ViewerTest.java:[67,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.Page.ViewerTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/Page/ViewerTest.java:[69,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.Page.ViewerTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/Page/ViewerTest.java:[75,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.Page.ViewerTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/ocrevaluation/ErrorMeasureTest.java:[69,21] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.ocrevaluation.ErrorMeasureTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/ocrevaluation/ErrorMeasureTest.java:[85,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.ocrevaluation.ErrorMeasureTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/ocrevaluation/ErrorMeasureTest.java:[88,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.ocrevaluation.ErrorMeasureTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/ocrevaluation/ErrorMeasureTest.java:[109,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.ocrevaluation.ErrorMeasureTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/ocrevaluation/ErrorMeasureTest.java:[112,22] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.ocrevaluation.ErrorMeasureTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/CharFilterTest.java:[76,21] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.io.CharFilterTest
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/test/java/eu/digitisation/io/CharFilterTest.java:[99,33] cannot find symbol
symbol : variable Paths
location: class eu.digitisation.io.CharFilterTest
"Paths.get(resourceUrl.toURI()).toFile()", which is only in Java 7 package java.nio.file.*, has been replaced with traditional "new File(resourceUrl.toURI())", valid also in Java 6.
Hopefully that is it.
After pulling master and trying again I get:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Volumes/Data/Users/nicholas/Source/apps/zweet-tesseract-research/ocrevalUAtion/src/main/java/eu/digitisation/math/Counter.java:[174,28] inconvertible types
found : Type
required: java.lang.String
[INFO] 1 error
Solved. Again a problem caused by using Java 7 locally while declaring the code compatible with Java 6. Sorry.
Compiled! Thank you.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.319s
[INFO] Finished at: Sat Dec 21 08:59:20 EST 2013
[INFO] Final Memory: 20M/81M
[INFO] ------------------------------------------------------------------------
In order get ocrevalUAtion running on OSX, I attempted to compile a JAR file, but running
mvn package
results in a compilation error: