Page 1 of 2

Building Bioformats c++ bindings on Windows 7

PostPosted: Mon Feb 09, 2015 3:14 pm
by yuung
Hi,

I've been following this tutorial: http://www.openmicroscopy.org/site/supp ... ndows.html
However, when I run
Code: Select all
mvn -DskipTests package dependency:copy-dependencies cppwrap:wrap
,
I get an error:

[INFO] Beginning Proxy generation.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.316 s
[INFO] Finished at: 2015-02-09T07:57:54-07:00
[INFO] Final Memory: 33M/526M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wra
p (default-cli) on project formats-bsd: Execution default-cli of goal loci.maven
.plugins:cppwrap-maven-plugin:1.1.1:wrap failed: An API incompatibility was enco
untered while executing loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap: java
.lang.ClassFormatError: Unrecognized constant tag value <15>

[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-
maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
[ERROR] urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-
1.1.1.jar
[ERROR] urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
[ERROR] urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3
.1.jar
[ERROR] urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/s
lf4j-api-1.5.5.jar
[ERROR] urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-clas
sic/0.9.11/logback-classic-0.9.11.jar
[ERROR] urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core
/0.9.11/logback-core-0.9.11.jar
[ERROR] urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver
/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar
[ERROR] urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/ba
ckport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/veloci
ty/1.6.4/velocity-1.6.4.jar
[ERROR] urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/common
s-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/
2.4/commons-lang-2.4.jar
[ERROR] urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.ja
r
[ERROR] urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus
-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.
8.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.
7, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... inContaine
rException

I've checked at https://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException, and my loci/cppwrap-maven-plugin seems to be in this directory: .m2\repository\loci\maven\plugins\cppwrap-maven-plugin\1.1.1

however, even copying the .pom and .jar files to
.m2\repository\com\loci\maven\plugins\cppwrap-maven-plugin\1.1.1

doesn't make a difference.

I've even tried the instructions at http://www.itk.org/Wiki/ITK_Release_4/Microscopy/File_Formats/Bio-Formats#Build_Bio-Formats_and_Its_C.2B.2B_Bindings, but the directory components/native/bf-cpp doesn't exist.

Bioformats would be a huge help to my company's project, and it'd be great if I could build this for Windows. Could anyone offer some advice?

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Tue Feb 10, 2015 6:03 pm
by mlinkert
Hi,

An error like that often indicates that the jar files were only partially downloaded.

I've checked at https://cwiki.apache.org/confluence/dis ... rException, and my loci/cppwrap-maven-plugin seems to be in this directory: .m2\repository\loci\maven\plugins\cppwrap-maven-plugin\1.1.1

however, even copying the .pom and .jar files to
.m2\repository\com\loci\maven\plugins\cppwrap-maven-plugin\1.1.1

doesn't make a difference.


Does it work if you copy the files to .m2\repository\loci\maven\plugins\cppwrap-maven-plugin\1.1.1? I would expect that having the extra 'com' in the above path would not solve the problem. You might also try removing all of the .m2\repository\loci\maven\plugins\cppwrap-maven-plugin files, and running:

Code: Select all
mvn -DskipTests package dependency:copy-dependencies cppwrap:wrap


again, as that should download the files again and put them in the correct place.

-Melissa

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Tue Feb 10, 2015 6:16 pm
by yuung
Hi Melissa,

1) The files were originally in .m2\repository\loci\maven\plugins\cppwrap-maven-plugin\1.1.1, so no need to copy them - I had copied them from that directory to the com directory before. They're no longer in the com directory.

2) I tried deleting .m2\repository\loci\maven\plugins\cppwrap-maven-plugin files and running
Code: Select all
mvn -DskipTests package dependency:copy-dependencies cppwrap:wrap
again; however I get the same exact error.

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Tue Feb 10, 2015 9:09 pm
by mlinkert
In that case, could you please post the full output of:

Code: Select all
mvn --debug -DskipTests clean package dependency:copy-dependencies cppwrap:wrap


That should hopefully give us more information about which jar file specifically is causing a problem.

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Wed Feb 11, 2015 3:46 pm
by yuung
Here's as much info as I can get from the cmd window:

[DEBUG] jace.proxy.loci.formats.FormatTools
[DEBUG] jace.proxy.loci.formats.UnknownFormatException
[DEBUG] jace.proxy.java.lang.Throwable
[DEBUG] jace.proxy.loci.formats.meta.BaseMetadata
[DEBUG] jace.proxy.ome.xml.meta.BaseMetadata
[DEBUG] jace.proxy.loci.formats.DimensionSwapper
[DEBUG] jace.proxy.java.lang.Object
[DEBUG] jace.proxy.java.lang.Cloneable
[DEBUG] jace.proxy.loci.formats.IFormatHandler
[DEBUG] jace.proxy.loci.formats.meta.IMinMaxStore
[DEBUG] jace.proxy.loci.formats.FilePattern
[DEBUG] jace.proxy.loci.formats.UpgradeChecker
[DEBUG] jace.proxy.loci.formats.AxisGuesser
[DEBUG] jace.proxy.loci.formats.cache.CacheStrategy
[DEBUG] jace.proxy.loci.formats.cache.ByteArraySource
[DEBUG] jace.proxy.loci.formats.cache.Cache
[DEBUG] jace.proxy.loci.formats.FormatHandler
[DEBUG] jace.proxy.loci.formats.IFormatReader
[DEBUG] jace.proxy.loci.formats.ImageWriter
[DEBUG] jace.proxy.loci.formats.ChannelMerger
[DEBUG] jace.proxy.loci.formats.ChannelFiller
[DEBUG] jace.proxy.loci.formats.ClassList
[DEBUG] jace.proxy.loci.formats.FormatWriter
[DEBUG] jace.proxy.loci.formats.in.DefaultMetadataOptions
[DEBUG] jace.proxy.loci.formats.in.MetadataLevel
[DEBUG] jace.proxy.loci.formats.ReaderWrapper
[DEBUG] jace.proxy.loci.formats.cache.CacheListener
[DEBUG] jace.proxy.loci.formats.WriterWrapper
[DEBUG] jace.proxy.loci.formats.meta.DummyMetadata
[DEBUG] jace.proxy.ome.xml.meta.DummyMetadata
[DEBUG] jace.proxy.loci.formats.ImageTools
[DEBUG] jace.proxy.ome.xml.model.OMEModelObject
[DEBUG] jace.proxy.loci.formats.FormatReader
[DEBUG] jace.proxy.loci.formats.ome.AbstractOMEXMLMetadata
[DEBUG] jace.proxy.ome.xml.meta.AbstractOMEXMLMetadata
[DEBUG] jace.proxy.loci.formats.ImageReader
[DEBUG] jace.proxy.ome.xml.model.TextAnnotation
[DEBUG] jace.proxy.java.io.FileFilter
[DEBUG] jace.proxy.loci.formats.MetadataTools
[DEBUG] jace.proxy.loci.formats.codec.CodecOptions
[DEBUG] jace.proxy.loci.formats.FilePatternBlock
[DEBUG] jace.proxy.java.lang.AutoCloseable
[DEBUG] jace.proxy.loci.common.services.Service
[DEBUG] jace.proxy.ome.xml.model.AbstractOMEModelObject
[DEBUG] jace.proxy.loci.formats.CoreMetadata
[DEBUG] jace.proxy.java.lang.Exception
[DEBUG] jace.proxy.ome.xml.model.Annotation
[DEBUG] jace.proxy.ome.xml.meta.MetadataStore
[DEBUG] jace.proxy.loci.formats.meta.MetadataStore
[DEBUG] jace.proxy.ome.xml.meta.OMEXMLMetadata
[DEBUG] jace.proxy.loci.formats.ome.OMEXMLMetadata
[DEBUG] jace.proxy.loci.formats.cache.CacheSource
[DEBUG] jace.proxy.loci.formats.MinMaxCalculator
[DEBUG] jace.proxy.loci.formats.SwappableMetadata
[DEBUG] jace.proxy.loci.formats.cache.CacheEvent
[DEBUG] jace.proxy.loci.formats.MissingLibraryException
[DEBUG] jace.proxy.ome.xml.model.XMLAnnotation
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.754 s
[INFO] Finished at: 2015-02-11T08:44:12-07:00
[INFO] Final Memory: 42M/613M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wra
p (default-cli) on project formats-bsd: Execution default-cli of goal loci.maven
.plugins:cppwrap-maven-plugin:1.1.1:wrap failed: An API incompatibility was enco
untered while executing loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap: java
.lang.ClassFormatError: Unrecognized constant tag value <15>
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-
maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
[ERROR] urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-
1.1.1.jar
[ERROR] urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
[ERROR] urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3
.1.jar
[ERROR] urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/s
lf4j-api-1.5.5.jar
[ERROR] urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-clas
sic/0.9.11/logback-classic-0.9.11.jar
[ERROR] urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core
/0.9.11/logback-core-0.9.11.jar
[ERROR] urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver
/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar
[ERROR] urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/ba
ckport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/veloci
ty/1.6.4/velocity-1.6.4.jar
[ERROR] urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/common
s-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/
2.4/commons-lang-2.4.jar
[ERROR] urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.ja
r
[ERROR] urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus
-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.
8.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.
7, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal l
oci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap (default-cli) on project forma
ts-bsd: Execution default-cli of goal loci.maven.plugins:cppwrap-maven-plugin:1.
1.1:wrap failed: An API incompatibility was encountered while executing loci.mav
en.plugins:cppwrap-maven-plugin:1.1.1:wrap: java.lang.ClassFormatError: Unrecogn
ized constant tag value <15>
-----------------------------------------------------
realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-maven-pl
ugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-1.1.1.ja
r
urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar
urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/slf4j-api
-1.5.5.jar
urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-classic/0.9.
11/logback-classic-0.9.11.jar
urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core/0.9.11/
logback-core-0.9.11.jar
urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver/retrowe
aver-rt/2.0.7/retroweaver-rt-2.0.7.jar
urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/backport-u
til-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/velocity/1.6.4
/velocity-1.6.4.jar
urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/commons-collec
tions/3.2.1/commons-collections-3.2.1.jar
urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/2.4/comm
ons-lang-2.4.jar
urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus-utils/1
.5.1/plexus-utils-1.5.1.jar
urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.7, paren
t: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-c
li of goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap failed: An API inc
ompatibility was encountered while executing loci.maven.plugins:cppwrap-maven-pl
ugin:1.1.1:wrap: java.lang.ClassFormatError: Unrecognized constant tag value <15
>
-----------------------------------------------------
realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-maven-pl
ugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-1.1.1.ja
r
urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar
urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/slf4j-api
-1.5.5.jar
urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-classic/0.9.
11/logback-classic-0.9.11.jar
urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core/0.9.11/
logback-core-0.9.11.jar
urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver/retrowe
aver-rt/2.0.7/retroweaver-rt-2.0.7.jar
urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/backport-u
til-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/velocity/1.6.4
/velocity-1.6.4.jar
urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/commons-collec
tions/3.2.1/commons-collections-3.2.1.jar
urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/2.4/comm
ons-lang-2.4.jar
urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus-utils/1
.5.1/plexus-utils-1.5.1.jar
urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.7, paren
t: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:181)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 19 more
Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibil
ity was encountered while executing loci.maven.plugins:cppwrap-maven-plugin:1.1.
1:wrap: java.lang.ClassFormatError: Unrecognized constant tag value <15>
-----------------------------------------------------
realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-maven-pl
ugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-1.1.1.ja
r
urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar
urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/slf4j-api
-1.5.5.jar
urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-classic/0.9.
11/logback-classic-0.9.11.jar
urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core/0.9.11/
logback-core-0.9.11.jar
urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver/retrowe
aver-rt/2.0.7/retroweaver-rt-2.0.7.jar
urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/backport-u
til-concurrent/3.1/backport-util-concurrent-3.1.jar
urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/velocity/1.6.4
/velocity-1.6.4.jar
urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/commons-collec
tions/3.2.1/commons-collections-3.2.1.jar
urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/2.4/comm
ons-lang-2.4.jar
urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus-utils/1
.5.1/plexus-utils-1.5.1.jar
urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.7, paren
t: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:179)
... 20 more
Caused by: java.lang.ClassFormatError: Unrecognized constant tag value <15>
at jace.parser.constant.ConstantFactory.readConstant(ConstantFactory.jav
a:42)
at jace.parser.ClassFile.readConstantPool(ClassFile.java:438)
at jace.parser.ClassFile.parseClass(ClassFile.java:353)
at jace.parser.ClassFile.<init>(ClassFile.java:73)
at jace.proxy.ClassSet.addDependentClasses(ClassSet.java:149)
at jace.proxy.ClassSet.addDependentClasses(ClassSet.java:168)
at jace.proxy.ClassSet.addClass(ClassSet.java:96)
at jace.proxy.ClassSet.addClass(ClassSet.java:82)
at jace.proxy.AutoProxy.traverse(AutoProxy.java:248)
at jace.proxy.AutoProxy.traverse(AutoProxy.java:198)
at jace.proxy.AutoProxy.run(AutoProxy.java:113)
at jace.proxy.AutoProxy.access$1000(AutoProxy.java:46)
at jace.proxy.AutoProxy$Builder.generateProxies(AutoProxy.java:542)
at jace.proxy.AutoProxy.main(AutoProxy.java:398)
at loci.jar2lib.Jar2Lib.generateProxies(Jar2Lib.java:390)
at loci.jar2lib.Jar2Lib.execute(Jar2Lib.java:219)
at loci.maven.plugin.cppwrap.CppWrapMojo.execute(CppWrapMojo.java:182)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:132)
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... inContaine
rException

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Thu Feb 12, 2015 8:52 pm
by mlinkert
I'd suggest removing the contents of .m2\repository\loci\jar2lib first, and see if running the build command works. If that doesn't work, the more drastic thing to try is backing up your .m2\repository, then removing the entire contents of .m2\repository and running the build command again. That may be a little slow, as it will download all dependencies again.

