Announcement Announcement Module
Collapse
No announcement yet.
Error Building Petclinic example: JXDatePicker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Building Petclinic example: JXDatePicker

    I've download this project but when I try to build the PetClinic sample, I obtain the following error:

    [Launching ant]
    Buildfile: build.xml

    compile:
    [javac] Compiling 13 source files to E:\JAVIER\Software\Download\SpringFrame
    work\CVS\spring-richclient\samples\petclinic\classes
    [javac] E:\JAVIER\Software\Download\SpringFramework\CVS\sp ring-richclient\samples\petclinic\src\org\springframewo rk\richclient\samples\petclinic\ui\binder\CustomDatePickerBinder.java:25: cannot access org.jdesktop.swing.JXDatePicker
    [javac] bad class file: E:\JAVIER\Software\Download\SpringFramework\CVS\sp ri
    ng-richclient\lib\jdnc\jdnc.jar(org/jdesktop/swing/JXDatePicker.class)
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of
    the classpath.
    [javac] import org.jdesktop.swing.JXDatePicker;
    [javac] ^
    [javac] 1 error

    I donīt understand what means the error with version 49.0 and 48.0.

    Best regards, and thanks for your help,

    Janfry

  • #2
    It usually means you are compiling with a different JDK version than the one the jar was compiled with.

    Comment


    • #3
      Something is wrong here!
      The spring-richclient readme.txt says that:
      2. RELEASE INFO

      Sprint-RCP requires J2SE 1.4 and the core SpringFramework. Integration is
      provided with Log4J 1.2,CGLIB 1.0, Jakarta Commons Attributes, and Jakarta
      Commons Lang 2.0.
      and
      Ant build scripts for the
      framework and the samples are provided. The standard samples can be built with
      the included Ant runtime by invoking the corresponding "build.bat" files (see
      samples subdirectories).
      But the example depends on J2SE 1.5. So, can I build it with J2SE 1.4 or not?
      It should be more consistent or at least have a note about this!

      Gilberto

      Comment


      • #4
        you need to pick up a version of jndc.jar that was compiled with java version of 1.4.

        the other alternative is to compile your stuff with java 5

        Comment


        • #5
          Thanks, Alex!

          Anyway someone could put something like a --dependencies item in the release-notes.txt file.

          Gilberto

          Comment


          • #6
            Or make the dependencies explicit with either Maven2 or Ivy.

            :-)

            Comment

            Working...
            X