001/******************************************************************************* 002 * This software is provided as a supplement to the authors' textbooks on digital 003 * image processing published by Springer-Verlag in various languages and editions. 004 * Permission to use and distribute this software is granted under the BSD 2-Clause 005 * "Simplified" License (see http://opensource.org/licenses/BSD-2-Clause). 006 * Copyright (c) 2006-2023 Wilhelm Burger, Mark J. Burge. All rights reserved. 007 * Visit https://imagingbook.com for additional details. 008 ******************************************************************************/ 009package Tools_; 010 011import ij.IJ; 012import ij.plugin.PlugIn; 013import imagingbook.core.FileUtils; 014import imagingbook.core.Info; 015import imagingbook.core.jdoc.JavaDocHelp; 016 017 018/** 019 * A simple ImageJ plugin for validating the 'imagingbook' installation. 020 * 021 * @author WB 022 */ 023public class Check_Installation implements PlugIn { 024 025 @Override 026 public void run(String arg0) { 027 IJ.log("Executing plugin ...... " + this.getClass().getName()); 028 IJ.log("Operating system ...... " + System.getProperty("os.name") + " / " + 029 System.getProperty("sun.arch.data.model") + " bits"); 030 IJ.log("Java version .......... " + System.getProperty("java.version")); 031 IJ.log("Java runtime .......... " + System.getProperty("java.runtime.version")); 032 IJ.log("Java VM ............... " + System.getProperty("java.vm.version")); 033 IJ.log("ImageJ version ........ " + IJ.getFullVersion()); 034 035 try { 036 IJ.log("imagingbook location .. " + FileUtils.getClassPath(Info.class)); 037 IJ.log("imagingbook version ... " + Info.getVersionInfo()); 038 IJ.log("imagingbook installation seems to be running OK."); 039 } catch (Exception e) { 040 IJ.log("imagingbook libary not found:"); 041 IJ.log("make sure 'imagingbook-common.jar' is placed in the ImageJ/plugins or ImageJ/jars folder!"); 042 } 043 } 044 045}