Skip to content
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

Could not open jar file #69

Open
R-D-D-D opened this issue Sep 15, 2019 · 5 comments
Open

Could not open jar file #69

R-D-D-D opened this issue Sep 15, 2019 · 5 comments

Comments

@R-D-D-D
Copy link

R-D-D-D commented Sep 15, 2019

Please read up on how to write a good question

Environment

Describe your development environment

  • IntelliJ version: 2019.2
  • Java version: 11.0.4
  • Operating system version: Mac OS Mojave 10.14.6
  • other packages' versions

Issue

When I am trying to double click and open the jar file compiled using gradle shadowJar on a mac with Jar launcher(A mac utility app to open jar file), it prompts me saying it cant be lauched and check console for error message. The closest two things in my console that looks like an error message is in the code below, but after much googling I cant seem to figure out what is the problem, may I get some help? The jar file runs perfectly fine when opened from terminal. Will this affect grading since grading is based on jar file?

LSExceptions shared instance invalidated for timeout.

NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 0
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600000a686e0
 (
    "<NSDarkAquaAppearance: 0x600003c6f6c0>",
    "<NSSystemAppearance: 0x600003c6f240>"
)>
@damithc
Copy link
Collaborator

damithc commented Sep 15, 2019

Did you try running it using java -jar command (instead of double-clicking)?

@kylase-learning
Copy link
Contributor

kylase-learning commented Sep 16, 2019

Have you tried using Java 11.0.2 instead? There was a student with 11.0.4 and had problem with it. Using 11.0.2 resolved the issues.

Please refer to #44

@R-D-D-D
Copy link
Author

R-D-D-D commented Sep 16, 2019

It runs fine with java -jar command. I tried using java 11.0.2 instead but it does not change anything.

@damithc
Copy link
Collaborator

damithc commented Sep 16, 2019

Perhaps you can share the jar file here for someone else to try it?

@damithc
Copy link
Collaborator

damithc commented Sep 17, 2019

For the time being, it's good enough if it can be run using the command line, until this issue is resolved.

@damithc damithc added the week.6 label Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants