Hi,

I just check out latest svn code, and trying to build smsserver. But I
found below error message.
Based on 
http://java.sun.com/javase/6/docs/api/javax/net/ssl/SSLContext.html#getDefault()
,
SSLContext.getDefault() exist since 1.6  only.

Is it intended that latest smslib requires java 1.6 and not compatible
with 1.5 ?

I think this should be changed to
SSLContext.getInstance("Default").getSocketFactory() to support
1.5 version.

$ ant -lib . build-smsserver
Buildfile: build.xml

compile.smsserver:
    [javac] Compiling 30 source files to /Volumes/Data/smslib-svn/dist/classes
    [javac] 
/Volumes/Data/smslib-svn/src/java/org/smslib/modem/IPModemDriver.java:84:
cannot find symbol
    [javac] symbol  : method getDefault()
    [javac] location: class javax.net.ssl.SSLContext
    [javac]
this.tc.setSocketFactory(SSLContext.getDefault().getSocketFactory());
    [javac]
                ^
    [javac] 1 error

BUILD FAILED
/Volumes/Data/smslib-svn/build.xml:92: Compile failed; see the
compiler error output for details.

Total time: 0 seconds
$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

Best regards,

-- 
Ernas Moethar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to