As a student in a software development class I have been assigned to be part of a group project. Naturally our 4 man group decided to make a game. I suggested LibGDX and got a team member to try it, however, when he tried to import the LibGDX project I created in Windows into eclipse on his linux computer it gave him the could not find sdk message. The build was trying to use the SDK path that I had specified in my own windows computer.
Is it possible to have multiple members on different platforms develop with LibGDX. Please let me know if this is not possible, I have already invested multiple days learning how to develop with LibGDX, and hope that there is some way to develop with windows and linux.
Our team work with libgx projects on MAC, Linux and Windows without any problems. Of course you must properly install Android SDK and JDK in every environment, all other dependencies gradle will download for you. I recommend you to use git for effective team work. You can create remote repositories for free on github or bitcucket.
About IDE, I personally prefer to work with Eclipse, but I know lots of people who works with libgdx in IntelliJ. You should just choose what is more comfortable for you.
P.S In order to fix error with SDK your friend got in Linux look at this answer: Importing gradle project, android error
I would actually recommend using a different IDE, I use JGrasp, I recommend that. If it still doesn't work, try to uninstall and reinstall Eclipse, that helps a lot for my friends who use Eclipse, for some reason, Eclipse seems to fix connection issues to dev kits and what not (my friends had the same issue when they were trying to use JSON data). For me, JGrasp handles connection and linking better than Eclipse when it comes to simplicity of it.
Related
I am getting back to coding Java after two years, which I sorely missed. I need to set up an environment on Android for game making, so I purchased Jvdroid for the ability to process Maven files from GitHub on my phone. Jvdroid resembles a similarity to IntelliJ from JetBrains with much less features. LibGDX offers a Project making executable JAR, yet the file limits it self only to Desktop operating systems.
My problem then focuses on getting a LibGDX Project for a hopefully simple set up. It is possible that Jvdroid may still say no to downloading required libraries for compiling. I will not be able to use LibGDX I think on Android, if that proves true.
I am familiar enough with GitHub, where I can just download a working sample Project for LibGDX from a different programmer's repository or LibGDX's own. Flappy Bird is a bad example, but that serves just to give you an idea.
If that concept fails, then I would possibly consider an alternate game engine like Cocos2D or Haxe. I need some thing with GLTF file support in the future, because of my love for Daz3D. I also restrict my coding to Java.
I appreciate insight for how LibGDX may possibly compile and run on Android. I believe producing an APK would be comparably good effort at that far of a point. I am aware a couple of other programmers have successfully done such with minimal Project files at the least of it all.
Thank you for reading and your time.
Not familiar with Jvdroid, but I would have looked at Termux and see if your device's OS version is compatible and your device has adequate storage (RAM/Flash). Termux simulates a Linux terminal environment (with limits), so it helps to be familiar with the command line interface. Do realize that there are preferred places to download as Google Play policies no longer compatible.
A quick search brings up projects like: https://github.com/ravener/libgdx-termux which may be a jumping off point.
Of course, if you can do development on a PC - your experience will be better, due to each new Android version adding restrictions to such an environment.
A couple of years ago I started an open source project that used javaFX + jdk8 to create a desktop application for windows. A few months ago I decided to continue improving the project and make it a little more professional and easy to work on. For that, the first thing I did was migrate to JDK 11 and include Maven. Right now my project starts up and works fine in the IDE. But I am finding it very difficult to compile and package it.
A few months ago, I created another desktop application with javascript and electron. I loved that with a couple of commands, the application compiled and packaged automatically for windows, mac, and linux.
I am trying to do something similar with my java application. That is, use some tool that allows you to make all this ready and automated. I don't know if Maven has these features or if I need to use other tools. I know there are solutions like "launch4j", but what I'm trying to do is create a system that does everything with a couple of commands. The idea is that anyone who downloads the project will have it easy to package the applications.
So the question would be, now that I have a working project, what system do you recommend using to package my project? Which way should I go?
The way to go with this is use the jpackage tool which is made exactly for this. Here is a tutorial which explains how to use that with Maven. https://github.com/dlemmermann/JPackageScriptFX
I have recently installed IntelliJ, to learn Java. I have been learning Java previously in Eclipse, but a lot of Seniors have suggested me to start Developing in IntelliJ as it would Save time in Future.
Now the Problem is the Environment is totally different, I cannot add packages directly, i have to configure a lot of things, which is making me confuse, as to which option i need to correctly run my applications. Can anyone help me out how to go about it.
IntelliJ is definitely different from Eclipse so a little reading on the Getting Started pages is helpful. For me, understanding the modules part was the hardest.
For migrating from Eclipse, they have a pretty good tutorial besides the IDE options to import Eclipse projects.
I am trying to build a conferencing application with Java under the IDE eclipse Juno. The API I thought that could help me is sailfin. But whenever I try to install it, it doesn't create the sailfin directory he is supposed to. Therefore I cannot proceed and still stuck at that point. I installed the latest version of ant and set up everything according to the tutorial but still it won't work. If anybody has an idea or experience the same difficulties before, it'd be grateful if you could provide me with some insights/ideas on how to get around the situation or maybe suggest another API I could use.
Thanks in advance for all your contributions and time.
I implemented intelligent sip server for the engineering project in 2009 and at that time i also tried to use eclipse to run a sailfinn but can not get success. So i completed project with NETBEANS. It was good with NETBEANS because glassfish is the embedded server and sailfinn depends on glassfish arcihecture. Try Netbeans.
all. Relative rookie here who has spent the better part of three days just trying to get started with Java EE, and it's driving me up a wall. I've already read through numerous tutorials and consulted several book, so now I am turning to you.
I am starting from complete scratch, having uninstalled NetBeans and Glassfish and the Java EE SDK. My main issue is quite simply configuration. All the resources I've found typically say in a mere throwaway line: "Once you download the SDK, you must configure your environment for Java EE." But HOW? I need it in plain English. Even the most novice guides leave this basic stuff out. Does this mean editing the JAVA_HOME path or what? How does this configuration relate to the Java SE already on my system? Furthermore, I assume I don't need to also download the JDK with EE since I already have a JDK? (I am a Mac user, if that matters.)
I know I have a long, long way to go, so I appreciate any help I can get as I try to get this ball rolling. Much thanks in advance!
I think if you are using Netbeans then you don't have to worry about these things....
Simply File > New Project > Java Web > Web Application will help you get started with web applications..
Normally you would want to set the Java Home path so when you are compiling and running code your JDK is recognized. Sometimes IDEs come with their own JDK and then it really does not matter. However here is how you would set the path in different OS.
http://java.com/en/download/help/path.xml
For MAC I recommend this tutorial
http://lindaocta.com/?p=38
Make sure your JAVA_HOME is set in environment variables (just downloading SDK is not enough, you need to setup), I don't know how to do it mac, but in windows we setup my right click mycomputer-->Advanced-->Environment variables
Then install Netbeans, this step automatically searches for JAVA_HOME and assumes that SDK for all purposes. Then you are all set of programming.
If you don't mind switching to Eclipse can I recomend this tutorial An Eclipse / GlassFish / Java EE 6 Tutorial ignore the referance to Azzyzt tools and run through the tutorial step by step using GlassFish Tools Bundle for Eclipse.