Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

LordSmoke
This post was updated on .
I have been developing JOGL, J3D apps for several years that seem to run fine on OS X and Windows, but I recently learned of problems on Ubuntu/Linux.

I have tested five apps on two versions of Ubuntu (18.04.1, 18.10) and four versions of Java (Oracle 8, OpenJDK 8, OpenJDK 10.0.2, and OpenJDK 11). Ubuntu versions running in VirtualBox 6.0 on Mac OS 10.14.2.

Non-graphics (non-JOGL/J3D) programs work fine. The only graphics programs that work are one version from July 2014 that will run on Oracle Java 8 on Ubuntu 18.10 and another compiled on FEB 2018 that will run on Ubuntu 18.10 on either Oracle Java 8 or OpenJDK 8. Some X11 shutdown errors, but both work.

Hoping to track down the problems one-by-one, I tried compiling on Ubuntu 18.04 using Netbeans 8.2 and Oracle Java 8 (the versions I used on the Mac) and JOGL 2.3.2 from OCT2015 and J3D from APR2015.

But, I get immediate errors. Probably a Netbeans setup issue and the JOGL 2.3.2 and J3D APR2015 libraries are found, but it says various packages do not exist and it cannot find things like...

import com.sun.j3d.utils.geometry.Sphere;
import com.jogamp.opengl.GLProfile;
import com.jogamp.common.nio.Buffers;
import com.jogamp.graph.curve.opengl.RegionRenderer;
import com.jogamp.graph.curve.opengl.RenderState;
import com.jogamp.graph.curve.opengl.TextRegionUtil;
import com.jogamp.graph.geom.SVertex;
import com.jogamp.opengl.DebugGL3;
import static com.jogamp.opengl.GL.GL_BLEND;
import static com.jogamp.opengl.GL.GL_FRONT_AND_BACK;
import static com.jogamp.opengl.GL.GL_ONE_MINUS_SRC_ALPHA;
import static com.jogamp.opengl.GL.GL_SRC_ALPHA;
import static com.jogamp.opengl.GL2GL3.GL_FILL;
import static com.jogamp.opengl.GL2GL3.GL_LINE;
import com.jogamp.opengl.GL3;
import com.jogamp.opengl.GLAutoDrawable;
import com.jogamp.opengl.GLCapabilities;
import com.jogamp.opengl.GLEventListener;
import com.jogamp.opengl.GLException;
import com.jogamp.opengl.GLProfile;
import com.jogamp.opengl.awt.GLCanvas;
import static com.jogamp.opengl.math.FloatUtil.invertMatrix;
import static com.jogamp.opengl.math.FloatUtil.makeIdentity;
import static com.jogamp.opengl.math.FloatUtil.makeRotationEuler;
import static com.jogamp.opengl.math.FloatUtil.makeScale;
import static com.jogamp.opengl.math.FloatUtil.makeTranslation;
import static com.jogamp.opengl.math.FloatUtil.multMatrix;
import static com.jogamp.opengl.math.FloatUtil.multMatrixVec;
import static com.jogamp.opengl.math.FloatUtil.transposeMatrix;
import com.jogamp.opengl.util.FPSAnimator;
import com.jogamp.opengl.util.glsl.ShaderProgram;

I have spent my free time for a number of days testing and worrying about this and searching the forum for clues. I can't even start running down jogl-specific issues until I can compile.

I suspect this is some Netbeans setup issue I haven't had to worry about for a very long time.

Any ideas/suggestions/comments/solutions?

TIA

Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

gouessej
Administrator
Hello

What do you mean by "J3D APR2015"? I advise you to read this:
http://forum.jogamp.org/JogAmp-s-Java3D-continuation-Java3D-1-6-0-and-later-td4030907.html

We don't maintain Java3D <= 1.5.

Moreover, there is (almost?) no problem with JOGL and GNU Linux. I have used JOGL with various GNU Linux distributions since 2006, it works like a charm. There is only one known bug with the latest versions of Mesa.

The problem is that your post is very inaccurate. You wrote "But, I get immediate errors" but which errors do you get? How can you expect to get some help by providing so few pieces of information about your concern?

Please strictly follow my instructions and it should work very well:
http://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

LordSmoke
This post was updated on .
Thanks, Julien, I am back at my desk now and working on this.

I had missed the Java3D upgrade as I had not had any problems with my old code - I have been working solely with JOGL GLSL for a few years now and not Java3D. I will check into that.

My post was very general because I think my problem is general Netbeans setup, and nothing JOGL-specific. The errors I was reporting are Netbeans errors flagging import lines with the error msg. "Package xxxxx does not exist."

I will check out the updated Java3D libs and see if that, as I expect, solves all or most of my problems.

Will report here the results.

Again, thanks!

UPDATE: FWIW, I can now compile in Ubuntu. At least I now see problems to investigate and more experiments to run before bothering the community. Thanks, again.
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

gouessej
Administrator
Thank you for your feedback. Let us know which problems are still there.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

LordSmoke
UPDATE: Okay, I have had my first round of success using a recent jogamp-fat.jar (FEB 2018?) and the 2017 j3D jars provided by Julien.

All three of my test apps in their latest form (not the old downloaded versions) compile and run in Ubuntu with Oracle 8. The non-J3D ones also mostly run under OpenJDK. I won't post any error details until I have time to do some more research on my own.

Here are pics of two apps running in Ubuntu 18.04, Oracle Java 8 on a VirtualBox 6.0 under Mac OS X 10.14.2
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu/Linux misc. problems: jogl, j3d, netbeans...

LordSmoke
Apparently I can have only one image per reply, so here is the non-J3D graphics program running. There is a lot going on in this one...