Latest stable version does not compile with 1.4
Status: Alpha
Brought to you by:
ymnk
The latest Jsch at the time of writing (1.51) does not compile with java 1.4
Although it states on the website that it is known to work, the last version which will successfully compile with java 1.4 is jsch 1.49.
The incompatibility is introduced by a new String function - 'replace'
The recommended patch is to replace line 490 of com.jcraft.jsch.Util the replaceFirst function which exists in JDK 1.4, while the replace function does not exist for the given arguments (String, String).
Attached is the patch.