How to install JScience library in Eclipse? - eclipse

Or just any library, in general? I downloaded the bin.zip file, but I can't seem to do much with it? This is driving me up the wall...
EDIT: In other words, there is no "standard" way to do it? I know how to add the Jar files, is it ok to just put them (and the docs) anywhere?

Shouldn't be much harder than putting the JARs into your project build path.
Unzip the archive and put the JARs where Eclipse can find them.

Related

How to Set Up Netty?

I'm trying to figure out how to use the Netty API with Eclipse and this might sound really dumb but how do I set it up?
I found the download link here: http://netty.io/downloads.html and downloaded the latest version which has a file extension of .tar.bz2 but I'm not sure what directory I'm supposed to place it in and what to do with it now.
Any help will be appreciated!
if you extract the archive you'll find a jar in there like netty-all-5.0.0.Alpha1.jar in the all-in-one folder. Just put this in your build path.

How to install the Xpand in Eclipse?

I m trying to install Xpand in Eclipse. I am doing it through update manager. However the download stack at around 29%. I use the following link:
http://download.eclipse.org/modeling/m2t/xpand/updates/nightly/
Alternatively I downloaded the zip file from this link:
http://www.eclipse.org/modeling/m2t/downloads/?project=xpand
Then I tried to do install->new software-> Add -> Archive and I pointed at the zip file. I thought that this would gonna work since it uses the local zip file.Again it stucks around 29%.
Now I am thinking to manually add the plug-in to the eclipse but I m not sure how:
The content of the zip are:
- binary(folder)
- features(folder)
- plugins(folder)
- artifact.jar
- content.jar
I know that I have to copy the features and the plugins folder in the corresponding ones in the eclipse folder. However I don`t know what to do with the binary(folder) and the artifact.jar/content.jar files.
Anybody could help me out please?
Thnx
I don't know why the installation is getting stuck at 29%. It may be a firewall/proxy problem on your end, or it may be corrupt metadata in the archive. It's worth following up on the Xpand mailing list or forum.
But, if you want to install it, you can unzip the archive into your dropins folder inside of your eclipse. This will work unless Xpand requires any third party jars.
i use this updatesite for xpand install. and it works well
xpand - http://download.eclipse.org/modeling/m2t/xpand/updates/
go to menu:
help-install new software-(add the link)-select all-finish

Have eclipse copy .class files to additional target folder?

I have an eclipse project. By default, my .class files are being put here:
/projectname/build/classes
is there a way I can have eclipse also copy those files to an additional folder destination, every time the project is built?
I could write a script to do this myself, but was hoping there was some kind of hook in eclipse to do this.
Thanks
You could write an Ant script for this and add it as a builder to your project. See the Eclipse documentation for an example.
Eclipse doesn't have the native ability to output to multiple locations, but you can probably accomplish it yourself by adding a custom builder to your project(s).

Generalized Steps for configuring imported jsf project's libraries in eclipse

i have checked similar posts and have googled but could not find an eligible answer to this. When ever i import a jsf project from some other system (where its working fine) OR delete the tomcat server in eclipse and add new server back again...there are lots of tag libs and imports that go "unresolved". Such applications are often not created by me and i dont exactly know which libraries are to be added to configure and fix project in eclipse.
I want to ask, is there any general way to find out all the required libraries for any imported jsf project and then add them.
Thanks in advance.
Download the javax.faces.jar file and drop it in project's /WEB-INF/lib folder.
That's all.

Eclipse won't delete files

I've got an ANT project with libs managed by ivy (they are under lib_managed). Eclipse is using the jars to. Probelm is: if I try to update the directory ant refuses to delete it because eclipse holds on to the jars in its classpath. Even if I update (empty) eclipses classpath I can't delete the files. If anyone had the same problem and found a solution I would be thankfull for an answer.
Regards, Jan
Not a solution, but a workaround. I experience Eclipse keeping locks on files quite often in different contexts. I suggest using Unlocker.
I guess this is on Windows. Use the Process Explorer to figure out who is locking the files. Eclipse shouldn't keep a lock; maybe you have the code running in the debugger (hanging in a breakpoint). Use the list of open files and the properties to figure out which Java program is keeping the lock on the files.
If it's really Eclipse, try to upgrade to a newer version of Eclipse or close the project when you need to update the dependencies with ivy.
Cleaning the workspace and restarting eclipse may solve the problem. But in real development environment i don't think its a good idea to restart eclipse whenever you need to build a jar.