Thanks Awais,
The warning is not document specific.
The error message indicates that I am using version 18.5.
OS windows 7 x64, JDK 10.0.1, eclipse oxygen 4.7.3a
“WARNING: Illegal reflective access by asposewobfuscated.zzA5 (File:/(…)/Libraries/Aspose/lib/aspose-words-18.5-jdk16.jar) to method java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,byte[],int)”
The code is as follows (simple convert docx to pdf), however I think this error indicates an outdated method call from the Aspose library to the java library. More specifically The method java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,byte[],int) in class asposewobfuscated.zzA5
public String convertFile(String inFile, String tempDir, String extension)
{
String Base64 = "";
try
{
Future<String> result = null;
// make a copy of the file then covert, or convert from the original (original
// not destroyed).
boolean copyBeforeConvert = false;
CallableConverter callable = new CallableConverter(inFile, tempDir, extension, copyBeforeConvert);
result = executor.submit(callable);
Base64 = result.get();
this.convertedCount = convertedCount + 1;
} catch (InterruptedException | ExecutionException e)
{
Logit.log(Level.SEVERE, "an error occured whilst converting: " + inFile + " " + e.toString());
}
return Base64;
}
Hope this helps.
What version of Java is currently supported as JDK 1.8 is being phased out by January 2019? I see the requirements state 1.8 or above. 