jwolz / yajhfc

YajHFC (Yet another Java HylaFAX client) is a client for the HylaFAX fax server written completely in Java
https://www.yajhfc.de
Other
7 stars 1 forks source link

yajhfc don't work with Oracle Java 9 #41

Closed jwolz closed 8 years ago

jwolz commented 8 years ago

Original report by ptbranco (Bitbucket: ptbranco, GitHub: ptbranco).


If I have Oracle Java 9 as default java I get this error:

#!bash

~~~~~@~~~~~:~$ yajhfc

Could not determine Java version.

 Reason:

java.lang.NumberFormatException: For input string: "9-ea"

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

    at java.lang.Integer.parseInt(Integer.java:675)

    at java.lang.Integer.parseInt(Integer.java:793)

    at yajhfc.Launcher.main(Launcher.java:71)

If I change to version 7, it works!

jwolz commented 8 years ago

Original comment by Jonas Wolz (Bitbucket: jonaswolz, GitHub: jwolz).


The parser had a problem with alphanumeric versions (i.e. "1.7.0" works, but "1.9-ea.0" not).

Fixed in 0.6.0rc4.