Java API Problems - Class file has wrong version 490


Trying to write a Java program to list channel id’s and hang up channels according to a given string…

Anybody seen this ?

Class file has wrong version 49.0, should be 48.0

Tried using:
asterisk-java-0.3-20060314.223735-6.jar 14-Mar-2006 22:37 290K

asterisk-java-0.3-20060715.102326-77.jar 15-Jul-2006 10:23 284K


Seems like you are using Java 1.4 when you should use Java 5.0 (aka 1.5.0)

Asterisk-Java 0.3 (and snapshots thereof) require at least 1.5 - you can download a recent JDK from Sun: