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
Related
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?
I'm currently working on a groupproject. We're using github to save our code. I have just installed eclipse to work on. I foound to open the project to use import. This has opened the project, except the SRC folder is empty whereas the first SRC folder (the main which was made through github) has several .java files within.
Why is this and how do I go about putting them in. I am unable to work on the code through eclipse at the moment due to this. Thank you, much appreciated.
The easiest way would be to:
clone manually the GitHub repo (in command line)
import the Eclipse project in your Eclipse workpace
Then push to the GitHub repo
Or you can clone the GitHub project through Egit directly,, following this tutorial.
The OP pokeairguy reports in the comments an alternative solution:
create a new project in eclipse like normal.
Then drag the contents of the src folder from GitHub into the folder directory within eclipse.
Then selecting link in the pop up window.
I think it works by thinking its a new project but saves everyone done under the GitHub folder, for GitHub to work.
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 have a project whose source code is hosted in svn and I have checked out the source code already say in a folder "myfolder". The directory structure of my code is as follows:
myfolder/trunk/src/ is where my code resides. Now I create a Java project using eclipse using File -> new java project with the location to be myfolder/trunk/src/. When I do this, all the package structure gets changes and I have errors in my sources files.
It would be great if somebody can tell me what is the correct way to do this. I have found some articles on the internet, but the more I read the more I get confused.
Thanks
Vandana
You should have probably chosen to Import Existing Project into your workspace and you should try that instead. It works great as long as you have your .project file defined. To fix the errors you have now, Create a new src folder in your project and point it at trunk\src, so that it correctly recognizes all your Java files.
You probably should use myfolder\trunk as the root of your project, rather than myfolder\trunk\src. As Perception has mentioned, try to "Import Existing Project" first (rather than start a new project and point it at your source).
First, I assume you already have subversive/subclipse plugin installed in your Eclipse and you have used the right URL to import your source code.
Before checkout your source code, you may change your perspective to Java perspective.
Then you only need to use File-Import-SVN(choose SVN as your import source)-Checkout projects from SVN-Next-Give your project a Name-Finish.
If you have problem about installing SVN plugin, reference is http://subclipse.tigris.org/
http://www.eclipse.org/epsilon/doc/articles/epsilon-source-svn/
I'm currently trying to learn to use Guava so I downloaded the source by doing this:
svn checkout http://guava-libraries.googlecode.com/svn/trunk/ guava-libraries-read-only
Sorry if this sounds really stupid but for the life of me, I can't figure out how to load up the source in Eclipse to examine it. I've tried different ways (creating, importing, etc) but always end up with package problems.
I'm using Eclipse 3.5 on Ubuntu by the way.
Can I get some help on this? Thanks!
EDIT: I'm trying to examine the source so I would like to add the source as a project.
Here is what I would do...
Go to the downloads page and grab the latest bundled release
Unzip it to some local directory
Copy the guava-r<version>.jar to your project's lib directory.
Right click on the JAR from Eclipse and say "Add to Build Path".
If you need the source you can attach the guava-r<version>-src.jar in Eclipse via the Configure Build Path project menu or by using the attach source button during debug.
It's easiest to download a Jar from the Guava site, copy it into your Eclipse project and add it to the build path using the jar context menu > Build Path > Add to Build Path. Also, point Eclipse to the included source zip using project context menu > Configure Build Path... to get Javadoc on the Guava classes.
I have done it two ways: the Subclipse and Maven eclipse plugins. Both offer "create project from repository"-like options. Both plugins have reasonable online help, so I'll not repeat exact steps here.
Creating a project from the repositories will give you a full view of the source (and documentation, build files, etc).
I might be a little late in answering ... but you could also simply install the guava bundle from the update site "guava-bundle"; it will install the sources along and you'll then just have to import the plugins in your workspace (File > Import > plugins and fragment... don't forget to tick the "projects with source folder" checkbox on the first page of this wizard) and browse the source from it.
Note that this update site has now been discontinued in profit of Guava-osgi which also provide an update site for easy installation ... but I haven't installed it yet and thus don't know whether the sources are included in the artifacts installed through this update site.