Giter Club home page Giter Club logo

Comments (12)

a2geek avatar a2geek commented on July 20, 2024 1

I just released 1.6.0 and there is a java5 jar in there.
Hopefully this works out!

from applecommander.

a2geek avatar a2geek commented on July 20, 2024

Are you looking for the command-line interface or more the GUI?

We maybe can experiment with targeting an earlier JVM. Not really certain how/if that will work, but it may be worth a shot. This cascades into related projects as well (SHK, BASIC tokenizer, as well as the AppleSingle support). Some of those use Java 8 language features, so compiling with Java 1.5 becomes an issue.

from applecommander.

gungwald avatar gungwald commented on July 20, 2024

from applecommander.

gungwald avatar gungwald commented on July 20, 2024

To actually answer your question, I'm only concerned about the command line interface.

from applecommander.

gungwald avatar gungwald commented on July 20, 2024

I was able to use retrolambda to convert the ac jar file to be java 5 compatible. I attached the script I used bye gradle or maven can be used too.

AppleCommander-ac-1.4.0.jar.java5.zip

retrolambda.txt

from applecommander.

a2geek avatar a2geek commented on July 20, 2024

Wow! I never knew anything like this existed. 😂
My quick google also came up with an actual Gradle plugin: https://github.com/evant/gradle-retrolambda

from applecommander.

gungwald avatar gungwald commented on July 20, 2024

from applecommander.

a2geek avatar a2geek commented on July 20, 2024

Looks like the Gradle plugin isn't going to work (at least not easily) with the weird Gradle build I setup for AppleCommander (which is fine).

The plugin updates every *.class file but only those that are sourced from AppleCommander itself. The 3rd party libraries remain whatever version they were (1.8 mostly).

So I'm pulling in your script (altered to exist in a tools directory) since it updates/fixes the final product, including any dependencies.

from applecommander.

gungwald avatar gungwald commented on July 20, 2024

from applecommander.

a2geek avatar a2geek commented on July 20, 2024

Yes, I did see that!

I actually left it in place since I've been running it against the gradle output in the build directory. I think that means gradle will clean it up whenever I do a ./gradlew clean assemble (etc).

from applecommander.

gungwald avatar gungwald commented on July 20, 2024

from applecommander.

polluks avatar polluks commented on July 20, 2024

@a2geek java.util.Objects is part of Java 7!

java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

java -jar ac.jar -as samples.dsk ascii <"ascii"
Exception in thread "main" java.lang.NoClassDefFoundError: java/util/Objects
	at io.github.applecommander.applesingle.AppleSingle.read(AppleSingle.java:146)
	at com.webcodepro.applecommander.ui.ac.putAppleSingle(ac.java:362)
	at com.webcodepro.applecommander.ui.ac.putAppleSingle(ac.java:354)
	at com.webcodepro.applecommander.ui.ac.main(ac.java:156)

from applecommander.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.