Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11930 (closed)

Opened 10 years ago

Closed 10 years ago

Update Delete examples

Reported by: spli Owned by: wmoore
Priority: major Milestone: 5.0.0
Component: OmeroPy Version: 5.0.0-rc1
Keywords: n.a. Cc: python-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

https://github.com/openmicroscopy/openmicroscopy/blob/develop/examples/Delete/FileAnnotationDelete.py and other examples use the deprecated queueDelete. They should be updated.

Change History (7)

comment:1 Changed 10 years ago by hflynn

This doesn't look like a docs task to me @spli, do you want to cc some relevant ppl and move it to a different component?

comment:2 Changed 10 years ago by jamoore

  • Cc python-team@… added
  • Component changed from Documentation to OmeroPy
  • Milestone changed from Unscheduled to 5.0.0
  • Priority changed from minor to major
  • Version changed from 5.1.0-m0 to 5.0.0-rc1

comment:3 Changed 10 years ago by hflynn

  • Owner hflynn deleted

comment:4 Changed 10 years ago by mtbcarroll

  • Owner set to wmoore

comment:5 Changed 10 years ago by jburel

Will: could you update the java example too

https://github.com/openmicroscopy/openmicroscopy/blob/develop/examples/Delete/FileAnnotationDelete.java

comment:6 Changed 10 years ago by wmoore

Started work on the Java example - see https://github.com/will-moore/openmicroscopy/commits/delete_examples_11930
commit https://github.com/will-moore/openmicroscopy/commit/9c169dbcaa2fb2c806e82559df91738f8bdfe4ca

using instructions on https://www.openmicroscopy.org/site/support/omero5/developers/Java.html

NB: these docs tell me to use omero_client.jar but I couldn't see that in dist/lib/client/ so I used insight.jar instead.

but when I try to compile and run, I get

CLASSPATH=dist/lib/client/insight.jar 

$ javac examples/Delete/FileAnnotationDelete.java -Xlint:deprecation
jrs-macbookpro-25107:OMERO will$ java examples/Delete/FileAnnotationDelete.class 
Exception in thread "main" java.lang.NoClassDefFoundError: examples/Delete/FileAnnotationDelete/class
Caused by: java.lang.ClassNotFoundException: examples.Delete.FileAnnotationDelete.class
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

comment:7 Changed 10 years ago by wmoore

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65344 sec.)

We're Hiring!