Comments (5)
You can still use a more advanced Java to do it, but simply pass a command-line argument (configured in Maven) to compile for an older version. There is also a Maven plugin I use to check during the build process that I have not used any classes or APIs that are newer than my target Java version. I will investigate what those are and share them here.
from radiance.
Hopefully I just missed this line in build.gradle for Hibiscus:
sourceCompatibility = 1.8
I'll check in the evening when I get to the machine I use to upload to Sonatype.
from radiance.
Ok. In my Beat Link project which targets Java 6, check out the following sections of the pom.xml:
- In
<project>…<build>…<plugins>
I configure themaven-compiler-plugin
to expect Java 6 source and emit Java 6 classes. - Immediately after that I configure the Codehaus
animal-sniffer-maven-plugin
to validate that I am only using APIs available in Java 6.
With those things in place, I can ensure that my builds, if they succeed, will work fine on Java 6.
from radiance.
I don’t think source compatibility is enough; you need to be sure you are generating the proper class format as well, and that you haven’t accidentally referred to some class that is available in a more recent JDK but not in Java 8 (in your case), or the class that refers to it will fail to load with a NoClassDefFoundError
. That’s what the animal-sniffer plugin does.
from radiance.
Should be fixed now with sourceCompatibility
in build.gradle for Hibiscus.
from radiance.
Related Issues (20)
- How to disable a Command ? HOT 1
- [Component] Clean up presentation model for ribbon galleries
- [Component] Broken behavior when a color selector command is added to the ribbon taskbar
- [Component] Issues with ribbon taskbar content and ribbon context menu HOT 1
- [Component] Use dimension-based sizes for icons
- [Component] Remove the top spacer in ribbon application menu
- [Component] Fix ribbon issues in the ktx DSL wrappers
- [Component] Use consistent group header background painting in color selector popup menu
- [Component] Configurable number of derived color rows in color selector
- [Component] Incorrect display in recent section of color selector menu
- (Theming) Inconsistent highlighting for long JTables HOT 21
- [Component] RTL-aware Side enum values
- [Theming] Maximizing windows incorrect with Windows scaling and multiple screens HOT 12
- [Theming] Support customizing title pane buttons HOT 3
- [Component] Revisit CommandButtonPresentationModel.isMenu
- Radiance theming of SwingX components HOT 1
- [Component] Revisit the class hierarchy of commands and presentation models
- [Theming] RadiancePanelTreeCellRenderer like a RadiancePanelListCellRenderer
- [Gradle] SVG Transcoder run error HOT 5
- [Component] Add model-based label component
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiance.