Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Tools Discussion / Re: NetBeans OpenGL Pack preview release is out on: 2007-10-15 22:12:50

I've submitted regarding this.  It affects more than just a JOGL wrapper but any Java API extension relying on System.loadLibrary(...) naming semantics (Java3D, JAI, JAI ImageIO, ...) .  I'm not so concerned they take my suggestion for a fix as much as getting a fix...

I hope something happens!  I look forward to using your OpenGL pack when we migrate to NB 6.0!  I should help with GLSL our shader devel...


2  Java Game APIs & Engines / Tools Discussion / Re: NetBeans OpenGL Pack preview release is out on: 2007-10-15 21:35:27

Thanks for the responses.

We are developing a tool based on the NetBeans platform.  We are looking at using a 64 bit JRE to overcome heap limitations as well as virtual-memory address space limitations.  We've experienced huge improvements in I/O with MappedByteBuffers but with 2^(32-1) of virtual address space we are very limited (especially since we're also using a lot of physical memory and heavy use of heap reduces virtual address space left for mapped file i/o).  So yeah, 32 bits is quite limiting for us...

I appreciate the ease that System.loadLibrary(...) offers with regards to transparent cross-platform native library loading, but it really doesn't cover 32 vs. 64 at all *ouch*.

I'd already looked at the URL you've posted and I've come to the conclusion that the current incarnation of netbeans can't handle this use case and can't without changes the the module classloader (org.netbeans.StandardModule$OneModuleClassLoader) in bootstrap.jar.

The classloader implements findLibrary(...) as such:

    /** look for JNI libraries also in modules/bin/ */
    protected String findLibrary(String libname) {
        String mapped = System.mapLibraryName(libname);
        File lib = new File(new File(jar.getParentFile(), "lib"), mapped); // NOI18N
        if (lib.isFile()) {
            return lib.getAbsolutePath();
        } else {
            return null;

Note that the comment is wrong and the class loader actually looks in modules/lib.

I think the only way we're going to get this to work is if we can get the NetBeans crew to search in platform specific paths.   i.e. for windows search in modules/lib/windows-i586 or modules/lib/windows-amd64 dependent on architecture.  That would allow us to create module wrappers and support both 32 and 64 bit native libraries if they are forced to share the same name.

This issue affects any Java API extension library utilizing System.loadLibrary(...) sematics (Java3D, JAI, JAI ImageIO, etc...) so hopefully we can convince the NetBeans crew to modify the module class loader to parse paths dependent on platform.  Without this change I have to create mulitple build targets dependent on platform...  kind of goes against the java "build once, run everywhere" mantra...

I've posted to about this.  If you 2 could chime in so that we can get critical mass it would be swell...

Thanks much,

3  Java Game APIs & Engines / Tools Discussion / Re: NetBeans OpenGL Pack preview release is out on: 2007-10-15 18:40:31


Concerning the Netbean's module/lib native library placement and System.loadLibrary(...) semantics,  does this nbm offer both 32 and 64 bit support for a given OS?   If so, how?!


Pages: [1]
EgonOlsen (76 views)
2018-06-10 19:43:48

EgonOlsen (56 views)
2018-06-10 19:43:44

EgonOlsen (76 views)
2018-06-10 19:43:20

DesertCoockie (256 views)
2018-05-13 18:23:11

nelsongames (156 views)
2018-04-24 18:15:36

nelsongames (155 views)
2018-04-24 18:14:32

ivj94 (896 views)
2018-03-24 14:47:39

ivj94 (157 views)
2018-03-24 14:46:31

ivj94 (809 views)
2018-03-24 14:43:53

Solater (173 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!