I've got a project written in Java language, i made it in NetBeans IDE, but now i want to migrate to IntelliJ IDEA, the problem is that when i try to open a form into IntelliJ GUI Designer i can't edit my forms, IntelliJ tells me that it's not compatible.
This post says that:
Currently there is no "Import NetBeans project" functionality in IntelliJ IDEA. However, in IntelliJ IDEA you can create a new project with existing sources. So in many cases moving the project to IDEA is not a complex operation, you can create a new project from existing sources using the "File | New Project" action. You can ask IntelliJ IDEA to use the same directory as your NetBeans project is using. IntelliJ IDEA then adds .iml file (idea module file) and .idea configuration directory. The NetBeans .nbproject directory and build.xml remain untouched, so you can continue using IntelliJ IDEA along with NetBeans.
But if i add the sources of my project to IDEA project i can't open my forms.
I've searched and found that using JFormDesigner would be an option, but i would like to know if there's another way, if not how would i use JFormDesigner?
Related
It is the first time i am trying to checkout someone else code from github.
I have downloaded the jar
https://github.com/wittawatj/jtcc
However, there is only a src folder which i am unsure of how to insert it into netbeans or ecplise without having to rename all the packages and classes.
I believe there is some shorter way.
I would like to edit the Java code like its my own source code where I could make some tweaks to it
I have just tried it on my machine with git clone https://github.com/wittawatj/jtcc and everything got downloaded, are you sure you are using the right git commands?
For NetBeans you can directly clone the source repository from within NetBeans:
Use Team -> Git -> Close to checkout the source code from GitHub and supply the necessary information in the following dialog:
In the final page of the wizard you can enable the "Scan for NetBeans project" option:
As the project does not contain a NetBeans project, NetBeans will prompt you to create a new project after the code has been downloaded:
Use the option "Java Project with existing sources" to setup the NetBeans project with the sources from GitHub.
Details on setting up a project in NetBeans can be found in the manual:
http://docs.oracle.com/cd/E50453_01/doc.80/e50452/create_japps.htm#BABCGJJB
An eclipse plugin called JDTCommentsV2_1.0.9 does the following in eclipse:
I'm trying to add/edit some comments inside. e.g. add Run TestComment or just change one of the comments' name.
I have the .jar file and here's how it looks inside:
Question is which files should i edit and how.
Thank you
edit:
After following #greg449 and #Robin Green's instructions, I exported the jar file to eclipse, and edited the plugins.xml file. But if i export the files now as a jar, it doesn't work (nothing is changed in the menu). Finally i tried what #Robin Green said (Run -> Run As -> eclipse application) but there is no eclipse application under Run As. I got only Java Applet and Java Application. I'm wondering why. Might it be because i'm using ADT?
edit2:
I downloaded another version of eclipse (not ADT) and here i do have the Run As eclipse application bar". Can't i add it to ADT ?
edit3:
The picked answer works for eclipse JDT and not eclipse ADT.
It looks like you have a jar containing an existing Eclipse plugin so in your Eclipse you do File > Import and choose General > Existing Projects into Workspace and select the jar as the source.
Once you have the plugin project installed in your workspace you are going to have to work out how the plugin works by looking at the source and the plugin.xml.
Once you have modified the plugin use Export > Plug-in Development > Deployable plug-ins and fragments to build a new plugin jar.
Generally speaking you check out the source code from its source control repository or download it as an archive file from its website and then import it into Eclipse, same as any other project.
I created a new project and working with eclipse (used eclipsify command).
basically, I moved the app directory from an old project to the new one I created.
the problem is that eclipse doesn't recognize the views. I get errors like:
views.html.viewTopic cannot be resolved to a type
I tried to play compile but it didn't help.
so I got 40 errors. all of them connected to the fact that the views aren't compiled and therefore, the eclipse doesn't recognize them (my guess of course).
what can I do?
by the way, the old project compiled and ran without a problem (I used intellij)
For Java Play Framework v2.4.6 (activator v1.3.7) with Eclipse Mars:
So that you will not have a "can not resolve error" with your viewTopic.render(), you can add this <classpathentry kind="lib" path="target/scala-2.11/classes"/> to your .classpath or right-click on your project -> Build Path -> Configure Build Path -> Add Class Folder and make it point to target/scala-2.11/classes.
Run 'play eclipse' on the command line
In Eclipse, refresh your Project via hitting F5
Re-run the command in play console with the sources this time:
$ eclipse with-source=true
And then go to eclipse and clean your project and build all
According to jetbrains, the issue with templates is fixed. If you have play 2 generated source sources included in the IDEA project then you should exclude this folder from the project
http://www.jetbrains.com/idea/webhelp/configuring-folders-within-a-content-root.html
and do File | Invalidate caches and restart.
If you have an SBT project, open it in IDEA via File | Import Project | Sbt type project
Make sure to use the latest Scala and Play 2 plugins.
Close eclipse project
activator eclipse
activator compile
Open eclipse project
Add target/scala-[your-version-here]/classes to your build path as a class folder
The best you can do is just search the Stack Overflow as this topic was discussed really many times.
Playframework - Eclipse can't detect a new template
How to make Eclipse see the changes in Play! compiled templates?
scala code causes error in eclipse for playframework-2.0
etc, etc...
OK, I solved it.
I created a new app again
moved app dir
only then ran the command play idea
I have used Eclipse before. I changed to IntelliJ. Now I am wondering how to import existing files into IntelliJ 10 IDE. In Eclipse I was used to just drag the directory into the src folder, but I cannot do it here.
IDEA doesn't have such feature, you either set up a project on top of the existing sources or you copy files to the existing project externally, using Finder or your favorite file manager.
Actually you can tell IDEA to open a project and when you get prompted with the file explorer you select the eclipse project file. IDEA will then create it's own specific project files and setup the classpath for you. It's pretty nifty.
I have just started playing with Java, and I really like the language. I am using the NetBeans IDE, and I find one odd oversight. I can create a new class in a project, but NetBeans doesn't appear to support any way to import an existing class into a project.
I manage to get it done by going to some other project where the desired class already occurs, and then I copy/paste it into the source code folder of the new project, then change the package name at the top of the pasted file to match the package name of the new project.
Is there a nice direct way to do this from the NetBeans interface?
Thanks for any help on this.
In the Projects window you can expand the project that you are working on. Right Click on Libraries and select Add Project.... You will get a dialog allowing you to select another Netbeans Project with the Java classes that you wish to use.
You have to just make the .jar file of that/those java files which you want to use in another project.
right click on file->export->java->.jar then finish.
Now you can use these jar into your another project.
When you build the java project in netbeans it creates a jar file on the dist folder in the current project directory.
You can use this jar file for the other project as a package by adding this as ADD jar in the next project.I have tried this ,i am using my old project jar file for new project development.
Use the 'Clean and build' your project option from the netbeans application, that creates the 'dist' folder which you are looking for (and obviously can't find because you havn't cleaned&buld)
The netbeans itself creates .jar files and you can add the jar file to the current project you are working on.