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

JES 5.02 may not be working on MacOS Mojave (10.14)? #119

Open
hcientist opened this issue Oct 2, 2018 · 10 comments
Open

JES 5.02 may not be working on MacOS Mojave (10.14)? #119

hcientist opened this issue Oct 2, 2018 · 10 comments

Comments

@hcientist
Copy link

hcientist commented Oct 2, 2018

It is maybe related to the following

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 94, in run_module
    return _run_module_code(code, init_globals, run_name,
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 51, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/dependencies/jython/Lib/runpy.py", line 32, in _run_code
    exec code in run_globals
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/__main__.py", line 14, in <module>
    setDockIcon()
  File "/Users/tgm/Downloads/jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/platform/macosx/__init__.py", line 59, in setDockIcon
    app.setDockIconImage(None)
	at com.apple.eawt._AppDockIconHandler.setDockIconImage(_AppDockIconHandler.java:77)
	at com.apple.eawt.Application.setDockIconImage(Application.java:346)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException

I edited jes-5.020-macosx/JES.app/Contents/Resources/Java/jes/python/jes/__main__.py to remove the offending call and it seems to run well! (I am using jenv to manage multiple java versions and have set $JES_JAVA_HOME="$HOME/.jenv/versions/1.8.0.181"

hcientist added a commit to hcientist/jes that referenced this issue Oct 2, 2018
@mjguzdial
Copy link
Contributor

mjguzdial commented Oct 2, 2018 via email

@hcientist
Copy link
Author

@mjguzdial for me this version does not work. Though perhaps some others can solve it by installing the default 1.6 jdk if they have it somewhere.

in the jes-launcher.sh this version insists java be located at JAVA="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java", but I started using jenv (see above) and so for me it's more convenient to use the JES_JAVA_HOME env var to specify my java. I couldn't readily find jdk 1.6 for Mac, so I am using 1.8. I don't knwo if it's related to this difference, but I then get the error in #119 (comment) and that solution I mentioned applies here again.

@mjguzdial
Copy link
Contributor

mjguzdial commented Oct 3, 2018 via email

@jlmayfield
Copy link

jlmayfield commented Aug 21, 2019

This is may be off topic for this specific issue, but the special version for the MAC won't download. It either keeps restarting or stalls and times out. The retina aware download keeps getting flagged as malware. I have a few students use MAC and I'm not sure where to go from here if they can't get one of the workaround versions of JES to download.

@mjguzdial
Copy link
Contributor

mjguzdial commented Aug 21, 2019 via email

@jlmayfield
Copy link

I found that link in another issue and that seems to do the trick. I'll report back if we have further problems.

@sazamore
Copy link

@jlmayfield please follow up. I'm using this for a course and a few students have run into the same problem.

@mjguzdial
Copy link
Contributor

mjguzdial commented Aug 26, 2019 via email

@jlmayfield
Copy link

@sazamore I directed MAC students to the Beta and it seems to be doing the trick. They mostly get hung up on the message about the program coming from an unidentified developer

@mjguzdial
Copy link
Contributor

mjguzdial commented Aug 27, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants