question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiling 3.0.1 for Java 6

See original GitHub issue

Excuse my ignorance I’m not well versed in the Java ecosystem. I’ve attempted to follow the instructions to build core and javase using, for example,

mvn -DskipTests packages

but I get the error:

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.879 s
[INFO] Finished at: 2014-05-12T18:48:40-08:00
[INFO] Final Memory: 11M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project core: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - /Users/aeden/projects/zxing/zxing-zxing-3.0.0/core/src/main/java/com/google/zxing/aztec/AztecReader.java:78: <identifier> expected
[ERROR] } catch (NotFoundException | FormatException e) {
[ERROR] ^
[ERROR] /Users/aeden/projects/zxing/zxing-zxing-3.0.0/core/src/main/java/com/google/zxing/aztec/AztecReader.java:78: '{' expected
[ERROR] } catch (NotFoundException | FormatException e) {
[ERROR] ^

Advice?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mhcuervocommented, Feb 27, 2015

We faced the same problem some weeks ago and back-ported some modules of version 3.2.0. (https://github.com/Solvoj/zxing/tree/master-Java6). Back-ported version of “core” and “javase” are currently in maven central. Group ID: “com.solvoj.zxing-java6” . Artifact Ids “core-java6” and “javase-java6” respectively.

    <dependency>
        <groupId>com.solvoj.zxing-java6</groupId>
        <artifactId>core-java6</artifactId>
        <version>3.2.0</version>
    </dependency>

    <dependency>
        <groupId>com.solvoj.zxing-java6</groupId>
        <artifactId>javase-java6</artifactId>
        <version>3.2.0</version>
    </dependency>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I compile programs in Java 6 rather than Java 7 or 8?
Eclipse uses its own java compiler. In the Eclipse IDE, go to Window > Preferences > Java > Compiler , and change the...
Read more >
Java Archive Downloads - Java SE 1.3 - Oracle
Java SE 1.3 Downloads. Go to the Oracle Java Archive page. Thank you for downloading this release of the JavaTM Platform, Standard Edition...
Read more >
BlueJ Version History
Minor bug fixes since last release. This will be the last version of BlueJ which will work with Java 6. List of fixes...
Read more >
Maven Releases History
Release Date, Version, Required Java Version, Links. 2022-06-06, 3.8.6, Java 7, announce, release notes, reference documentation.
Read more >
Native Support in Spring Boot 3.0.0-M5
It also means that we only feed regular compiled Java to native-image ... Spring Framework 6 ships with a new API that lets...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found