Hi Ernas, Yes, there is an issue with this enhancement: http://code.google.com/p/smslib/issues/detail?id=237 The contributing friend has proposed a solution but I haven't had the time to check it yet - it will be corrected eitherway.
SMSLib will stay with JDK1.5 :) On Jul 23, 4:57 pm, Ernas Moethar <[email protected]> wrote: > Hi, > > I just check out latest svn code, and trying to build smsserver. But I > found below error message. > Based > onhttp://java.sun.com/javase/6/docs/api/javax/net/ssl/SSLContext.html#g...() > , > 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 -~----------~----~----~----~------~----~------~--~---
