Jump to content
  • Advertisement
Sign in to follow this  
Orbital Fan

[java] Java applets and JNI memory

This topic is 3209 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone Java applets are limited by default to allocating 64MB (?) of memory. My question is if you load a DLL via the JNI - can the C++ code in the DLL allocate over the 64MB limit? Do you know of any other limitation to using the JNI? The reason I ask is that I have a lot of my code in C++ (including a whole 3d engine). But I'm quite keen on deploying the game via a web page. I'm surprised that not many games are deployed in this fashion as it gives you best of both worlds: - If the player has an appropriate JVM installed, a java applet of webstart app can bootstrap your C++ game. Obviously they would have to click-through the security warning about the DLL. - If the player doesn't have an appropriate JVM - they can download the exe in the usual way. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Hmm, if you have the DLL loading properly already, why don't you test it yourself?

Also, I'm pretty sure there was a thread on allocating extra memory for Java applications somewhere around here recently, maybe there's a simpler solution to be found.

Share this post


Link to post
Share on other sites
Hi thanks for the response.

I don't have a JNI DLL yet - it would be easy enough to test though.

The main point of my post was to ask why game developers haven't used this is a way of deploying native applications on the web?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!