GithubHelp home page GithubHelp logo

Comments (11)

theapache64 avatar theapache64 commented on September 1, 2024 2

@rickclephas Ohh you're using the M1. That needs a separate binary I guess.

from stackzy.

theapache64 avatar theapache64 commented on September 1, 2024

Can you enter the command java -version in your terminal and paste the output here?

from stackzy.

SteinerOk avatar SteinerOk commented on September 1, 2024

I try to launch stackzy on MacOS 12.1, but receive this error:

image

from stackzy.

rickclephas avatar rickclephas commented on September 1, 2024

I am not quite sure yet where the JAVA_HOME should be set for this to work automatically but you can open the app with the following command:

JAVA_HOME=$(/usr/libexec/java_home -v 15) open /path/to/Stackzy.app

from stackzy.

theapache64 avatar theapache64 commented on September 1, 2024

I think you've JDK installed, but JAVA_HOME is not set. Maybe I shouldn't rely on JAVA_HOME at all.

private fun checkJdk(onExist: () -> Unit) {
val isJdkExists = System.getenv("JAVA_HOME") != null
if (isJdkExists) {
onExist()
} else {
_syncFailedMsg.value = "Ohh no! It looks like you don't have JDK installed 😥"
}
}

@SteinerOk Can you enter echo $JAVA_HOME in your terminal?

from stackzy.

theapache64 avatar theapache64 commented on September 1, 2024

@SteinerOk @AddictArts Can you guys take a pull from master and try run ./gradlew run now? I've made some changes

from stackzy.

SteinerOk avatar SteinerOk commented on September 1, 2024

@theapache64, you are right :(
image

from stackzy.

SteinerOk avatar SteinerOk commented on September 1, 2024

@theapache64 I launched via JAVA_HOME=$(/usr/libexec/java_home -v 15) open /path/to/Stackzy.app, but got new error:
image

from stackzy.

rickclephas avatar rickclephas commented on September 1, 2024

I think you've JDK installed, but JAVA_HOME is not set. Maybe I shouldn't rely on JAVA_HOME at all.

Even with JAVA_HOME set in ~/.zshenv, ~/.zshrc or ~/.zprofile I got the same error.
Maybe it should be set somewhere else for it to affect applications as well?

Can you guys take a pull from master and try run ./gradlew run now? I've made some changes

I am seeing #80 when running ./gradlew run.
Actually ./gradlew run fails with:

Execution failed for task ':run'.
> Process 'command '/Library/Java/JavaVirtualMachines/zulu-15.jdk/Contents/Home/bin/java'' finished with non-zero exit value 134

However ./gradlew createDistributable does create the app which no longer shows the error message 👍🏻 .

from stackzy.

theapache64 avatar theapache64 commented on September 1, 2024

@rickclephas Interesting.
I've created an uberJar for macOS. Can you guys download this jar and run java -jar /path/to/jar ?

@rickclephas @SteinerOk @AddictArts

from stackzy.

rickclephas avatar rickclephas commented on September 1, 2024

@theapache64 I am using macOS 12.1 (MBP M1 Pro) with JDK 15 (Azul) and get the following error with that jar:

Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing.
	at org.jetbrains.skiko.Library.load(Library.kt:72)
	at org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:12)
	at org.jetbrains.skia.Image.<clinit>(Image.kt:144)

from stackzy.

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.