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

Export Application gives java.lang.ClassNotFoundException: --full-screen error #488

Closed
dantepfer opened this issue May 20, 2022 · 5 comments · Fixed by #502
Closed

Export Application gives java.lang.ClassNotFoundException: --full-screen error #488

dantepfer opened this issue May 20, 2022 · 5 comments · Fixed by #502

Comments

@dantepfer
Copy link

Description

Using Processing 4.0 beta 8, on Intel Mac (MacBook Pro 2019), Montery 12.4, Exported Applications fail with the following error:

java.lang.RuntimeException: java.lang.ClassNotFoundException: --full-screen
	at processing.core.PApplet.runSketch(PApplet.java:10397)
	at processing.core.PApplet.main(PApplet.java:10187)
	at Particles.main(Particles.java:148)
Caused by: java.lang.ClassNotFoundException: --full-screen
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at processing.core.PApplet.runSketch(PApplet.java:10390)

This is true even for sketches that are not running full screen, and occurs whether or not Java is embedded.

Steps to Reproduce

  1. open Particles example
  2. export application
  3. try running exported application, it will silently fail
  4. control-click on exported application, go to contents > MacOS > Particles, open Particles
  5. app will fail with the above error in terminal
  • Processing version: 4.0 beta 8
  • Operating System and OS version: MacOS 12.4
  • Computer: MacBook Pro (16-inch, 2019)
@clankill3r
Copy link

I tried to reproduce on OSX 10.15.7, but on this OS I can run the exported application. Only the present mode is not working, it's always windowed.

@benfry
Copy link
Owner

benfry commented Jun 19, 2022

I'm seeing what @clankill3r is seeing.

@dantepfer you might check whether there's an old version of core.jar somewhere in your path.

@sampottinger it looks like this has been broken since alpha 1, which suggests there might be a regression in the preprocessor, because it's no longer inserting the lines into the source during the build to properly run things in “present” mode.

@sampottinger
Copy link
Collaborator

sampottinger commented Jun 19, 2022 via email

@benfry
Copy link
Owner

benfry commented Jun 19, 2022

Awesome thank you Sam.

benfry added a commit that referenced this issue Jun 19, 2022
sampottinger added a commit that referenced this issue Jun 21, 2022
Clean up the footer writer section of the preprocessor for easier reading but also fix adding and looking for --full-screen which appears to have been left off at some point.
@github-actions
Copy link

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants