![]() |
Tilengine on Java - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: Tilengine on Java (/showthread.php?tid=952) |
RE: Tilengine on Java - System64 - 12-12-2020 Alright! But yeah, Java isn't good for that :/ Also, I'm using Java 8 for my project. And it's me or implementing C DLLs is much easier on C# than Java? RE: Tilengine on Java - megamarc - 12-12-2020 Tha main reason to have Java support for Tilengine is to have it running on Android... other than that, there are better languages. Yes, using external DLLs/shared objects in C# is easier because:
RE: Tilengine on Java - System64 - 12-12-2020 The reason I'm using Java is I learning it at school so it's the language I know the best. But I shouldn't have too much trouble to move to C# and Python in the future. By the way, is the problem with Oracle still here? RE: Tilengine on Java - megamarc - 12-12-2020 Yes, Oracle problem still persist. However I finally downloaded the 32-bit version from AdoptOpenJDK, that is the version I already had in 64-bit. Oracle even forces you to register an account just to say that they're experiencing problems when trying to download. Bad! Better go here: https://adoptopenjdk.net/ RE: Tilengine on Java - System64 - 12-12-2020 I know this JDK, it's pretty good and also Open Source! Did you downloaded the Version 8? RE: Tilengine on Java - megamarc - 12-12-2020 Hi, After installing 32-bit version of OpenJDK 8 and building 32-bit TilengineJNI.dll, everything works as expected. Here is a screenshot of TestPanel: RE: Tilengine on Java - System64 - 12-12-2020 Does it work with the normal window? I also have multiples versions of Java, 2 for Java 8 : 32 and 64 bits. The problem is %JAVA_HOME% brings me to a 64-bits version. Is that the thing that causes the problem? can I compile a 32-bits JNITilengine with 64-bits JNI headers? RE: Tilengine on Java - megamarc - 12-13-2020 Hi! It works with the built-in window too, but I've posted the screenshot of the "TestPanel" because it has more integration with Java itself. The headers for jni are the same for 32 and 64 bit, so the value of %JAVA_HOME% environment doesn't matter when building the TilengineJNI.dll library. Make sure your C compiler is producing 32-bit binary, not 64-bit. However, I don't know how to choose what JRE to run when typing "java" at the command prompt when you have both. To avoid problems I uninstalled the 64-bit one and replaced it with 32, so I don't have to choose. RE: Tilengine on Java - System64 - 12-13-2020 Which IDE are you using? I'm using IntelliJ IDEA so I can choose which version is used in the Project Structure window RE: Tilengine on Java - megamarc - 12-13-2020 I use notepad++ for editing and the command-line to build and run |