[ome-devel] Question regarding importing Bio-Formats libraries in NetBeans
David Gault (Staff)
d.gault at dundee.ac.uk
Wed Aug 3 10:00:45 BST 2016
Hi Mirella,
In NetBeans the following steps should allow you to add the Bio-Formats libraries to your project:
- Right click on the your plugin project on the left hand panel and select Properties
- Under the Libraries category select 'Add Jar/Folder’
- Select the individual Bio-Formats jars or the folder containing them and select ‘Choose'
- You should now see the jars appearing in a Library folder in the Projects panel on the left
I hope that will be enough to get you up and running for your project.
With Thanks,
David Gault
On 2 Aug 2016, at 18:35, Mirella Koleva <mirella.koleva at dpag.ox.ac.uk<mailto:mirella.koleva at dpag.ox.ac.uk>> wrote:
Hi All,
I am using the NetBeans IDE to develop a plugin for ImageJ in the Java language. The plugin needs Bio-Formats to open the image to be analysed. I am new to using NetBeans and what I am having problems with is figuring out how to add the Bio-Formats Java libraries to my NetBeans project.
I have searched very extensively on the internet for a solution and nothing seems to work.
Amongst other things, I have tried:
1) Downloading formats-gpl.jar and putting it in the CLASSPATH and build path, as advised on the OME websitehttp://www.openmicroscopy.org/site/support/bio-formats5.1/developers/java-library.html
2) Right-clicking on the ‘Dependencies’ folder of my NetBeans plugin project, selecting ‘Add Dependency…’, clicking on the ‘Dependency Management’ tab and selecting ‘ome : formats-gpl : [ jar ]’.
3) Adding a global library in the Ant Library Manager by selecting Tools > Libraries, clicking on ‘New Library…’, then in both the ‘Classpath’ and ‘Sources’ tabs clicking on ‘Add JAR/Folder’ and choosing the right path to the .jar downloaded in 1).
Regardless of this, NetBeans still doesn’t recognise the libraries I want to import: it underlines them in red and when I hover on the left-hand side over the warning icons, a pop-up bubble says ‘package does not exist’.
I am attaching here a snapshot of my screen.
I’d be very grateful for any tips regarding this issue!
With many thanks,
Mirella
<PrtScr_NetBeans.png>_______________________________________________
ome-devel mailing list
ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20160803/d967fa43/attachment.html>
More information about the ome-devel
mailing list