If none of that works, could you please confirm:

* the branch or tag of https://github.com/openmicroscopy/bioformats from which you're building
* the JDK and Maven versions (both should be shown by 'mvn --version')

and, if possible, Zip the contents of .m2\repository and upload them to https://www.openmicroscopy.org/qa2/qa/upload/ (so that we can hopefully duplicate the same error that you're seeing).

I can definitely build the C++ bindings here on Windows, so I wouldn't expect this to be an issue with building on Windows specifically.

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Tue Feb 17, 2015 3:12 pm
by yuung
Hi,
I've tried removing the repository folder and the loci folder and rerunning to no avail.
I'm getting the source code from the zip file from this page, near the bottom:
http://downloads.openmicroscopy.org/bio-formats/5.0.8/

Here's the mvn --version output:
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1
Maven home: C:\Program Files\apache-maven-3.2.5\bin\..
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_31\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

I've uploaded my .m2\repository folder to the link you posted.

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Wed Feb 18, 2015 11:09 am
by rleigh
I can certainly reproduce the original problem. Windows 7/x64 with Java 1.8.0_31-b13 and Maven 3.2.5. Maven was newly installed and had never been used on the system before.

Code: Select all
[Initial mvn build of bioformats]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Bio-Formats projects ............................... SUCCESS [ 37.573 s]
[INFO] Common ............................................. SUCCESS [19:02 min]
[INFO] OME-XML Java library ............................... SUCCESS [ 25.093 s]
[INFO] Specification ...................................... SUCCESS [  3.967 s]
[INFO] JAI Image I/O Tools ................................ SUCCESS [ 10.210 s]
[INFO] MDB Tools (Java port) .............................. SUCCESS [  3.183 s]
[INFO] Apache Jakarta POI ................................. SUCCESS [ 10.422 s]
[INFO] libjpeg-turbo Java bindings ........................ SUCCESS [  3.627 s]
[INFO] Bio-Formats API .................................... SUCCESS [  4.868 s]
[INFO] Bio-Formats code generator ......................... SUCCESS [  3.548 s]
[INFO] Luratech LuraWave stubs ............................ SUCCESS [  2.409 s]
[INFO] BSD Bio-Formats readers and writers ................ SUCCESS [07:15 min]
[INFO] Metakit ............................................ SUCCESS [  3.657 s]
[INFO] Bio-Formats library ................................ SUCCESS [ 24.838 s]
[INFO] Bio-Formats Plugins for ImageJ ..................... SUCCESS [ 17.761 s]
[INFO] bioformats_package bundle .......................... SUCCESS [ 10.027 s]
[INFO] Bio-Formats command line tools ..................... SUCCESS [  2.531 s]
[INFO] LOCI Tools bundle .................................. SUCCESS [  7.256 s]
[INFO] OME Tools bundle ................................... SUCCESS [  1.979 s]
[INFO] Bio-Formats testing framework ...................... SUCCESS [  6.725 s]
[INFO] XSD-FU ............................................. SUCCESS [  2.108 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29:24 min
[INFO] Finished at: 2015-02-18T10:41:42+00:00
[INFO] Final Memory: 83M/763M
[INFO] ------------------------------------------------------------------------
(27) C:\bioformats-5.0.8>cd components\formats-bsd

(27) C:\bioformats-5.0.8\components\formats-bsd>mvn -DskipTests clean package cppwrap:wrap dependency:copy-dependencies
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.pom
Downloading: http://dev.loci.wisc.edu/maven2/releases/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.pom
Downloaded: http://dev.loci.wisc.edu/maven2/releases/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.pom (4 KB at 5.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/loci/pom-loci/1.2/pom-loci-1.2.pom
Downloading: http://dev.loci.wisc.edu/maven2/releases/loci/pom-loci/1.2/pom-loci-1.2.pom
Downloaded: http://dev.loci.wisc.edu/maven2/releases/loci/pom-loci/1.2/pom-loci-1.2.pom (3 KB at 6.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/scijava/pom-scijava/1.15/pom-scijava-1.15.pom
Downloading: http://dev.loci.wisc.edu/maven2/releases/org/scijava/pom-scijava/1.15/pom-scijava-1.15.pom
Downloaded: http://dev.loci.wisc.edu/maven2/releases/org/scijava/pom-scijava/1.15/pom-scijava-1.15.pom (10 KB at 26.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
Downloading: http://dev.loci.wisc.edu/maven2/releases/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
Downloaded: http://dev.loci.wisc.edu/maven2/releases/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar (10 KB at 26.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-plugin/1.6/license-maven-plugin-1.6.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-plugin/1.6/license-maven-plugin-1.6.pom (19 KB at 148.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/32/mojo-parent-32.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/32/mojo-parent-32.pom (26 KB at 318.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-plugin/1.6/license-maven-plugin-1.6.jar
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-plugin/1.6/license-maven-plugin-1.6.jar (256 KB at 1129.6 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (4 KB at 44.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar (25 KB at 388.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.8.1/maven-deploy-plugin-2.8.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.8.1/maven-deploy-plugin-2.8.1.pom (8 KB at 87.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.8.1/maven-deploy-plugin-2.8.1.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.8.1/maven-deploy-plugin-2.8.1.jar (34 KB at 509.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom (21 KB at 308.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.jar (122 KB at 1320.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom (5 KB at 42.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom (12 KB at 185.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar (24 KB at 371.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom (12 KB at 130.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar (150 KB at 1558.3 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BSD Bio-Formats readers and writers 5.0.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ formats-bsd ---
[INFO] Deleting C:\bioformats-5.0.8\components\formats-bsd\target
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ formats-bsd ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\bioformats-5.0.8\components\formats-bsd
[INFO] Storing buildNumber: UNKNOWN at timestamp: 1424257256089
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\bioformats-5.0.8\components\formats-bsd
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- gmaven-plugin:1.4:execute (default) @ formats-bsd ---
     [exec] Result: 128
     [exec] Result: 128
     [exec] Result: 128
128
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
parsing release.version
parsing release.shortversion
parsing vcs.revision
parsing vcs.date
revision = fd4e2d9
release = 5.0.8
[INFO]
[INFO] --- build-helper-maven-plugin:1.4:add-source (add-source) @ formats-bsd ---
[INFO] Source directory: C:\bioformats-5.0.8\components\formats-bsd\target\generated-sources added.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ formats-bsd ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ formats-bsd ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 159 source files to C:\bioformats-5.0.8\components\formats-bsd\target\classes
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/src/loci/formats/out/LegacyQTWriter.java: Some input files use or override a deprecated API.
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/src/loci/formats/out/LegacyQTWriter.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/src/loci/formats/cache/CacheStrategy.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/src/loci/formats/cache/CacheStrategy.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ formats-bsd ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ formats-bsd ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to C:\bioformats-5.0.8\components\formats-bsd\target\test-classes
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/test/loci/formats/utests/WrapperTest.java: C:\bioformats-5.0.8\components\formats-bsd\test\loci\formats\utests\WrapperTest.java uses or overrides a deprecated API.
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/test/loci/formats/utests/WrapperTest.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/test/loci/formats/utests/tiff/TiffParserTest.java: C:\bioformats-5.0.8\components\formats-bsd\test\loci\formats\utests\tiff\TiffParserTest.java uses unchecked or unsafe operations.
[WARNING] /C:/bioformats-5.0.8/components/formats-bsd/test/loci/formats/utests/tiff/TiffParserTest.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ formats-bsd ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ formats-bsd ---
[INFO] Building jar: C:\bioformats-5.0.8\components\formats-bsd\target\formats-bsd-5.0.8.jar
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (default) > generate-sources @ formats-bsd >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ formats-bsd ---
[INFO]
[INFO] --- gmaven-plugin:1.4:execute (default) @ formats-bsd ---
     [exec] Result: 128
     [exec] Result: 128
     [exec] Result: 128
128
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
parsing release.version
parsing release.shortversion
parsing vcs.revision
parsing vcs.date
revision = fd4e2d9
release = 5.0.8
[INFO]
[INFO] --- build-helper-maven-plugin:1.4:add-source (add-source) @ formats-bsd ---
[INFO] Source directory: C:\bioformats-5.0.8\components\formats-bsd\target\generated-sources added.
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (default) < generate-sources @ formats-bsd <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (default) @ formats-bsd ---
[INFO] Building jar: C:\bioformats-5.0.8\components\formats-bsd\target\formats-bsd-5.0.8-sources.jar
[INFO]
[INFO] --- cppwrap-maven-plugin:1.1.1:wrap (default-cli) @ formats-bsd ---
Downloading: http://repo.maven.apache.org/maven2/loci/jar2lib/1.1.1/jar2lib-1.1.1.pom
Downloading: http://dev.loci.wisc.edu/maven2/releases/loci/jar2lib/1.1.1/jar2lib-1.1.1.pom
Downloaded: http://dev.loci.wisc.edu/maven2/releases/loci/jar2lib/1.1.1/jar2lib-1.1.1.pom (4 KB at 6.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/jace/jace/r39/jace-r39.pom
Downloading: http://dev.loci.wisc.edu/maven2/releases/jace/jace/r39/jace-r39.pom
Downloading: http://maven.imagej.net/content/repositories/thirdparty/jace/jace/r39/jace-r39.pom
Downloaded: http://maven.imagej.net/content/repositories/thirdparty/jace/jace/r39/jace-r39.pom (2 KB at 2.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/asm/asm/3.1/asm-3.1.pom
Downloaded: http://repo.maven.apache.org/maven2/asm/asm/3.1/asm-3.1.pom (278 B at 3.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom
Downloaded: http://repo.maven.apache.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom (5 KB at 65.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.pom
Downloaded: http://repo.maven.apache.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.pom (425 B at 6.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.pom
Downloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.pom (3 KB at 46.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.5.5/slf4j-parent-1.5.5.pom
Downloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.5.5/slf4j-parent-1.5.5.pom (8 KB at 117.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-classic/0.9.11/logback-classic-0.9.11.pom
Downloaded: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-classic/0.9.11/logback-classic-0.9.11.pom (6 KB at 68.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-parent/0.9.11/logback-parent-0.9.11.pom
Downloaded: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-parent/0.9.11/logback-parent-0.9.11.pom (10 KB at 137.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-core/0.9.11/logback-core-0.9.11.pom
Downloaded: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-core/0.9.11/logback-core-0.9.11.pom (3 KB at 45.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/net/sourceforge/retroweaver/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.pom
Downloaded: http://repo.maven.apache.org/maven2/net/sourceforge/retroweaver/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.pom (2 KB at 4.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/loci/jar2lib/1.1.1/jar2lib-1.1.1.jar
Downloading: http://repo.maven.apache.org/maven2/jace/jace/r39/jace-r39.jar
Downloading: http://repo.maven.apache.org/maven2/asm/asm/3.1/asm-3.1.jar
Downloading: http://repo.maven.apache.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.jar
Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.jar
Downloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.jar (22 KB at 206.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-classic/0.9.11/logback-classic-0.9.11.jar
Downloaded: http://repo.maven.apache.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.jar (22 KB at 185.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-core/0.9.11/logback-core-0.9.11.jar
Downloading: http://repo.maven.apache.org/maven2/net/sourceforge/retroweaver/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar
Downloaded: http://repo.maven.apache.org/maven2/asm/asm/3.1/asm-3.1.jar (43 KB at 302.3 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-classic/0.9.11/logback-classic-0.9.11.jar (137 KB at 455.6 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/ch/qos/logback/logback-core/0.9.11/logback-core-0.9.11.jar (211 KB at 633.1 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/net/sourceforge/retroweaver/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar (178 KB at 391.6 KB/sec)
Downloading: http://dev.loci.wisc.edu/maven2/releases/loci/jar2lib/1.1.1/jar2lib-1.1.1.jar
Downloading: http://dev.loci.wisc.edu/maven2/releases/jace/jace/r39/jace-r39.jar
Downloaded: http://dev.loci.wisc.edu/maven2/releases/loci/jar2lib/1.1.1/jar2lib-1.1.1.jar (119 KB at 88.5 KB/sec)
Downloading: http://maven.imagej.net/content/repositories/thirdparty/jace/jace/r39/jace-r39.jar
Downloaded: http://maven.imagej.net/content/repositories/thirdparty/jace/jace/r39/jace-r39.jar (183 KB at 128.2 KB/sec)
[INFO] --> Generating project skeleton
[INFO] include/
[INFO] jace/
[INFO] jace/include/
[INFO] jace/include/jace/
[INFO] jace/include/jace/proxy/
[INFO] jace/include/jace/proxy/types/
[INFO] jace/source/
[INFO] jace/source/jace/
[INFO] jace/source/jace/proxy/
[INFO] jace/source/jace/proxy/types/
[INFO] jtools/
[INFO] jtools/include/
[INFO] jtools/source/
[INFO] include/jace.h
[INFO] jace/CMakeLists.txt
[INFO] jace/include/jace/BaseException.h
[INFO] jace/include/jace/BoostWarningOff.h
[INFO] jace/include/jace/BoostWarningOn.h
[INFO] jace/include/jace/ElementProxy.h
[INFO] jace/include/jace/ElementProxy.tsd
[INFO] jace/include/jace/ElementProxy.tsp
[INFO] jace/include/jace/ElementProxyHelper.h
[INFO] jace/include/jace/JArguments.h
[INFO] jace/include/jace/JArray.h
[INFO] jace/include/jace/JArray.tsd
[INFO] jace/include/jace/JArray.tsp
[INFO] jace/include/jace/JArrayHelper.h
[INFO] jace/include/jace/javacast.h
[INFO] jace/include/jace/javacast.tsd
[INFO] jace/include/jace/javacast.tsp
[INFO] jace/include/jace/JClass.h
[INFO] jace/include/jace/JClassImpl.h
[INFO] jace/include/jace/JConstructor.h
[INFO] jace/include/jace/JEnlister.h
[INFO] jace/include/jace/JFactory.h
[INFO] jace/include/jace/JField.h
[INFO] jace/include/jace/JField.tsd
[INFO] jace/include/jace/JField.tsp
[INFO] jace/include/jace/JFieldHelper.h
[INFO] jace/include/jace/JFieldProxy.h
[INFO] jace/include/jace/JFieldProxy.tsd
[INFO] jace/include/jace/JFieldProxy.tsp
[INFO] jace/include/jace/JFieldProxyHelper.h
[INFO] jace/include/jace/JMethod.h
[INFO] jace/include/jace/JMethod.tsd
[INFO] jace/include/jace/JMethod.tsp
[INFO] jace/include/jace/JNIException.h
[INFO] jace/include/jace/JNIHelper.h
[INFO] jace/include/jace/JSignature.h
[INFO] jace/include/jace/namespace.h
[INFO] jace/include/jace/OptionList.h
[INFO] jace/include/jace/os_dep.h
[INFO] jace/include/jace/Peer.h
[INFO] jace/include/jace/proxy/JObject.h
[INFO] jace/include/jace/proxy/JValue.h
[INFO] jace/include/jace/proxy/types/JBoolean.h
[INFO] jace/include/jace/proxy/types/JByte.h
[INFO] jace/include/jace/proxy/types/JChar.h
[INFO] jace/include/jace/proxy/types/JDouble.h
[INFO] jace/include/jace/proxy/types/JFloat.h
[INFO] jace/include/jace/proxy/types/JInt.h
[INFO] jace/include/jace/proxy/types/JLong.h
[INFO] jace/include/jace/proxy/types/JShort.h
[INFO] jace/include/jace/proxy/types/JVoid.h
[INFO] jace/include/jace/StaticVmLoader.h
[INFO] jace/include/jace/UnixVmLoader.h
[INFO] jace/include/jace/VirtualMachineShutdownError.h
[INFO] jace/include/jace/VmLoader.h
[INFO] jace/include/jace/Win32VmLoader.h
[INFO] jace/include/jace/WrapperVmLoader.h
[INFO] jace/Prerequisites.cmake
[INFO] jace/source/jace/BaseException.cpp
[INFO] jace/source/jace/ElementProxy.cpp
[INFO] jace/source/jace/ElementProxyHelper.cpp
[INFO] jace/source/jace/JArguments.cpp
[INFO] jace/source/jace/JArray.cpp
[INFO] jace/source/jace/JArrayHelper.cpp
[INFO] jace/source/jace/javacast.cpp
[INFO] jace/source/jace/JClass.cpp
[INFO] jace/source/jace/JClassImpl.cpp
[INFO] jace/source/jace/JConstructor.cpp
[INFO] jace/source/jace/JEnlister.cpp
[INFO] jace/source/jace/JFactory.cpp
[INFO] jace/source/jace/JField.cpp
[INFO] jace/source/jace/JFieldHelper.cpp
[INFO] jace/source/jace/JFieldProxy.cpp
[INFO] jace/source/jace/JFieldProxyHelper.cpp
[INFO] jace/source/jace/JMethod.cpp
[INFO] jace/source/jace/JNIException.cpp
[INFO] jace/source/jace/JNIHelper.cpp
[INFO] jace/source/jace/JSignature.cpp
[INFO] jace/source/jace/OptionList.cpp
[INFO] jace/source/jace/Peer.cpp
[INFO] jace/source/jace/proxy/JObject.cpp
[INFO] jace/source/jace/proxy/JValue.cpp
[INFO] jace/source/jace/proxy/types/JBoolean.cpp
[INFO] jace/source/jace/proxy/types/JByte.cpp
[INFO] jace/source/jace/proxy/types/JChar.cpp
[INFO] jace/source/jace/proxy/types/JDouble.cpp
[INFO] jace/source/jace/proxy/types/JFloat.cpp
[INFO] jace/source/jace/proxy/types/JInt.cpp
[INFO] jace/source/jace/proxy/types/JLong.cpp
[INFO] jace/source/jace/proxy/types/JShort.cpp
[INFO] jace/source/jace/proxy/types/JVoid.cpp
[INFO] jace/source/jace/StaticVmLoader.cpp
[INFO] jace/source/jace/UnixVmLoader.cpp
[INFO] jace/source/jace/VmLoader.cpp
[INFO] jace/source/jace/Win32VmLoader.cpp
[INFO] jace/source/jace/WrapperVmLoader.cpp
[INFO] jace-runtime.jar
[INFO] jtools/include/javaTools.h
[INFO] jtools/source/javaTools.cxx
[INFO] --> Copying sources
[INFO] C:\bioformats-5.0.8\components\formats-bsd\target\classes\cppwrap\minimum_writer.cpp
[INFO] C:\bioformats-5.0.8\components\formats-bsd\target\classes\cppwrap\showinf.cpp
[INFO] --> Generating header for formats-bsd-5.0.8.jar
Writing C:\bioformats-5.0.8\components\formats-bsd\target\cppwrap\include\formats-bsd-5.0.8.h: done.
[INFO] --> Generating header for formats-api-5.0.8.jar
Writing C:\bioformats-5.0.8\components\formats-bsd\target\cppwrap\include\formats-api-5.0.8.h: done.
[INFO] --> Generating header for formats-common-5.0.8.jar
Writing C:\bioformats-5.0.8\components\formats-bsd\target\cppwrap\include\formats-common-5.0.8.h: done.
[INFO] --> Generating header for ome-xml-5.0.8.jar
Writing C:\bioformats-5.0.8\components\formats-bsd\target\cppwrap\include\ome-xml-5.0.8.h: done.
[INFO] --> Generating CMake build file
Writing C:\bioformats-5.0.8\components\formats-bsd\target\cppwrap\CMakeLists.txt: done.
[INFO] --> Generating proxies
[INFO] Beginning Proxy generation.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.544 s
[INFO] Finished at: 2015-02-18T11:01:16+00:00
[INFO] Final Memory: 36M/409M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap (default-cli) on project formats-bsd: Execution default-cli of goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap failed: An API incompatibility was encountered while executing loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap: java.lang.ClassFormatError: Unrecognized constant tag value <15>
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/rleigh/.m2/repository/loci/maven/plugins/cppwrap-maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
[ERROR] urls[1] = file:/C:/Users/rleigh/.m2/repository/loci/jar2lib/1.1.1/jar2lib-1.1.1.jar
[ERROR] urls[2] = file:/C:/Users/rleigh/.m2/repository/jace/jace/r39/jace-r39.jar
[ERROR] urls[3] = file:/C:/Users/rleigh/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[4] = file:/C:/Users/rleigh/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar
[ERROR] urls[5] = file:/C:/Users/rleigh/.m2/repository/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.jar
[ERROR] urls[6] = file:/C:/Users/rleigh/.m2/repository/ch/qos/logback/logback-classic/0.9.11/logback-classic-0.9.11.jar
[ERROR] urls[7] = file:/C:/Users/rleigh/.m2/repository/ch/qos/logback/logback-core/0.9.11/logback-core-0.9.11.jar
[ERROR] urls[8] = file:/C:/Users/rleigh/.m2/repository/net/sourceforge/retroweaver/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar
[ERROR] urls[9] = file:/C:/Users/rleigh/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/C:/Users/rleigh/.m2/repository/org/apache/velocity/velocity/1.6.4/velocity-1.6.4.jar
[ERROR] urls[11] = file:/C:/Users/rleigh/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[12] = file:/C:/Users/rleigh/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
[ERROR] urls[13] = file:/C:/Users/rleigh/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[14] = file:/C:/Users/rleigh/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[15] = file:/C:/Users/rleigh/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>ome:formats-bsd:5.0.8, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[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/PluginContainerException
(27) C:\bioformats-5.0.8\components\formats-bsd>

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Wed Feb 18, 2015 11:13 am
by rleigh
My environment, in case it's useful:

Code: Select all
ALLUSERSPROFILE=C:\ProgramData
ANT_HOME=C:\opt\apache-ant-1.9.3
CL="/D_VARIADIC_MAX=10"
FP_NO_HOST_CHECK=NO
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31
LOCALAPPDATA=C:\Users\rleigh\AppData\Local
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Program Files\Java\jdk1.8.0_31\bin;C:\opt\apache-maven-3.2.5\bin;C:\venv\27\Scripts;C:\Program Files (x86)\ZeroC\Ice-3.5.1\bin\vc110\x64;C:\Program Files (x86)\CMake\bin;C:\ProgramData\Oracle\Java\javapath;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\Git\cmd;C:\opt\apache-ant-1.9.3\bin;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance
Toolkit\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft\Web Platform Installer\
VIRTUAL_ENV=C:\venv\27
VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\

Re: Building Bioformats c++ bindings on Windows 7

PostPosted: Wed Feb 18, 2015 11:42 am
by rleigh
The error
Code: Select all
java.lang.ClassFormatError: Unrecognized constant tag value <15>
is actually in jace itself:

http://jace.googlecode.com/hg-history/8 ... ctory.java

Note I can also reproduce this on MacOS X, again with Java 8 (u25). I get "Unrecognized constant tag value <18>" I wonder if it's a Java8 issue? Could the original submitter (yuung) check which Java version you're using? If you build with Java7, does the issue resolve?