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

Mac not running #105

Closed
wizerdo opened this issue Nov 19, 2021 · 8 comments
Closed

Mac not running #105

wizerdo opened this issue Nov 19, 2021 · 8 comments

Comments

@wizerdo
Copy link

wizerdo commented Nov 19, 2021

Using the latest MacOS version i get this:

Exception in thread "main" java.lang.NoClassDefFoundError: java/awt/event/FocusEvent$Cause
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethod(Class.java:2128)
at java.awt.Component.isCoalesceEventsOverriden(Component.java:6224)
at java.awt.Component.access$500(Component.java:186)
at java.awt.Component$3.run(Component.java:6178)
at java.awt.Component$3.run(Component.java:6176)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Component.java:6175)
at java.awt.Component.(Component.java:6144)
at java.awt.Container.(Container.java:285)
at javax.swing.JComponent.(JComponent.java:588)
at javax.swing.JLabel.(JLabel.java:160)
at javax.swing.JLabel.(JLabel.java:235)
at seesaw.core.proxy$javax.swing.JLabel$Tag$fd407141.(Unknown Source)
at seesaw.core$label.invokeStatic(core.clj:1185)
at seesaw.core$label.doInvoke(core.clj:1157)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at igoki.core$splash_BANG_.invokeStatic(core.clj:49)
at igoki.core$splash_BANG_.doInvoke(core.clj:33)
at clojure.lang.RestFn.invoke(RestFn.java:439)
at igoki.core$_main.invokeStatic(core.clj:81)
at igoki.core$_main.doInvoke(core.clj:80)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at igoki.core.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: java.awt.event.FocusEvent$Cause
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 27 more

Do you have an idea what's going wrong?

@CmdrDats
Copy link
Owner

Hi, I remember seeing this - I suspect it's to do with an older version of java installed - if you open terminal and type java -version it should confirm it. This class was introduced in java 9.

Curious though - I have tested this with java 8 - I wonder if it's something specifically in the splash screen code.. I'll have a look.

@CmdrDats
Copy link
Owner

actually - I think I do understand the reason for this - if you're running java 8, and I compiled the jar with latest java 16 or 17, then main namespace would have done an ahead-of-time compile, probably binding to the availability of this class.

So. I'll just remove the splash screen and trim the core mainspace down and cut a new release tonight. Will comment on here as soon as I've done so.

CmdrDats added a commit that referenced this issue Nov 19, 2021
@wizerdo
Copy link
Author

wizerdo commented Nov 19, 2021

Yes I downloaded JDK 17 which ran it successfully. although now I have another problem (see the new issue) ;)

@CmdrDats
Copy link
Owner

haha, ok - I've pushed this release: https://github.com/CmdrDats/igoki/releases/tag/0.7.1 for this issue xD

@CmdrDats
Copy link
Owner

hmm, i haven't seen a new issue now - still making it?

@wizerdo
Copy link
Author

wizerdo commented Nov 19, 2021

haha yeah, its actually an old issue as it turnes out. I can't grant permission with macOS Monterey to access the camera

@wizerdo
Copy link
Author

wizerdo commented Nov 19, 2021

so that is problem #64

@CmdrDats
Copy link
Owner

cool, i'll optimistically close this issue then :)

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