using eclipse and netbeans on git - java

I am trying to work with a partner using a git repo. He uses netbeans but I use eclipse. I am having problems when I import the project into eclipse, the project has no classpath folder in eclipse so it cannot run and it is not highlighting errors in the code.
My question is is there anyway to work on the same git project with two different IDEs? And if so, how do I get eclipse to recognize the netbeans project folder to create its own .classpath.

Related

Multiple Java Problem errors on importing existing maven project to Eclipse

I have an existing maven project which I downloaded from GitHub.
If I run mvn clean install from the root of the project everything works fine (a jar file is created in target folder and it executes works OK).
But when I go to Eclipse and import this project as Existing maven project I get multiple (395 to be precise) Java Problem errors (like The method is undefined etc.).
The only thing that I notice is when I run maven from command line it creates .m2 folder inside the project folder while maven from Eclipse creates .m2 inside my C:\Users\username folder.
I'm using Eclipse 2019-06, Java 8 and apache-maven-3.6.1.
P.S. Same errors appear when I import this project to Intellij IDEA 2019.2.
Olga, don't worry. Import the project into Eclipse. Then wait some minutes. If the errors do not vanish, try "ALT + F5". If this still does not help, build the project from within Eclipse ("Run As -> Maven build"), do "ALT + F5" again.
Eclipse often takes some time to fully "understand" the project, i.e. synchronise the POM and the files to its internal mechanisms.

How to run an eclipse project without eclipse

I don't have eclipse installed. I have a Java project with an eclipse folder in it.
Can I simulate pressing the Run button in eclipse, without installing eclipse.
I want to run this project.
I am on macOS. It's a pretty huge project, I am not sure how to compile the source correctly. I also don't know what external dependencies this project has.
Without an external build tool to help with building the application like Gradle or Maven, you're going to have to download a copy of Eclipse and run it from there. You'll also need to take the time to ensure that you convert your project to either a Maven or Gradle-based project so that you can build it independent of what IDE you're using.

IntelliJ Idea opens gradle folder instead of the project

I'm trying to import a GitHub project, specifically, this one : timtiemens/secretshare using IntelliJ Idea.
The git import works fine, at which point the IDE builds the project using gradle, which works fine.
However, when I actually open the project, only the gradle directory in the project is opened, ie, .../secretshare/gradle. The other directories, like src, are just not there in the IDE, even though they're present in the project folder - I can see them with explorer.
Just Delete the idea files created by inteillj
Run gradlew idea
Open the project again and choose use gradle wrapper settings.

Eclipse Error Logging - Not Showing Because of imported from GIT?

I have just started using the built in GIT functionality of Eclipse and I have everything set up and working, my problem as of now is that I realized my project that I imported from GIT is not reporting errors in my Java like the local copy would. I've tried the following,
Project -> Clean
When I right click on the property files of the folder I can't seem to choose a Java Builder.
It depends on how you import your Java (Git managed) project into the Eclipse workspace.
See "Importing a GitHub project into Eclipse" as an example.
The key is for your Eclipse project to reference the sources in the git repo folder (kept outside the Eclipse workspace folder, in any place you want).

Import IntelliJ module into Eclipse project through SVN

I am working with Eclipse, while another developer in our company has developed a large project using IntelliJ. He has used the export to eclipse feature in IntelliJ, and I checked it in through SVN.
But this doesn't seem to do the job. The entire directory structure is still IntelliJ's, and the Eclipse project doesn't recognize the JRE (which I added to the build path) or the jars I added, and not even the packages themselves -- which, as I mentioned, are located within IntelliJa's structure (src > main > java > com.package_name).
Looking everywhere it seems that everyone is going in the other direction: from Eclipse to IntelliJ.
So my question is, is it at all possible to import successfully an IntelliJ project to Eclipse, while maintaining the directory structure so that SVN will still work?

Categories