How do I set up derby in eclipse on Ubuntu? - eclipse

The question basically says it all. I'm trying setup up JavaDB on my virtualbox running Ubuntu 9.10.
I have the package downloaded and installed through the package manager, which I believe is the right to go about it. I have also installed the Eclipse's Data Platform Tools. I've been following this tutorial here: http://www.vogella.de/articles/EclipseDataToolsPlatform/article.html.
I'm stuck at the driver definition step. When I select the driver template from the Name/Type tab and the jar file in the Jar List tab, the OK button is never enabled. At the top of the New Driver Definition dialog it says 'Unable to locate Jar/zip in the file system as specified by the driver definition: derby.jar.' I assume this is the problem. Any help or links to a better tutorial would be much appreciated.

I think my problem was that I had forgotten to initially install derby as an eclipse plugin. I should have thought of this earlier, but Apache actually has a good tutorial for installing derby, integrating it with eclipse and building a sample project.
The link is here: http://db.apache.org/derby/integrate/derby_plugin.html.

Download the latest Derby version from the Apache website http://db.apache.org/derby/. Choose the binary distribution. Unzip the file to the Eclipse installation directory. The zip file will unpack to create a new subdirectory under the plugins directory of the Eclipse installation.
Source: http://db.apache.org/derby/integrate/derby_plugin.html#Install
You can also add a folder "lib" to your project then copy the file derby.jar from your Derby download into this folder.
Derby tutorial: http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html

Related

Install hadoop plugin for eclipse oxygen

I am trying to install hadoop plugin for eclipse oxygen ... but am not able to make it work properly.. i am not getting any option to create a map reduce project .. can some one please let me know how to go abt installing the hadoop eclipse plugin ? I am unable to use the install new software feature - I have downloaded the hadoop-eclipse-plugin-2.6.0.jar but am not able to install the same as that is giving me an error sayin no site exists that this location. Also, copying the plugin at the eclipse/plugin folder doesn't work either ?
Please help!
Copy it to the dropins folder of your Eclipse installation directory.
See also: Eclipse help - The dropins folder and supported file layouts

What version of Eclipse with what version of plugin Hadoop

I tried various versions of Eclipse with plugins downloaded from internet but I always have problem. With latest version of eclipse and the plugin developed for Hadoop2X, I could not open the Hadoop location configuration wizard. I reinstalled eclipse with older version Ganymede. I used the plugin the one for this version, I am able to open the wizard for Hadoop location configuration but when I try to create the project, I have given the hadoop installation direction, even then it shows the error as configure Hadoop installation directory and its not letting me move to the next section of wizard.
So can someone suggest me what version of eclipse should I use and where can I download the suitable plugin. I am using Hadoop2.5.1.
Thank You. Please help me for the same.

Install a plugin in a complex unix environment

I've created an eclipse plugin on my local host, which works ok.
Now I've to deploy the plugin (.jar) file to some complex unix based environment which has dozens of eclipse installations.
I need to have the plugin only in one of the eclipse instances.
I tried to find all plugin/features/droping directories in system and copy to each of them my plugin. But still I cannot see it in eclipse.
I tried to
Install New Software and Add a local archive but eclipse failed with "no repository found"
Questions :
How can I install the jar file plugin from GUI ?
If its not possible, how can I figure out where is the correct
location of plugin directory from inside eclipse GUI ?
Otherwise how can I see if the eclipse is trying to load the .jar
plugin at all ? (Probably some of the dependencies are failing...)
When you tried
Install New Software and Add a local archive but eclipse failed with "no repository found"
Did you provide the plug-in .jar directly or an update site ?
You should create an update site for it to work.
See http://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin
(The drop-in solution is not reliable.)

Having issues installing derby from eclipse

Im currently trying to install the Apache Derby plugin (http://db.apache.org/derby/releases/release-10.8.2.2.cgi) to my current eclipse install. I have downloaded both the core and ui zip files and tried unzipping into both the dropins and plugins folder (checked the file hierarchy and everything appears to be in the right place "/eclipse/plugins/"). On opening eclipse I dont see any prompt to install new software (from teh dropins folder). When i try to install via Prefereces > Connectivity > Database Drivers no derby plugins are available from the list.
Anyone have an idea as to how to make this install work?
EDIT: I reinstalled eclipse as the 32 bit version as opposed to 64, works like a charm.
Have you point Eclipse to the Derby JDBC driver (should be called derbyclient.jar)? You can define that through Preferences > Data Management > Connectivity > Driver Definitions. Have a look at this eclipse article
I just went through the same issue. I guess what happens is that you can add the Derby nature to a project, but you won't be able to see it in DB properties.
Create a new project, and then right-click the project root and then select "Add Derby Nature". You will then be able to work with the Derby DB by right-clicking on your project, and then selecting one of the options under "Apache Derby"

How to install a custom plug-in in Eclipse Ganymede?

We have a custom plug-in. That is, the company where I'm working developed it in house.
I would like to install it as an available plug-in in Eclipse Ganymede. How do I do that?
From what I can figure out, the Eclipse software install only supports installation from Eclipse software update sites.
I went to Help -> Install New Software... -> Add -> Local...
to browse to a folder containing the plug-in. Although the dialog lets me add the directory as an update site, it doesn't work. It expects that directory to be a local Eclipse update site (I think). I get the error
No repository found at file:/G:/TOOLS/...
Next I just copied the plug-in into the plug-in directory under my Eclipse installation. That didn't work either. I also tried copying it into the dropins directory. No dice.
Can anyone enlighten me how to install a plug-in that's not on an "update" site?
Thanks in advance....
Usually an Eclipse plug-in packaged as zip file is install by extracting it into the Eclipse installation directory (or the plugins directory depending on how it is packaged, as it can also extract files in features directory).
Next restart Eclipse with the --clean option.
Did you check the Eclipse error log? Maybe the bundle is failing to deploy for some reason.
Otherwise, create a Feature and Update Site for your plugin as described here. An update site can either be a remote http server (SVN even), or a local directory. The nice thing is that you'll get versioning and the ability to upgrade and uninstall from inside Eclipse. It also makes things easier once your plugin grows into several plugins because they can be bundled together into a single, versioned feature.