It has been solved in latest beta (14.4 beta 23E5191e).
S.
Post
Replies
Boosts
Views
Activity
Here is the source of the program , which uses joGL (https://jogamp.org/deployment/jogamp-current/fat/jogamp-fat.jar) and the commands (conda openJDK 17):
(base) mottelet@macmottelet-cr-1 ~ % uname -a
Darwin macmottelet-cr-1.utc 23.4.0 Darwin Kernel Version 23.4.0: Fri Jan 12 22:41:06 PST 2024; root:xnu-10063.100.610.0.2~19/RELEASE_ARM64_T8103 arm64
(base)mottelet@macmottelet-cr-1 ~ % javac -cp jogamp-fat.jar HelloWorld.java
(base) mottelet@macmottelet-cr-1 ~ % java -cp jogamp-fat.jar:. HelloWorld
zsh: trace trap java -cp jogamp-fat.jar:. HelloWorld
stack trace is attached to this message
import com.jogamp.opengl.*;
import com.jogamp.opengl.awt.GLCanvas;
import javax.swing.JFrame;
public class HelloWorld implements GLEventListener {
@Override
public void init(GLAutoDrawable arg0)
{
}
@Override
public void display(GLAutoDrawable drawable) {
final GL2 gl = drawable.getGL().getGL2();
//Draw H
gl.glBegin(GL2.GL_LINES);
gl.glVertex2d(-0.8, 0.6);
gl.glVertex2d(-0.8, -0.6);
gl.glVertex2d(-0.8, 0.0);
gl.glVertex2d(-0.4, 0.0);
gl.glVertex2d(-0.4, 0.6);
gl.glVertex2d(-0.4, -0.6);
gl.glEnd();
//Draw W
gl.glBegin(GL2.GL_LINES);
gl.glVertex2d(0.4,0.6);
gl.glVertex2d(0.4,-0.6);
gl.glVertex2d(0.4,-0.6);
gl.glVertex2d(0.6,0);
gl.glVertex2d(0.6,0);
gl.glVertex2d(0.8,-0.6);
gl.glVertex2d(0.8,-0.6);
gl.glVertex2d(0.8,0.6);
gl.glEnd();
}
@Override
public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3, int arg4)
{
}
@Override
public void dispose(GLAutoDrawable arg0)
{
}
public static void main(String[] args) {
final GLProfile gp = GLProfile.get(GLProfile.GL2);
GLCapabilities cap = new GLCapabilities(gp);
final GLCanvas gc = new GLCanvas(cap);
HelloWorld sq = new HelloWorld();
gc.addGLEventListener(sq);
gc.setSize(400, 400);
final JFrame frame = new JFrame("Hello World");
frame.add(gc);
frame.setSize(500,400);
frame.setVisible(true);
}
}
[full stack trace](https://forums.developer.apple.com/forums/content/attachment/6d44b489-7b70-4649-91d9-beba20356044)
Ok, then, prove it with some piece of code...
S.
Hi,
You can safely replace -framework JavaVMwith -framework JavaNativeFoundation. It worked for me.
S.
Hi.
You will always have an output like
/Applications/MyApp.app: rejected
origin=3rd Party Mac Developer Application: MyOrg (MYORGDEVID)
until you notarize your application. See e.g. https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution
S.