1 Reply Latest reply on Aug 7, 2009 9:03 AM by Alexandros Karypidis

    Baby steps: Eclipse + JDK1.6

    Alexandros Karypidis Novice

      Hi again,

      Another dumb question: I've imported the project into eclipse. The maven projects reference the jdk called "J2SE-1.5". I know it is possible to compile using JDK 1.6 (the command-line build with "mvn package" works just fine). In Eclipse however, I tried to cheat by adding a JDK with that name (which points to Sun JDK 1.6.0_14 in reality) and I get hundreds of errors like:

      Access restriction: The constructor Service(URL, QName) is not accessible due to restriction on required library D:\aiq\jbossws\runtime\jdk1.6.0_14\jre\lib\rt.jar


      Since most (maybe all?) of these classes are under javax.xml.bind.* I'm guessing they have something to do with JAXB differences among 1.5 and 1.6, which the command-line compile solves somehow. How can I make these go away in eclipse? Or should I simply revert to 1.5? What is the "every day" environment you guys work with?

      Thanks