You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Savitha Rajiv <sa...@yahoo.com> on 2005/05/03 18:31:44 UTC

compile errors: packages dont exist and Unresolved symbol errors...


 Hi,
 
 Newbie here, trying to resolve a bunch of compile
 errors:
 
 
 [javac] Compiling 63 source files to
 C:\Root\build\target\classes

C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:17:
package javax.xml.bind does not exist
 import javax.xml.bind.JAXBContext;
                       ^
C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:18:
package javax.xml.bind does not exist
 import javax.xml.bind.JAXBException;

C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:19:
 package javax.xml.bind does not exist
 import javax.xml.bind.Unmarshaller;
                       ^

C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:23:
 cannot  resolve symbol
 symbol  : class ComponentConfig
 location: package config
 import com.wiziotec.config.ComponentConfig;
                            ^
C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:24:
 cannot resolve symbol
 symbol  : class WizConfig
 location: package config
 import com.wiziotec.config.WizConfig;
                            ^

C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:33:
 cannot
  resolve symbol
 symbol  : class WizConfig
 location: class com.wiziotec.common.lib.ConfigUtil
         private static WizConfig config;
                        ^

C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:35:
 cannot
  resolve symbol
 symbol  : class WizConfig
 location: class com.wiziotec.common.lib.ConfigUtil
         public static WizConfig getConfig()
                       ^

C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:61:
 cannot
  resolve symbol
 symbol  : class ComponentConfig
 location: class com.wiziotec.common.lib.ConfigUtil
         public static ComponentConfig
 getComponentConfig()
                       ^

C:\Root\src\com\wiziotec\component\communicate\email\EmailDest
 ination.java:18: package javax.mail does not exist
 import javax.mail.Message;
                   ^

C:\Root\src\com\wiziotec\component\communicate\email\EmailDest
 ination.java:34: package Message does not exist
         public void addDestination(String dest,
 Message.RecipientType destType)
                                                     
  
 ^

C:\Root\src\com\wiziotec\component\communicate\email\EmailSend
 er.java:19: package javax.activation does not exist
 import javax.activation.DataHandler;
 
 
 
 I created a project.properties file with the
 following
 info:

 
 # P R O J E C T  P R O P E R T I E S
 #
------------------------------------------------------------------
  
 
 maven.jar.override = on
 
 maven.jar.servlet = c:/Root/lib/servlet.jar
 maven.jar.activation = c:/Root/lib/activation.jar
 maven.jar.junit = c:/Root/lib/junit.jar
 maven.jar.log4j = c:/Root/lib/log4j.jar
 maven.jar.WizConfig = c:/Root/lib/WizConfig.jar
 maven.jar.velocity-1.4 = c:/Root/lib/velocity-1.4jar
 maven.jar.velocity-dep-1.4 =
 c:/Root/lib/velocity-dep-1.4.jar
 maven.jar.jaxb-api = c:/Root/lib/jaxb/jaxb-api.jar
 maven.jar.jaxb-impl = c:/Root/lib/jaxb/jaxb-impl.jar
 maven.jar.jaxb-libs = c:/Root/lib/jaxb/jaxb-libs.jar
 maven.jar.jaxb-xjc = c:/Root/lib/jaxb/jaxb-xjc.jar
 
 What am I missing? Please Help!
 
 Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: compile errors: packages dont exist and Unresolved symbol errors...

Posted by Brett Porter <br...@gmail.com>.
you still need to have declared jaxb-api etc in your project.xml for
the property overrides to work.

If you have, try -X - it will show you the actual classpath being used
for compilation.

- Brett

On 5/4/05, Savitha Rajiv <sa...@yahoo.com> wrote:
> 
> 
>  Hi,
> 
>  Newbie here, trying to resolve a bunch of compile
>  errors:
> 
>  [javac] Compiling 63 source files to
>  C:\Root\build\target\classes
> 
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:17:
> package javax.xml.bind does not exist
>  import javax.xml.bind.JAXBContext;
>                        ^
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:18:
> package javax.xml.bind does not exist
>  import javax.xml.bind.JAXBException;
> 
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:19:
>  package javax.xml.bind does not exist
>  import javax.xml.bind.Unmarshaller;
>                        ^
> 
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:23:
>  cannot  resolve symbol
>  symbol  : class ComponentConfig
>  location: package config
>  import com.wiziotec.config.ComponentConfig;
>                             ^
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:24:
>  cannot resolve symbol
>  symbol  : class WizConfig
>  location: package config
>  import com.wiziotec.config.WizConfig;
>                             ^
> 
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:33:
>  cannot
>   resolve symbol
>  symbol  : class WizConfig
>  location: class com.wiziotec.common.lib.ConfigUtil
>          private static WizConfig config;
>                         ^
> 
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:35:
>  cannot
>   resolve symbol
>  symbol  : class WizConfig
>  location: class com.wiziotec.common.lib.ConfigUtil
>          public static WizConfig getConfig()
>                        ^
> 
> C:\Root\src\com\wiziotec\common\lib\ConfigUtil.java:61:
>  cannot
>   resolve symbol
>  symbol  : class ComponentConfig
>  location: class com.wiziotec.common.lib.ConfigUtil
>          public static ComponentConfig
>  getComponentConfig()
>                        ^
> 
> C:\Root\src\com\wiziotec\component\communicate\email\EmailDest
>  ination.java:18: package javax.mail does not exist
>  import javax.mail.Message;
>                    ^
> 
> C:\Root\src\com\wiziotec\component\communicate\email\EmailDest
>  ination.java:34: package Message does not exist
>          public void addDestination(String dest,
>  Message.RecipientType destType)
> 
>  ^
> 
> C:\Root\src\com\wiziotec\component\communicate\email\EmailSend
>  er.java:19: package javax.activation does not exist
>  import javax.activation.DataHandler;
> 
>  I created a project.properties file with the
>  following
>  info:
> 
>  # P R O J E C T  P R O P E R T I E S
>  #
> ------------------------------------------------------------------
> 
>  maven.jar.override = on
> 
>  maven.jar.servlet = c:/Root/lib/servlet.jar
>  maven.jar.activation = c:/Root/lib/activation.jar
>  maven.jar.junit = c:/Root/lib/junit.jar
>  maven.jar.log4j = c:/Root/lib/log4j.jar
>  maven.jar.WizConfig = c:/Root/lib/WizConfig.jar
>  maven.jar.velocity-1.4 = c:/Root/lib/velocity-1.4jar
>  maven.jar.velocity-dep-1.4 =
>  c:/Root/lib/velocity-dep-1.4.jar
>  maven.jar.jaxb-api = c:/Root/lib/jaxb/jaxb-api.jar
>  maven.jar.jaxb-impl = c:/Root/lib/jaxb/jaxb-impl.jar
>  maven.jar.jaxb-libs = c:/Root/lib/jaxb/jaxb-libs.jar
>  maven.jar.jaxb-xjc = c:/Root/lib/jaxb/jaxb-xjc.jar
> 
>  What am I missing? Please Help!
> 
>  Thanks
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org