-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Java 6/7 Compatibility #28
Comments
I was going to test this as well, but guess I don't need to. It would be nice to have it work with Java 6 like the old launcher did. |
When I made this, I wasn't aware people still cared about Java 6. As such, it's not officially supported. Maybe try building it yourself with a java 6 JDK? I've never tried it. |
Alright thanks for answering |
Can't just give up that easily lol. Will try building it myself |
After that I tried building it in Java 7 and this happened. [INFO] Scanning for projects... Process finished with exit code 1 And yes, I'm sure I cloned it correctly because I repeated the process 3 times. |
How do you run .sh files on Windows? I've been trying to get a Linux VM up with openjdk6. |
So I got it kinda working in Linux, but I need a version of fernflower compatible with Java 6 to get further. |
oh true. the decompilation output may be different, so the patches might not apply |
Where would I find a older compiled version of fernflower for Java 6? |
fesh0r/fernflower@35259c3 this commit seems like the commit before they began requiring java 8, seems ancient. Are you sure you can't use the java 8 version of fernflower? It may produce output compatible with java 6 with some modification |
Is there a flag or something I can set to make it ignore the wrong Java version? |
you will still need to run fernflower with java 8, because a java 6 JRE can't run java 8 class files (the format probably changed) |
So decompile with Java 8, then do the rest with Java 6? |
yes |
I get this even with Java 8 administrator@administrator-VirtualBox:~/olauncher$ ./applyPatches.sh
~/olauncher |
So I got further, but maven automatically set my java back to java 8, and I got this error Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom |
hmm maybe you can run maven with java 8 but set the source/target compatibility to 1.6. That will make it write java 6 class files with a java 8 jdk |
How exactly would I do that? |
there should be a thing in the pom.xml |
I found a target thing and set it to 1.6 but I get this when compiling. |
You may be able to downgrade or remove that plugin. All it does is generate the version string for the window title and other stuff. Not particularly necessary. |
How exactly would I go about doing that? |
edit the pom.xml in the olauncher folder, the plugin configuration should be in there |
I replaced it with 4.9.9 and I get this error now |
Just get rid of the plugin, you don't need it. It's not worth the trouble it's causing you. |
I did remove it and got a similar looking error, still have it up to send. |
you need to set both source and target to 1.6 (you will likely have to modify the code to remove java8-only features that may have been used) |
How do I know what's Java 8 or not? |
what doesn't compile when you set source and target to 1.6 |
you're going to have to rectify all of those by replacing them with constructs supported in java 6 |
I don't know how to do that. |
@bigfoot547 won't you be able to do it for us pleaseee? |
🥺 bruh github pleading emoji sucks |
https://github.com/olauncher/olauncher/tree/java6 try this branch NOTE: it is unlikely to work - a lot of the libraries are probably compiled for java 8. You may have to find java 6 versions of affected libraries. I cannot test this because I don't have a java 6 jdk. |
If you're on Linux, this installs and just works on latest Ubuntu LTS (and probably forks too). Just select Java 6 (or 7) and get the .deb |
So it compiled without issue. I tried genredist, got an error, but the output jar without genredist works fine, at least with Java 8. For some reason I can't select Java 6 even though it was used to compile in my VM, so I will make a quick XP VM with Java 6 for testing. |
yeah, I suspected that would be the case. You're going to have to find versions of the libraries used for java 6. It shouldn't be too hard, just not something I have the time to do right now. |
Hello!
I was wondering if it would be possible to add compatibility for java 6 or 7, because I wanted to be able to run the launcher on older OSes, thank you :)
The text was updated successfully, but these errors were encountered: