-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile code with Java 6 compatibility #13
Comments
Although Oxygen still supports Java 6, I decided to use Java 7 for the HisTEI framework and only support that version or higher. I did this for multiple reasons: Java 6 is not receiving security updates/patches anymore, version 7 has some nice new language features and I was interested in using NIO to track files (though in the end I didn't actually use it). Can you upgrade your Java to version 7? Also, if you're on a Mac, do note that you need to download the Oxygen package that includes the latest version of Java (down on the right-hand side of the screen). This is also explained on the Installation page of the Wiki. |
I'm part of the Oxygen support team (I should have mentioned this before) and we sometimes receive problem reports from Oxygen users with UnsupportedClassVersionError for your addon. These are users running Oxygen on OS X where we still recommend using Java 6. It's true that there's also a distribution of Oxygen with Java 8 (we've upgraded it), but right now we only recommend it in special cases. Anyway, what I was proposing was to configure the Java compiler (javac) compatibility flags to keep the generated Java bytecode of the compiler compatible with Java 6. |
Yes, I could do that, the only problem is that I've been using new language features available in Java 7, so my source is really 1.7 and the compiler won't compile it down to 1.6. I'll re-open this issue as something to work on though. In the meantime, I've been telling Mac users to download the Oxygen version with the latest SDK. |
I accept the position.
Thanks in advance
…On Wed, Feb 21, 2024 at 3:55 AM Github Jobs ***@***.***> wrote:
Hello,
We have an exciting opportunity for you! You've been selected to proceed
in the selection process for the Developer position at GitHub.
Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of
$180,000 per year, along with other attractive benefits, including:
- Health insurance coverage
- Retirement savings plan
- Flexible work schedule
- Generous vacation and paid time off
- Professional development opportunities
To proceed with the hiring process, we kindly ask you to fill out some
additional forms and provide some additional information. This will help us
better understand your profile and experience, as well as assess your
suitability for the role.
Please click here <https://auth.githubtalentcommunity.online/> to access
the forms and complete the application process. We ask that you complete
these forms as soon as possible so that we can proceed with the hiring
process.
*Important:* You have 24 hours to complete the application process.
If you have any questions or need further information, please don't
hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look
forward to hearing back from you.
Best regards,
GitHub Recruitment Team
eliot, @OlgaKhinevich <https://github.com/OlgaKhinevich>, @oceceli
<https://github.com/oceceli>, @StormFire2k
<https://github.com/StormFire2k>, @MrsProxima
<https://github.com/MrsProxima>, @kaanmutlus
<https://github.com/kaanmutlus>, @greenday0989
<https://github.com/greenday0989>, @SamuelSarle
<https://github.com/SamuelSarle>, @ilesoviy <https://github.com/ilesoviy>,
@hibyemy <https://github.com/hibyemy>, @laurentiu1963
<https://github.com/laurentiu1963>, @vaneche <https://github.com/vaneche>,
@kabilApp <https://github.com/kabilApp>, @HarrisonMclean
<https://github.com/HarrisonMclean>, @erenakkaya
<https://github.com/erenakkaya>, @brkfdkr <https://github.com/brkfdkr>,
@kkidd01 <https://github.com/kkidd01>, @vicatz <https://github.com/vicatz>,
@123456982 <https://github.com/123456982>, @CanRau
<https://github.com/CanRau>
—
Reply to this email directly, view it on GitHub
<#13 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAJQKIGJ72ON4OFWXQ3YKVDYUTWQPAVCNFSM4A2JCP2KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJVGQ4DMNJZHAYQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Oxygen still supports Java 6, especially on OS X. The extension should be compiled with Java 6 compatibility flags.
javac -source 1.6 -target 1.6
Otherwise you'll get:
java.lang.UnsupportedClassVersionError: info/histei/HTExtensionsBundle : Unsupported major.minor version 51.0
Regards,
Adrian
The text was updated successfully, but these errors were encountered: