Why we get "package sun.nio.ch.sctp does not exist" type of error? I am getting this error on Jenkins.
Asked
Active
Viewed 1,375 times
2 Answers
1
Open JDK version 1.7.0_09 do not have this package. JDK by Oracle has this package.

वरुण
- 1,237
- 3
- 18
- 50
0
It is said in API that mentioned package is since Java 1.7. Probably you have to upgrade Java on Jenkins server.

volkovs
- 1,153
- 2
- 11
- 24
-
I have this version on Jenkins – वरुण Oct 27 '14 at 13:42
-
java version "1.7.0_09-icedtea" OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-i386) OpenJDK Server VM (build 23.2-b09, mixed mode) – वरुण Oct 27 '14 at 13:44
-
1Do you have more details what code requires sun package? As mentioned http://stackoverflow.com/questions/8565708/what-is-inside-com-sun-package that code is Oracle JVM specific and may not be compatible with other JVMs including Open JDK. – volkovs Oct 28 '14 at 08:56
-
You are correct. This problem is resolved by installing java by Oracle. – वरुण Oct 28 '14 at 17:03