#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) -------------------------------+-------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: junit | -------------------------------+-------------------------------------------- Comment(by craig.cottingham@…): Either this is not fixed, or instructions given above are incomplete. Mac OS X 10.4.11, Java 1.6.0-dp-b88-34. {{{ craigc@tabitha:~$ sudo port clean --all junit hamcrest-core subversion- javahlbindings ---> Cleaning junit ---> Cleaning hamcrest-core ---> Cleaning subversion-javahlbindings craigc@tabitha:~$ sudo port install subversion-javahlbindings ---> Fetching hamcrest-core ---> Attempting to fetch hamcrest-1.1.tgz from http://hamcrest.googlecode.com/files/ ---> Verifying checksum(s) for hamcrest-core ---> Extracting hamcrest-core ---> Configuring hamcrest-core ---> Building hamcrest-core ---> Staging hamcrest-core into destroot ---> Installing hamcrest-core @1.1_2 ---> Activating hamcrest-core @1.1_2 ---> Cleaning hamcrest-core ---> Fetching junit ---> Attempting to fetch junit4.6.zip from http://voxel.dl.sourceforge.net/junit ---> Verifying checksum(s) for junit ---> Extracting junit ---> Configuring junit ---> Building junit Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_junit/work/junit4.6 && javac -d classes -cp /opt/local/share/java/hamcrest-core.jar -sourcepath src src/junit/framework/JUnit4TestAdapter.java" returned error 1 Command output: src/org/junit/internal/AssumptionViolatedException.java:3: cannot access org.hamcrest.Description bad class file: /opt/local/share/java/hamcrest- core.jar(org/hamcrest/Description.class) class file has wrong version 50.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.hamcrest.Description; ^ 1 error Error: The following dependencies failed to build: junit Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS