Giter Club home page Giter Club logo

Comments (9)

blaisewang avatar blaisewang commented on May 26, 2024 1

To build with JDK 11, you need to modify 19 to 21 lines of scripts/jdk_setup.sh to

wget -nc -O $LINUX_JDK_FILE https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz
wget -nc -O $MACOS_JDK_FILE https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_mac_hotspot_11.0.6_10.tar.gz
wget -nc -O $WINDOWS_JRE_FILE https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_windows_hotspot_11.0.6_10.zip

and re-download the JDK 11 to build.

from img2latex-mathpix.

blaisewang avatar blaisewang commented on May 26, 2024 1

@hmf Haven't thought anyone would concern about the build process. I was hoping people would contribute to the functionality. Definitely will write a contribution / develop guideline if I have a spare weekend in the future.

from img2latex-mathpix.

github-actions avatar github-actions commented on May 26, 2024

[Auto response] Looks like this is your first issue. I will look into it as soon as possible.

from img2latex-mathpix.

blaisewang avatar blaisewang commented on May 26, 2024

Probably you need to change the sourceCompatibility, targetCompatibility, and javafx version to 11 in the build.gradle file

from img2latex-mathpix.

hmf avatar hmf commented on May 26, 2024

@blaisewang My apologies but I was having problems pushing the changes.
I have already changed the JDK version here. As I said, in Gradle it works but the installscript fails.

Please note that the OS detection has bugs in your master. If you like, I can make a pull request.

from img2latex-mathpix.

blaisewang avatar blaisewang commented on May 26, 2024

@hmf I reviewed your code and figured out what might be wrong. This project was originally developed with JDK 11 since last year. So, using JDK 11 should not be a problem here. The problem is that you didn't modify the jdk_setup.sh script. The JDK you initially downloaded inside the jdk/ folder is actually JDK 14.

from img2latex-mathpix.

blaisewang avatar blaisewang commented on May 26, 2024

The build process for this software is not building three versions on three platforms. The software was built in Ubuntu with Travis CI. The org.gradle.internal.os.OperatingSystem couldn't use here as we are not building Windows version on a Windows PC.

21 - 30 lines of .travis.yml script explains how to do the cross-platform build. The -Plinux parameter is passed with ./gradlew runtimeZip, so the project.hasProperty("linux") is true. So does -Pwindows for project.hasProperty("windows") to be true.

The OperatingSystem.current().isWindows() part inside runtime is redundant as launch4j is used to build Windows version software.

I don't think it's a good idea to simply set javafx - version to ${compileJava.targetCompatibility}. There are minor JavaFX version like 11.0.2. The code is compatible with JDK 11, but using JavaFX's latest version such as 11.0.2 is always good practice as a minor version comes with bug fixes and security improvements.

from img2latex-mathpix.

blaisewang avatar blaisewang commented on May 26, 2024

I am using a mac so I put -Pmacos as the default situation to build with ./gradlew runtimeZip. You can use ./gradlew -Plinux runtimeZip to build the Linux version with JDK 11 if you set up JDK correctly inside jdk folder.

from img2latex-mathpix.

hmf avatar hmf commented on May 26, 2024

@blaisewang Thanks for the heads-up. I will make the changes to the script and run Gradle via command line as you indicated above. Maybe these instrcuction could be aded to the documentation.

from img2latex-mathpix.

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.