Trouble importing gradle project (LibGdx) in eclipse from git repo - java

I am trying to set up a git repo to use for a project I would like to start working on. I have created an online repo on GitHub for the project. The project is a LibGdx project using a gradle configuration.
https://github.com/RiverFloater/MathTutorApplication
I can clone the repo to the computer with out any issues. When I go to import it to eclipse I can not get the project to run. I have tried importing different ways with no success. I have imported as a gradle project from the local repo created after cloning. I have also tried as a general project but that fails as well. The import will complete and the files will be displayed but I can not run the project.
The project runs fine on the computer I created it on and can commit with out any issues. Unfortunately, I am new to git and I am not sure what I am doing wrong. Any assistance would be appreciated. If it is a problem with the gradle configuration then I will have to do more research as the gradle wrapper was done using the LibGdx project creator and will have to familiarize my self with that as that is new to me as well.
Thank you in advance.

Well I finally resolved the issue. I didn't commit and push the rest of the gradle configurations and dependencies to the repo. Therefor, when I would pull it was missing the proper configurations to build out the gradle

Related

Spring-Boot application does not build properly

my problem is when I trying to run my spring-boot project via STS or simple JavaApplication the changes after the last maven build are not built.
I'm tried several methods but, if I don't use maven build the project changes are not rebuilt.
Do you have any tips, what's wrong?
In the Project menu Build Automatically is selected. And the main method is annotated with #SpringBootApplication
(The hot-swap is not working too for me.)
I think . do clean first then right click project Maven-> update Maven. do clean again. plz
I found the solution. In the .project file for my project I simply added a javabuilder build command. After that STS works perfectly and rebuilds the project before start. I think this problem occurs because I created a maven project, instead of creating a java project and convert it to a maven project.
If your project is gradle then go to Project right click and go to >gradle >Refresh gradle project.
Try to click ctrl +shift+O for import realated dependencies in your project.

How to load a gradle project and then use that as a dependency in one of the existing projects in IntelliJ

I have a gradle zip file that I want to use as a dependency in my project in intelliJ.
So I opened that project using Open and then pointing to build.gradle file. Tried to run it and got Could not find or load main class.
How to solve this and then also how to add this project to some other project as a dependency in IntelliJ.
I am fairly new to IntelliJ and Java project settings, will appreciate any help. Thanks in advance!
To add it as a dependency you can use this this
The developers of that project have chosen to promote JitPack as the way to consume their JARs. You can tell because their Github project page has a little "JitPack" badge at the top of the readme. If you click on that badge, it takes you to this page showing how to add the dependency to your Gradle or Maven project.
If you're not yet using Maven or Gradle, this is a great opportunity to learn :-)
Gradle Java tutorial
Maven tutorial
When you open your Maven or Gradle project in IntelliJ, it will automatically resolve the dependencies for you.

Trouble Importing libgdx project from github.

I built a libgdx project on my desktop which I can build and run properly though I want some friends to work on the project with me and when they import the repository from github the project won't run and it loses the gradle build.
I have tried to use these gradle commands to rebuild the project with no success.
cd/(File path)
gradle build
gradle eclipse
After I try to do these commands eclipse loses the project file. Even if I copy my master file into the imported directory it doesn't work.
Does anyone has suggestions on how to fix this?
Thanks in advance.
What do you mean with "it loses the gradle build"?
Try using ./gradlew (or gradlew on Windows) instead of gradle. The Gradle Wrapper scripts use arcane magic no mortal presumes to understand, but they seem to have their purpose.

Import a maven project into netbeans

I'm learning how to create some applications in Java, i found a maven project example in a tutorial and went to compile it in netbeans.
I tried to search in the Internet how to import a maven project into netbeans, and i can't found a solution.
By the way, in the tutorial i downloaded something like pom.xml, i wonder what is it and how it can be used?
Thanks!
You can import Eclipse Maven project in netbean, just follow the steps.
1) In Netbean , File->New Project->Select maven in left Pane -> Select Project with existing POM on right pane and finish.
2) Now you will be asked to open a eclipse project just open it and that's it..
I hope you will solve your problem with this......
Although not really a direct solution to your problem, a work around to get you up and running is to create a maven project in Netbeans via the wizard, with the same name as the example project you want to install. Then, create the same package structure in the project as the example, then copy the files into their correct packages. Although you are not importing the project, but it should get you up and running.

Build play! project with maven

I am using play 1.2.4 to create a web app. It works together with some other applications which are maven projects: they are compiled and resolved (dependencies) with maven.
Now I need to modify my play app so it can also be compiled and started with maven.
Therefore I download maven (3.0.4), installed the maven modul and did everything according to https://github.com/wangyizhuo/play-maven and http://www.playframework.org/modules/maven-head/home
I manage to automatically create a pom file in my project. The problem is that the jars from the play framework are not copied into the lib-folder and when I try to execute mvn package they are missing.
Is there a way to get the maven module to work properly? If not, is there another possibility to compile and start the project from maven (i.e. intermediate ant-file that can be executed by maven?)
Many thanks in advance!
This explains it pretty well. I havnt looked at the module you are refering too, but this shows you how you can create tasks and inculde directories in your build.
Do you need to use maven to build/run it? If not it looks like there is a community contributed extension that allows you to use maven from within play.

Categories