Skip to content

Commit 985f8e2

Browse files
ctruedenclaude
andcommitted
Revamp the scripting section, beef up Python info
- scripting/index.md — added the ImageJ-vs-SciJava disambiguation up top, a "Terminology" block that defines the naming convention once, updated the Python row in the language table to link the Python page, added cross-reference from menu-path section to #@script directive. - scripting/python.md — replaced the two-option stub with a four-option chooser (Jython / Fiji Python mode / Appose / GraalPy stub) plus a "when to pick which" buying guide and a caveats section. - scripting/basics.md — reframed the intro around the SciJava framework with a pointer that this page is about writing (not invoking) scripts; added new "Declaring the script language" section covering #!Lang shebang and the full #@script directive attribute table; fixed code fences that were labeled javascript but contained Groovy or ImageJ macro; removed the stale "Since 1.52v11..." version note. - scripting/jython/index.md — added status banner at the top pointing to the Python chooser; "When to use Jython" rewritten as niche-and-tradeoffs; OpenCV section collapsed from ~120 lines of unmaintained JavaCPP code to a short paragraph with a forward link; fixed the broken Wikipedia footnote. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 8507680 commit 985f8e2

10 files changed

Lines changed: 514 additions & 602 deletions

File tree

_pages/plugins/updater.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
---
2-
mediawiki: Updater
32
title: Updater
43
categories: [ImageJ2]
54
artifact: net.imagej:imagej-updater
65
project: /software/imagej2
76
---
87

9-
The purpose of the ImageJ Updater is to keep you up-to-date with all components of ImageJ (or Fiji), i.e. the macros, scripts, plugins and the core components (libraries) needed by the plugins.
8+
The ImageJ Updater plugin is part of the [ImageJ2 component suite](/software/imagej2) (*not* the [original ImageJ](/software/imagej)), and is bundled with [Fiji](/software/fiji). Its purpose is to keep all of your components up to date: i.e. the macros, scripts, plugins and core libraries needed by the plugins.
109

1110
The ImageJ Updater can handle [3rd-party update sites](#adding-update-sites), i.e. anybody can set up their own update site which users can follow.
1211

1312
## Automatic Update
1413

1514
The Updater is a mechanism to update individual packages. It is automatically run when all the following conditions are met:
1615

17-
- ImageJ was just started
18-
- ImageJ was started without parameters (i.e. no Drag 'n Drop onto the ImageJ icon)
19-
- ImageJ's files can be updated by the current user
16+
- Fiji was just started
17+
- Fiji was started without parameters (i.e. no Drag 'n Drop onto the Fiji icon)
18+
- Fiji's files can be updated by the current user
2019
- There is a network connection
2120

2221
If there were updates since the Updater was run the last time, the user will be asked whether you want to run the Updater now or later:
@@ -35,7 +34,7 @@ The Updater has two modes, the *Easy Mode* and the *Advanced Mode*. In the easy
3534

3635
![Updater easy mode](/media/plugins/updater-easy-mode.png)
3736

38-
For technical reasons, a restart of ImageJ is required before the changes take effect. You can read about technical details [here](/develop/uploading-plugins).
37+
For technical reasons, a restart of Fiji is required before the changes take effect. You can read about technical details [here](/develop/uploading-plugins).
3938

4039
### Resolve dependencies
4140

@@ -75,21 +74,21 @@ You can also [set up and populate your own update site](/update-sites/setup).
7574

7675
It is possible to drive the Updater through the command-line option `--update`. If you call that without arguments, it will show you what subcommands are available:
7776

78-
./ImageJ-<platform> --update
77+
fiji --update
7978

8079
The simplest usage is to update either single files:
8180

82-
./ImageJ-<platform> --update update jars/ij.jar plugins/Simple_Neurite_Tracer.jar
81+
fiji --update update jars/ij.jar plugins/Simple_Neurite_Tracer.jar
8382

8483
or all files that would be marked for update in the interactive Updater by default:
8584

86-
./ImageJ-<platform> --update update
85+
fiji --update update
8786

8887
If you configured upload sites, you can also use the command-line version of the Updater to upload files:
8988

90-
./ImageJ-<platform> --update upload plugins/My_New_Cool_Plugin.jar
89+
fiji --update upload plugins/My_New_Cool_Plugin.jar
9190

92-
The full list of options available when running ImageJ from command line looks like this:
91+
The full list of options available when running Fiji from command line looks like this:
9392

9493
Commands:
9594
diff [ --list-files | --javap | --class-file-diff | --hex-diff ] [<files>]
@@ -114,17 +113,16 @@ The full list of options available when running ImageJ from command line looks l
114113

115114
In order to update from command line using a specific update site (for example the BAR) use the following command:
116115

117-
./ImageJ-<platform> --update add-update-sites "BAR" "https://sites.imagej.net/Tiago/"
116+
```shell
117+
fiji --update add-update-site "BAR" "https://sites.imagej.net/Tiago/"
118+
fiji --update update
119+
```
118120

119-
## Bootstrapping the updater
121+
You can also add multiple update sites in a single command line:
120122

121-
If you do not have ImageJ yet, you can download [bootstrap.js](http://update.imagej.net/bootstrap.js) and run it like this:
122-
123-
jrunscript bootstrap.js help
124-
125-
This uses the **jrunscript** executable of your Java installation to run the Javascript file tracked in ImageJ's {% include github org='imagej' repo='imagej-updater' branch='master' path='bin/bootstrap.js' label='source code repository' %}.
126-
127-
The `bootstrap.js` script was originally intended to fix broken [Fiji](/software/fiji) installations, and was subsequently enhanced to initialize the updater in an ImageJ 1.x-only directory -- or even from a complete fresh state.
123+
```shell
124+
fiji --update add-update-sites "BAR" "https://sites.imagej.net/Tiago/" "IJPB-plugins" "https://sites.imagej.net/IJPB-plugins/"
125+
```
128126

129127
## History
130128

@@ -134,9 +132,9 @@ In the course of one of two successful Google Summer of Code projects, the updat
134132

135133
Johannes Schindelin got stuck with the maintainership and introduced third-party update sites (a feature that many claimed to desire, though no pinky was harmed by contributing any code) in the course of a very successful [hackathon](/events/hackathons#imagej-hackathons) at the Lawrence Berkeley National Laboratory in October 2010 and another one in February 2011 hosted by [LOCI](/orgs/loci).
136134

137-
As of September 2012, the Fiji Updater has moved to [ImageJ2](/software/imagej2). Details can be found in the announcement: [2012-09-14 - The Updater moved](/news/2012-09-14-the-updater-moved).
135+
In September 2012, the Fiji Updater moved to [ImageJ2](/software/imagej2). Details can be found in the announcement: [2012-09-14 - The Updater moved](/news/2012-09-14-the-updater-moved).
138136

139137
## Related links
140138

141-
* Schematics of the [updater inner working](/develop/updaterv1)
139+
* Schematics of the [Updater inner workings](/develop/updaterv1)
142140
* [Headless scripting](/scripting/headless)

0 commit comments

Comments
 (0)