I recently downloaded eclipse Kepler to learn to use SWT, I also downloaded the SWT zip folder.
The instructions on eclipse web site states that I should import the zip folder to Existing Projects into Workspace. I have done this, but no project shows on the Projects form field, I have been googling since morning to get info on how to install SWT on Eclipse Kepler but I have not found any help.
Please I need help on this, as I am faced with a project that needs rich look and feel. All replies would be greatly appreciated. Thanks to all.
I got it, Ignorance was the case, cos I have never done any SWT before. so this reply is for all those who are as Ignorant as I was.
The jar file representing the SWT library is found in the plugin folder, of the eclipse installation, to add the jar file to a project you would have to follow these steps:
Right Click on the project Name
Select Properties
Choose the Java Build Path from the dialog that appears
select Libraries > click on the Add External JARs...
Select the SWT jar file from the plugins folder in the eclipse folder represented by org.eclipse.swt.windowing_system>_.jar
and click on OK to exit the dialog`,
then you are ready to play
Related
How can I get a jar file from a desktop libgdx project in netbeans?
I know it's a bit late and you've probably figured it out by now, but I'll still answer this for those who don't know.
Right click on your desktop project
Go to the "Tasks" menu
Click "dist"
This will create a standalone JAR file in <pathToYourProject>\desktop\build\libs called desktop-1.0.jar (or something like that).
I don't know if that's the proper way to do it, but it's the only one that worked for me.
I have no experience with this but you should be able to unpack/extract the jar file and then load then load the project into Netbeans.
If it's a gradle project.
If it's not search further since I do not know Netbeans.
Import it with Android Studio and work with my favorite IDE. Choose import none android studio project.
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 am having this annoying problem which takes 10-20 seconds and sometimes more every time my android project is refreshed or rebuilt.
I searched for android forums and also in stackoverflow and but solutions does not make sense. Please give me the solution or link to it.
My android project depends on two external java libs and android libs. Tell me if you need more info.
Earlier I asked this question and it solved the problem by removing 'source attachment'. But I believe it is not a good solution because I need source to be attached with jar. It helps while debugging, code browsing. If source is not attached then, your breakpoint stops there and you can't go in readable source.
Better Solution Needed. Is there a launcher option? which disables when app launched. or build options?
Instead of attaching a source folder to the .jar file, you should zip the source folder and attach the zipped file to the .jar.
See this answer for more info https://stackoverflow.com/a/9699242/637754
The reason for this is that you have attached source with your dependent jars. Just the remove the source from the class path. This how it can be done.
Right click on the project -> Select Build Path -> Configure Build Path.. -> Select Libraries
Select the Source attachment and Remove button will highlight. Press Remove and OK.
I think that should fix your issue.
this helped me so you can try too:
Go to your Workspace root/.metadata/.plugins/org.eclipse.jdt.core/ and remove .org.eclipse.jdt.core.external.folders folder
it contains .project file with links to external folders which takes too long to refresh
You can disable "Refresh on access" option in Window->Preferences->General->Workspace - it have no effect as I think, because even it's turned on you must manually refresh projects if you modify them outside of Eclipse
If anything else fails (my case), install a fresh copy of Eclipse Juno
Go to Help-Install Software, and add this repo:
https://dl-ssl.google.com/android/eclipse/
Check all options and install.
For migration reasons I was trying to install Eclipse on MAC OS Yosemite, since Android Studio is now the official IDE, it is hard to find Eclipse setups with the ADT plugin included. I tried several versions of Eclipse, and JUNO did the work.
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'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.