JAR files are typically compiled Java code, which can be opened by the Java Virtual Machine. Java is owned and updated by Sun Microsystems.
SWF files are compiled ActionScript code, which can by opened by the ActionScript Virtual Machine. ActionScript (used by Flash) is owned and updated by Adobe.
The two are similar, but created by different companies, and aren’t really able to interact in any way.
solved How to use .jar file in as3 [closed]