Login  Register

Re: Jogl/Jogamp on Java 9 no compatible graphics context

Posted by douglaslyon on Jan 07, 2018; 3:09pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038486.html

Just to be clear, ImageJ is removed and is not on the machine.

You wrote:
"Look for "j3d"." I put this into "search programs and files" and came
up empty.

Nothing shows up....

You wrote:
"Ok the problem seems to come from mixing Java3D 1.6.0
 > with a version of imagej using an old version of Java3D."

but imagej is uninstalled, so how can that still be true?

You wrote:
"Using Java3D 1.7.0 would avoid some cases of
 > name clashes as it uses a different package namespace but anyway, you
 > can't load both JOGL 1 for an obsolete version of Java3D and JOGL 2 for
 > Java3D >= 1.6."

But at this point, your jogl example does not work with webstart on
a windows machine. I do not think you can blame java3d for this, right?

You wrote:
"Maybe the uninstaller of imagej doesn't clean up
 > everything correctly"

Hmm, tricky! I did search the C: drive for imagej,
The program files/imagej was still there.
Good call!!

I removed the folder.

You write:
"In my humble opinion, some of your problems can't be reproduced by
 > others including me, there are some serious problems on your own
 > machines."

Here is my test of your program for the simple quads:
http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp

Are you able to reproduce the exception on your machine (windows 7 is
what I am using)?

I think predrag is also able to reproduce exception. We had PM about that.

Getting the error consistent across platforms does seem important.

You write:
"Using Java3D 1.7.0 would avoid some cases of
 > name clashes as it uses a different package namespace ..."

I would like to just focus on getting jogl to work with windows and
webstart, for now.

"I advise you to wrap your JARs into a native software with Oracle
 > javapackager ".. or
 > with JNDT (my tool) but it will be up to you to push the updates.

Ah ha, that is different. JNDT, I never heard of this.
The links listed here:
https://gouessej.wordpress.com/2014/11/22/ardor3d-est-mort-vive-jogamps-ardor3d-continuation-ardor3d-is-dead-long-life-to-jogamps-ardor3d-continuation/#jndt
are bad...for example:
http://svn.code.sf.net/p/tuer/code/pre_beta/jndt.xml
no longer goes anywhere...

I now have 193 jnlp files that help with webstart deployment.

Switching them over to some new technology like jndt sounds like a lot
of work.

Thanks!
  - Doug

On 1/7/18 9:09 AM, gouessej [via jogamp] wrote:

> Look for "j3d". Ok the problem seems to come from mixing Java3D 1.6.0
> with a version of imagej using an old version of Java3D. You mustn't mix
> two versions of Java3D. Using Java3D 1.7.0 would avoid some cases of
> name clashes as it uses a different package namespace but anyway, you
> can't load both JOGL 1 for an obsolete version of Java3D and JOGL 2 for
> Java3D >= 1.6. Maybe the uninstaller of imagej doesn't clean up
> everything correctly.
>
> I advise you to wrap your JARs into a native software with Oracle
> javapackager
> <https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javapackager.html> or
> with JNDT (my tool) but it will be up to you to push the updates.
>
> Sorry but if you need to copy a DLL that should be available in the JRE,
> I don't see what I can do to help you.
>
> In my humble opinion, some of your problems can't be reproduced by
> others including me, there are some serious problems on your own
> machines. For example, I have no problem of missing AWT or whatever with
> Java 1.9 and earlier versions under Microsoft Windows 10 and JOGL 2 with
> or without Java3D.
>
> I advise you to switch to a more recent version of imagej and to modify
> it if necessary to make it use Java3D 1.6.0 or 1.7 instead of an
> homemade fork with yet another different namespace "org.scijava.java3d".
> Julien Gouesse | Personal blog <http://gouessej.wordpress.com> | Website
> <http://tuer.sourceforge.net>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038485.html
> To unsubscribe from Jogl/Jogamp on Java 9, click here
> <
> NAML
> <
http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>