You are attempting to use a Java class that was compiled with JDK 1.5 in a runtime environment of JDK 1.4.
This is not going to work. Upgrade your JDK, or recompile the affected classes with JDK 1.4 if you can. (And really, this is a Google question, not a [EMAIL PROTECTED] question. There are hundreds of hits on this problem.) Wayne On 2/27/06, tanya Rust <[EMAIL PROTECTED]> wrote: > I am getting compilation error: > > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > Compiling 86 source files to C:\sample-mvn\sub\target\classes > [INFO] > ------------------------------------------------------------------------- > --- > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Compilation failure > > C:\sample-mvn\sub\src\main\java\com\convergys\in\km\portlet\AdvancedSearchPortle > t.java:[19,-1] cannot access org.apache.portals.bridges.struts.StrutsPortlet > bad class file: > my-app\com\ncso\portals-bridges-struts\0.2\portals-bridges-strut > s-0.2.jar(org/apache/portals/bridges/struts/StrutsPortlet.class) > class file has wrong version 49.0, should be 48.0 > > > Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote: > Hello, > > The installation of the jar file ncso.jar as the artifact > com.ncso:ncso:1.0looks fine. However, what I noticed is that Maven2 > tries to look for the > version 8.1. Could you have made a typo in your pom.xml? > > Kindly show us your pom.xml, it would really help resolve your problem. :) > > Cheers! > Nap > > On 2/27/06, tanya Rust wrote: > > > > C:\sample-mvn\sub>set sub-home=D: > > C:\sample-mvn\sub>set group-id=com.ncso > > C:\sample-mvn\sub>set version=1.0 > > C:\sample-mvn\sub>set packaging=jar > > C:\sample-mvn\sub>set path-to-file=%sub-home%/ncso/ncso.jar > > C:\sample-mvn\sub>set artifact-id=ncso > > C:\sample-mvn\sub>mvn install:install-file -Dfile=%path-to-file% > > -DgroupId=%group > > -id% -DartifactId=%artifact-id% -Dversion=%version% > > -Dpackaging=%packaging% > > > > till this step it is ok > > when i compile using mvn compile > > > > C:\sample-mvn\sub>mvn compile > > [INFO] Scanning for projects... > > [INFO] > > ------------------------------------------------------------------------- > > --- > > [INFO] Building Maven Quick Start Archetype > > [INFO] task-segment: [compile] > > [INFO] > > ------------------------------------------------------------------------- > > --- > > [INFO] [resources:resources] > > [INFO] Using default encoding to copy filtered resources. > > Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.pom > > [WARNING] Unable to get resource from repository central ( > > http://repo1.maven.org > > /maven2) > > Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.jar > > [WARNING] Unable to get resource from repository central ( > > http://repo1.maven.org > > /maven2) > > [INFO] > > ------------------------------------------------------------------------- > > --- > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------- > > --- > > [INFO] Failed to resolve artifact. > > > > > > > > Kevin Wang wrote: > > > > In Maven2, if plugin or dependency can not be found in ibiblio, for > > example, weblogic.jar, you can use below lines to install the jar into > > local repository: > > > > set wl-home=D:/bea91/weblogic91 > > set group-id=com.bea.mytest > > set version=9.1 > > set packaging=jar > > @rem #weblogic > > set path-to-file=%wl-home%/server/lib/weblogic.jar > > set artifact-id=weblogic > > > > mvn install:install-file -Dfile=%path-to-file% -DgroupId=%group-id% > > -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging% > > > > > > then you can use the jar as a dependency, as: > > > > com.bea.mytest > > weblogic > > 9.1 > > > > > > > > Thanks, > > ---------------------------------------------- > > Qiang Wang [Kevin] > > -----Original Message----- > > From: tanya Rust [mailto:[EMAIL PROTECTED] > > Sent: 2006年2月27日 14:43 > > To: [email protected] > > Subject: How to use external jar's while compiling > > > > Hi all, > > I am new to maven environment > > Can any one help me finding out solution for compiling my project as it > > requires an external jar for compilation .. > > > > > > Tanya > > > > > > --------------------------------- > > Yahoo! Mail > > Use Photomail to share photos without annoying attachments. > > > > _______________________________________________________________________ > > Notice: This email message, together with any attachments, may contain > > information of BEA Systems, Inc., its subsidiaries and affiliated > > entities, that may be confidential, proprietary, copyrighted and/or > > legally privileged, and is intended solely for the use of the individual > > or entity named in this message. If you are not the intended recipient, > > and have received this message in error, please immediately return this > > by email and then delete it. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------- > > Brings words and photos together (easily) with > > PhotoMail - it's free and works with Yahoo! Mail. > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >
