Results 1 to 12 of 12
Thread: Building JOGL 2.0 lib properly
- 01-27-2012, 09:46 AM #1
Member
- Join Date
- Nov 2011
- Posts
- 14
- Rep Power
- 0
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.
- 01-27-2012, 10:16 AM #2
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
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,
JohannesLast edited by Schabby; 01-27-2012 at 10:29 AM.
- 01-27-2012, 10:19 AM #3
Member
- Join Date
- Nov 2011
- Posts
- 14
- Rep Power
- 0
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?
- 01-27-2012, 10:24 AM #4
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
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?
- 01-27-2012, 10:28 AM #5
Member
- Join Date
- Nov 2011
- Posts
- 14
- Rep Power
- 0
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.
- 01-27-2012, 10:45 AM #6
Member
- Join Date
- Nov 2011
- Posts
- 14
- Rep Power
- 0
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.
- 01-27-2012, 10:50 AM #7
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
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
- 01-27-2012, 10:52 AM #8
Member
- Join Date
- Nov 2011
- Posts
- 14
- Rep Power
- 0
Re: Building JOGL 2.0 lib properly
A link from your site:
Index of /deployment/autobuilds/master/jogl-b410-2011-07-27_22-07-10
- 01-27-2012, 11:01 AM #9
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
Re: Building JOGL 2.0 lib properly
ok, good, thx, I will reproduce my tutorial and see whether it screwed it up somewhere.
- 01-27-2012, 07:42 PM #10
Member
- Join Date
- Jan 2012
- Posts
- 5
- Rep Power
- 0
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
- 12-21-2012, 08:56 AM #11
Member
- Join Date
- Dec 2012
- Posts
- 3
- Rep Power
- 0
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.
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).
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.
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-21-2012, 09:26 AM #12
Similar Threads
-
Installing JOGL
By RandomTree in forum New To JavaReplies: 5Last Post: 12-21-2012, 09:26 AM -
Jogl
By Supamagier in forum Advanced JavaReplies: 2Last Post: 12-21-2012, 09:26 AM -
2D HUD in JOGL
By TrekSoft in forum Java GamingReplies: 1Last Post: 08-30-2011, 04:52 PM -
JOGL lightmapping
By deepthought in forum Advanced JavaReplies: 1Last Post: 06-11-2010, 05:45 PM


LinkBack URL
About LinkBacks


Bookmarks