L B Posted August 26, 2010 Share Posted August 26, 2010 I've started school in Java and it could be a fun project to do to learn. Does anybody need/want that? Yes, for development Yes, for the theoretical aspect Yes, in the ideology that LE has all common languages No, not at all Quote Link to comment Share on other sites More sharing options...
Canardia Posted August 26, 2010 Share Posted August 26, 2010 No. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Laurens Posted August 26, 2010 Share Posted August 26, 2010 I am not planning on using Java for any sort of game development but if it will get you through college then go for it Quote Link to comment Share on other sites More sharing options...
cocopino Posted August 26, 2010 Share Posted August 26, 2010 Nah... Prefer C# (Visual Studio!) over Java any time. Quote desktop: Quad core Q6600 + 4GB + ATI HD4890 + XP laptop: Dual core T6400 + 4 GB + NVidia 9600M GT + Vista 32 Link to comment Share on other sites More sharing options...
Rick Posted August 26, 2010 Share Posted August 26, 2010 I don't, but I remember someone coming to the forums and being kind of pissed it didn't have a Java binding. Like you said it would help you learn it. Quote Link to comment Share on other sites More sharing options...
Masterxilo Posted August 26, 2010 Share Posted August 26, 2010 "Yes, for the theoretical aspect" Making a dll work in Java is a pretty difficult and annoying task. I think you even have to write some of wrapper dll with their API. Let me know how you'll do it. Once you get the base working, automating the conversion of the c headers shouldn't be too difficult and LE would have one more supported language! Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Davaris Posted August 26, 2010 Share Posted August 26, 2010 I personally won't be using Java, but I like the idea of it. Now Python on the other hand, would be sweet to make games in, if it wasn't so slow... Quote Win 7 Pro 64 bit AMD Phenom II X3 720 2.8GHz GeForce 9800 GTX/9800 GTX+ 4 GB RAM Link to comment Share on other sites More sharing options...
L B Posted August 27, 2010 Author Share Posted August 27, 2010 I hate Java as well, I think the syntax is sketchy and inferior to that of C#. But I do need to get used to the "Java-mindset", i.e. the libraries and syntax changes, even if they're minor. Quote Link to comment Share on other sites More sharing options...
Laurens Posted August 27, 2010 Share Posted August 27, 2010 I agree that C# is far superiour to Java. Sadly my college won't do enterprise architecture classes in C# or any Microsoft-related technology. Oh how I loath you GlassFish Quote Link to comment Share on other sites More sharing options...
DaDonik Posted August 27, 2010 Share Posted August 27, 2010 I won't use it because i dislike Java, but "Yes, in the ideology that LE has all common languages" Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
Mumbles Posted August 27, 2010 Share Posted August 27, 2010 For the concept of learning how to do it, then yes, by all means try it. But Java is going to be inherently slow for any serious games due to the nature of the virtual machine Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
Rick Posted August 27, 2010 Share Posted August 27, 2010 It should be about even with .NET and I know .NET can handle running games at an acceptable speed. Quote Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted August 27, 2010 Share Posted August 27, 2010 I would like to have LW working in java. I tried to the other day and couldn't get it to work. I wrote all the Java side native interface part and generated the header file but then I was stumped on the C++ side as I don't know it much. I couldn't work out what types to use and how to write the inplamentation of the wraper. Maybe if I was good at C++ I could do it but then why would I need it in Java lol. I managed to get some simple functions in a dll and then load it in java and use them there but not the Leadwerks stuff. I have been using Java on my college courses and I understand it far better then I do C++ so I would really like it to try stuff out in Java then do a rewrite in C++ once I have it working. Or if it was a reasonable speed I would just use it in Java. I was thinking of writing some classes for AI in Java then using them as a Library to use in C++. By the way the JNI documentation does say that if you use the native code librarys then there is not much of a lost of speed if you keep comunication between both sides to a minimum. Do a large chunk on one side then send it across, don't do lots of little transfers and it is ok. Not sure if that is very helpful in a game engine =). Quote Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted August 29, 2010 Share Posted August 29, 2010 I have just found that you can use the engine.dll straght into Java without using the JNI. I just managed toget the graphics window up wand working. Now to see if i can get the rest of the commands to work. =) Quote Link to comment Share on other sites More sharing options...
Masterxilo Posted August 29, 2010 Share Posted August 29, 2010 How that? Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted August 29, 2010 Share Posted August 29, 2010 Instead of using the JNI directly use the JNA API JNA JNA docs Function names are mapped directly from their Java interface name to the symbol exported by the native library. You don't have to touch the c++ side other then for reference for the function names Quote Link to comment Share on other sites More sharing options...
Josh Posted September 2, 2010 Share Posted September 2, 2010 Warning: Failed to initialize Newton. Looks like your Newton DLL is missing? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted September 2, 2010 Share Posted September 2, 2010 woot it works.. I just built it and put it in the leadwerks folder and ran it and I got a window with hello world on screen using the DrawText() comand. now to see what else it can do. don't want to jump the gun! Quote Link to comment Share on other sites More sharing options...
L B Posted September 2, 2010 Author Share Posted September 2, 2010 Heh, turns out headers will exist. Although I might still wrap it. Quote Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted September 5, 2010 Share Posted September 5, 2010 Managed to finally get a scene to load in Java. I have written nearly all the library, just have to test and debug every method. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.