jpeg to ecw conversion is a matter of export between JPEG and ECW (Enhanced Compressed Wavelet) graphics formats. While JPEG format is supported in pretty much in every graphics software, the same cannot be said about ECW format, which is proprietary and mainly used for GIS pictures.
Your best option is to use some dedicated graphics converter for this, but keep in mind that the resulting file will lack any metadata that are otherwise typical for ECW format.