Results 1 to 12 of 12
  1. #1
    JavaNoob84 is offline Member
    Join Date
    Nov 2011
    Posts
    14
    Rep Power
    0

    Default Building JOGL 2.0 lib properly

    I don't know how many JOGL 2 build instructions I have gone and none are working.

    JOGL Example – Tutorial - doesn't work
    How to build JOGL - doesn't work
    Downloading and installing JOGL - JogampWiki - same

    There must be something obvious here that I am missing. All I want is for it to recognize JOGLish imports. When I include whatever jars instructions say to include in the classpath I constantly get "this jar does not exits even though it clearly is where I am pointing it is".
    Has anyone done this recently?

    Thanks in advance.

  2. #2
    Schabby is offline Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    Hi, I am the author behind schabby.de and would like to fix my post in case that there is something wrong or missing. Could you be more specific what or why it doenst work? Do you get an exception?

    Cheers,

    Johannes
    Last edited by Schabby; 01-27-2012 at 10:29 AM.

  3. #3
    JavaNoob84 is offline Member
    Join Date
    Nov 2011
    Posts
    14
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    I've since followed steps of this tutorial posted in answers on your page: https://sites.google.com/site/justin...ogl-tutorial-1
    xs went away on imports, but I am still getting this:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.jogamp.gluegen.runtime.NativeLibLoader.loadLib raryInternal(NativeLibLoader.java:102)
    at com.jogamp.gluegen.runtime.NativeLibLoader.access$ 000(NativeLibLoader.java:51)
    at com.jogamp.gluegen.runtime.NativeLibLoader$1.run(N ativeLibLoader.java:70)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.jogamp.gluegen.runtime.NativeLibLoader.loadGlu eGenRT(NativeLibLoader.java:68)
    at com.jogamp.common.jvm.JVMUtil.<clinit>(JVMUtil.jav a:56)
    at javax.media.opengl.GLProfile.<clinit>(GLProfile.ja va:1116)
    at HelloWorld.main(HelloWorld.java:14)

    Do I need to post an extra variable in VM args?

    I might sound like a noob but are
    1) Build path
    2) Java build path
    3) Class path
    4) Java path
    all different entities?

  4. #4
    Schabby is offline Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    hmm, ok, that is actually a familiar problem.

    Please try to put all DLL files in your current working directory (that's the directory from which you run the java process).

    You are under Windows? You are using Eclipse?

  5. #5
    JavaNoob84 is offline Member
    Join Date
    Nov 2011
    Posts
    14
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    Yes to both.
    Could you extrapolate on what directory that is?
    Like I have"workspace" in it are all the project folders (proj1, proj2, ..., JOGL2.0_test inside which are src and inside that are HelloWorld.java and renderer.java).
    Currently gluegen-rt.dll, jogl_desktop.dll and nativewindow_awt.dll are inside JOGL2.0_test same level as src folder.

  6. #6
    JavaNoob84 is offline Member
    Join Date
    Nov 2011
    Posts
    14
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    Works.
    All .dlls (not just those 3 you list on the site) have to be in the same dir as -Djava.path = "whatever dir".
    Thanks for your responses.

  7. #7
    Schabby is offline Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    Interesting, that sounds correct. To visualize the folders:

    /workspace
    /workspace/project1
    /workspace/project1/src
    /workspace/project1/bin

    etc.

    The folder where all the DLLs go in is [project1].

    I will try it for myself again. Could you provide me with the exact URL from where you downloaded JOGL?

    Johannes

  8. #8
    JavaNoob84 is offline Member
    Join Date
    Nov 2011
    Posts
    14
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly


  9. #9
    Schabby is offline Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    ok, good, thx, I will reproduce my tutorial and see whether it screwed it up somewhere.

  10. #10
    Schabby is offline Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    Hi,

    sorry for the delay. I updated my post: JOGL Example – Tutorial

    This should do the trick.

    Johannes

  11. #11
    gouessej is offline Member
    Join Date
    Dec 2012
    Posts
    3
    Rep Power
    0

    Default Re: Building JOGL 2.0 lib properly

    Hi

    I'm responsible for engine support at JogAmp Foundation as you can see here.

    Please rather post your questions about JogAmp APIs (JOGL, GlueGen, JOAL, JOCL, ...) on the official forum in order to get accurate and appropriate solutions. I know some people may try to help you elsewhere but sometimes their "bad" answers can cause confusion or they may encourage you to use overcomplicated solutions.

    You need those both tutorials to install JOGL 2.0 correctly:
    Downloading and installing JOGL - JogampWiki
    Setting up a JogAmp project in your favorite IDE - JogampWiki

    You can find the other tutorials in our wiki.

    Quote Originally Posted by Schabby View Post
    Please try to put all DLL files in your current working directory (that's the directory from which you run the java process).
    Manually extracting native libraries from JARs is not required when using JOGL 2.0. You mustn't forget this: the JARs containing the native libraries must be in the same directory than the JARs containing their Java counterparts, i.e jogl-all.jar must be in the same directory than jogl-all-natives-windows-*.jar if you're under Windows.

    The tutorials above work. If you have a doubt, check that JOGL and GlueGen JARs containing Java libraries are in the classpath, then check the thing in bold above, after that check that your IDE is properly configured as it may use other abstractions to represent the classpath and the library path (for example look at the Java Build Path in Eclipse).

    Quote Originally Posted by Schabby View Post
    sorry for the delay. I updated my post: JOGL Example Tutorial

    This should do the trick.
    The video doesn't do the trick, you use the wrong JVM for your architecture, you extract the DLLs whereas it was not necessary, you don't download the JARs for both architecture from the start.

    Quote Originally Posted by JavaNoob84 View Post
    Rather use the latest release candidate, just click on "2.0-rc" on the main page.

    I won't probably answer here, please contact the JogAmp team on our forum.

    Best regards.

  12. #12
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: Building JOGL 2.0 lib properly

    Stop bumping old threads. Any more and your responses will be removed and you may be banned for a period.

    Please feel free to post relevant responses in current threads.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Installing JOGL
    By RandomTree in forum New To Java
    Replies: 5
    Last Post: 12-21-2012, 09:26 AM
  2. Jogl
    By Supamagier in forum Advanced Java
    Replies: 2
    Last Post: 12-21-2012, 09:26 AM
  3. 2D HUD in JOGL
    By TrekSoft in forum Java Gaming
    Replies: 1
    Last Post: 08-30-2011, 04:52 PM
  4. JOGL lightmapping
    By deepthought in forum Advanced Java
    Replies: 1
    Last Post: 06-11-2010, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •