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

AttribureError on startup when running in Ubuntu 18.04.3 LTS #124

Open
dmgatti opened this issue Aug 11, 2019 · 4 comments
Open

AttribureError on startup when running in Ubuntu 18.04.3 LTS #124

dmgatti opened this issue Aug 11, 2019 · 4 comments

Comments

@dmgatti
Copy link

dmgatti commented Aug 11, 2019

I just downloaded the JES Linux tar.gz from: https://github.com/gatech-csl/jes/releases/download/5.020/jes-5.020-linux.tar.gz. I can't get JES started, either as me or as sudo, due to java not being able to find a class. The error is : AttributeError: 'javapackage' object has no attribute 'undo'. It looks like it can't find one of the swing classes. I've set permissions on all of the directories such that I am the owner. If there is a more recent version of JES or if I have the wrong Java version, please let me know.

Ubuntu 18.04.3 LTS
$ java --version
openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

Error message below.

I echo a few of the paths including the CLASSPATH.

$ ./jes.sh
/home/dmgatti/jes-5.020-linux/jes
java
/home/dmgatti/jes-5.020-linux/jes/python:/home/dmgatti/jes-5.020-linux/dependencies/python
/home/dmgatti/jes-5.020-linux/jes/classes.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/AVIDemo.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/imgscalr-lib-4.2.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/jMusic1.7.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/javaosc-core.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/jl1.0.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/jmf.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/jmusic-instruments.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/jsyn.jar:/home/dmgatti/jes-5.020-linux/dependencies/jars/jython-2.5.3.jar
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.google.common.base.internal.Finalizer (file:/home/dmgatti/jes-5.020-linux/dependencies/jars/jython-2.5.3.jar) to field java.lang.Thread.inheritableThreadLocals
WARNING: Please consider reporting this to the maintainers of org.python.google.common.base.internal.Finalizer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Traceback (most recent call last):
File "", line 1, in
File "/home/dmgatti/jes-5.020-linux/dependencies/jython/Lib/runpy.py", line 94, in run_module
return _run_module_code(code, init_globals, run_name,
File "/home/dmgatti/jes-5.020-linux/dependencies/jython/Lib/runpy.py", line 51, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/dmgatti/jes-5.020-linux/dependencies/jython/Lib/runpy.py", line 32, in _run_code
exec code in run_globals
File "/home/dmgatti/jes-5.020-linux/jes/python/jes/main.py", line 21, in
from jes.program import JESProgram
File "/home/dmgatti/jes-5.020-linux/jes/python/jes/program.py", line 44, in
from jes.gui.mainwindow import JESUI
File "/home/dmgatti/jes-5.020-linux/jes/python/jes/gui/mainwindow.py", line 48, in
from jes.gui.editor import JESEditor
File "/home/dmgatti/jes-5.020-linux/jes/python/jes/gui/editor/init.py", line 21, in
from .document import JESEditorDocument
File "/home/dmgatti/jes-5.020-linux/jes/python/jes/gui/editor/document.py", line 27, in
from .undoableedit import UndoableEdit
File "/home/dmgatti/jes-5.020-linux/jes/python/jes/gui/editor/undoableedit.py", line 16, in
class UndoableEdit(swing.undo.AbstractUndoableEdit):
AttributeError: 'javapackage' object has no attribute 'undo'

@mjguzdial
Copy link
Contributor

mjguzdial commented Aug 11, 2019 via email

@dmgatti
Copy link
Author

dmgatti commented Aug 12, 2019 via email

@dmgatti
Copy link
Author

dmgatti commented Aug 12, 2019

I was on Java 11. Downgrading to Java 8 has gotten the IDE up and running.

$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

This may have been due to some incompatability between jython and Java 11. I read about some problems and decided to try downgrading Java. I'm not sure if Java 9 or 10 would work. Hope that this helps someone else.

@mjguzdial
Copy link
Contributor

mjguzdial commented Aug 14, 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

2 participants