Thanks Bio7 for the reply. Yes, I had seen that post but was still confused (still am…).
As I had already downloaded JDK (jdk-11.0.1) and had no idea about the absence of tools.jar, I asked for help from our IT support. They somehow managed to install the correct version of the JDK and set the environment variables to use that installation and then I don´t get the “no javac” error anymore.
It seems to compile my code. However, it puts the compiled file in a temp folder. Here is the message I get:
HandleExtraFileTypes not up-to-date because 1 source files are not up-to-date (C:\Users\spaciorn\AppData\Local\Temp\java9051753140630652447\src\main\java\HandleExtraFileTypes.java)
Compiling 1 file in C:\Users\spaciorn\AppData\Local\Temp\java9051753140630652447
On that temp folder I find a TARGET subfolder that contains the corresponding .jar file and a CLASSES subfolder that contains the corresponding .class file.
I don´t really know which files I should use and/or put in the FIJI/plugins folder.
Checking the FIJI properties I get this (keeping only the lines that refer to Java):
java.vendor: Sun Microsystems Inc.
java.home: C:\Program Files\Java\jdk1.8.0_191\jre
java.ext.dirs: C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
To use your suggestion of copying the tools.jar library from
jdk/lib to my application bundled JRE (
jre/lib ) I downloaded a clean version of FIJI and checked first the properties. Here are the relevant lines, and I mark the differences from before:
java.ext.dirs: C:\Users\spaciorn\Desktop\FIJIW~1\Fiji.app\java\win64\jdk1.8.0_172\jre\lib\ext; C:\Windows\Sun\Java\lib\ext
So I understand this is the default Java path for javac.
I then copied the
tools.jar library per your instructions:
FROM: C:\Program Files\Java\jdk1.8.0_191\lib
I restarted FIJI and tried to compile my script but got the no javac error again.
Did I copy the correct “tools.jar” to the correct location? If so, why do I still get the same error?
This is all very complicated to the average user that just wants to compile a simple script. I am not an advanced programmer or a java programmer but I have been working with FIJI for years and have written relatively complex macros. So my impression is that I should be able to solve these problems in an easier way.
Any further help will be VERY welcome.