Which version of java have you upgraded from?
It looks like the module com.sun.javafx.embed.swing.oldimpl may have been removed or hidden from newer versions of Java.
It's not something I've used, so will need investigation. Someone may be able to help directly but if not, Can you show the code you are using to open the com port?
This computer was running with jdk-11.0.1. This is my main development machine. Recently I have not been working on serial com software, the last time may have been 2-3 months ago. I have been working on non-COM software and had no problem. But I had to update one of those COM applications and I started getting this error. I did not intentionally make changes to this machine with regards to Java in the meantime, but this being a development machine, I regularly update other tools so I am not sure what happened.
The problem does not go away if I revert to jdk-11.0.1
At the moment, even apps that I have not touched (no rebuild, just running the old used-to-be working jar file) no longer work, in the IDE or the jar file.
This is a bit scary as my business depends on it. I have my older backup machine still runnng the jar files, I am scared to run the IDE on that one because I ABSOLUTELY need this software running and I can't afford to break anything.
I know that in the past I had this issue consistently with the OpenJDK but not with the Oracle version, but I have not been able to get the jdk+jfx from the Oracle website and I am not sure how to go about rebuilding that.
[CODE lang="b4x" title="Sub OpenCOMPort"]Sub OpenCOMPort As Boolean
Try
sp.Open( COMPort )
Catch
Log( "Cannot open " & COMPort & CRLF & LastException )
Return False
End Try
Try
' COM port always running 8,N,1, parity check done in software
sp.SetParams( BaudRate, 8, 1, 0 )
Catch
Log( "Cannot set params" & CRLF & LastException)
Return False
End Try
Try
Astream.Initialize( sp.GetInputStream, sp.GetOutputStream, "AStream" )
Catch
Log( "Cannot open Astream" )
Return False
End Try
PortOpen = True
Return True
End Sub ' OpenCOMPort[/CODE]