java - dependency (for sun.security.util) of SBT build -


i using sbt build scala project. have java code in project.

when run build following error:

error: package sun.security.util not exist [error] import sun.security.util.objectidentifier;

i understand need declare dependency sun.security.util, don't know dependency should depend on?

my build.sbt contains:

librarydependencies ++= seq("org.springframework" % "spring-dao" % 2.0.8",) 

my jdk version "1.7.0_25". need use sun.security.util package. link said not guaranteed in jdk. how can declare dependency make work? mean, name of dependency should add?

packages in sun.* not guaranteed work everywhere. thus, not recommended use these packages, unless jvm running code under control.

check out http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html more information.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -