Announcement Announcement Module
Collapse
No announcement yet.
compilation errors for petclinic sample Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • compilation errors for petclinic sample

    Hi,
    I have recently been introduced to Spring RCP. I wanted to check it out and so retrieved the module from CVS. However, when I tried to build the stand alone app (using the build-standalone target in the petclinic directory), I got the following compilation errors.
    Can someone please tell me how to fix them?
    Thanks,
    Panini

    compile:
    [javac] Compiling 13 source files to D:\SpringRCP\SpringRCP\spring-richclien
    t\samples\petclinic\classes
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\PetCli nicLifecycleAdvisor.java:23: p
    ackage org.springframework.richclient.preference does not exist
    [javac] import org.springframework.richclient.preference.Preferen ceStore;
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\Own erManagerView.java:53: package
    org.springframework.richclient.preference does not exist
    [javac] import org.springframework.richclient.preference.Preferen ceStore;
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:51: package org.springframework.richclient.preference does not exist
    [javac] import org.springframework.richclient.preference.FormBack edPreferenc
    ePage;
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:59: cannot resolve symbol
    [javac] symbol : class FormBackedPreferencePage
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.AppearancePreferencePage
    [javac] public class AppearancePreferencePage extends FormBackedPreferencePa
    ge {
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\PetClinicAppearance.ja
    va:35: package org.springframework.richclient.preference does not exist
    [javac] import org.springframework.richclient.preference.Preferen ceStore;
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\PetClinicAppearance.ja
    va:53: cannot resolve symbol
    [javac] symbol : class PreferenceStore
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.PetClinicAppearance
    [javac] public void load(PreferenceStore preferenceStore) {
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\PetCli nicLifecycleAdvisor.java:55: c
    annot resolve symbol
    [javac] symbol : class PreferenceStore
    [javac] location: class org.springframework.richclient.samples.petclinic.P et
    ClinicLifecycleAdvisor
    [javac] PreferenceStore ps = (PreferenceStore) getApplicationService
    s().getBean("preferenceStore");
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\PetCli nicLifecycleAdvisor.java:55: c
    annot resolve symbol
    [javac] symbol : class PreferenceStore
    [javac] location: class org.springframework.richclient.samples.petclinic.P et
    ClinicLifecycleAdvisor
    [javac] PreferenceStore ps = (PreferenceStore) getApplicationService
    s().getBean("preferenceStore");
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\Own erManagerView.java:278: cannot
    resolve symbol
    [javac] symbol : class PreferenceStore
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    OwnerManagerView.PropertiesCommandExecutor
    [javac] PreferenceStore ps = (PreferenceStore)getApplicationCont
    ext().getBean("preferenceStore");
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\Own erManagerView.java:278: cannot
    resolve symbol
    [javac] symbol : class PreferenceStore
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    OwnerManagerView.PropertiesCommandExecutor
    [javac] PreferenceStore ps = (PreferenceStore)getApplicationCont
    ext().getBean("preferenceStore");
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:79: cannot resolve symbol
    [javac] symbol : method getPreferenceStore ()
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.AppearancePreferencePage
    [javac] appearance.load(getPreferenceStore());
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:99: cannot resolve symbol
    [javac] symbol : method getForm ()
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.AppearancePreferencePage
    [javac] getForm().getValueModel("dialogPageType").setValue (Composite
    DialogPageType.TREE);
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:111: cannot resolve symbol
    [javac] symbol : method getForm ()
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.AppearancePreferencePage
    [javac] getForm().commit();
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:117: cannot resolve symbol
    [javac] symbol : method getPreferenceStore ()
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.AppearancePreferencePage
    [javac] getPreferenceStore().setValue(PetClinicAppearance. DIALOG_PAG
    E_TYPE, appearance.getDialogPageType());
    [javac] ^
    [javac] D:\SpringRCP\SpringRCP\spring-richclient\samples\petclinic\src\org\s
    pringframework\richclient\samples\petclinic\ui\pre ference\AppearancePreferencePa
    ge.java:119: cannot resolve symbol
    [javac] symbol : variable super
    [javac] location: class org.springframework.richclient.samples.petclinic.u i.
    preference.AppearancePreferencePage
    [javac] return super.onFinish();
    [javac] ^
    [javac] 15 errors

    BUILD FAILED

  • #2
    Be sure to build the sandbox -- 'build sandboxjar' - we should likely make this the default since petclinic depends on it.

    Keith

    Comment


    • #3
      Originally posted by kdonald
      Be sure to build the sandbox -- 'build sandboxjar' - we should likely make this the default since petclinic depends on it.

      Keith
      That did the trick...
      thanks,
      Panini

      Comment

      Working...
      X