maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Closed: (MAVEN-1524) Classpath problem?
Date Wed, 01 Dec 2004 19:47:11 GMT

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Wed, 1 Dec 2004 2:46 PM

if you run Maven with 1.4.2, then that is what is used to compile. Every time you run the
JVM, rt.jar is in the system classloader taking precedence over everything.

To compile using a different JVM than the one running maven, see

(maven.compile.executable=... and maven.compile.fork=true)

View the issue:

Here is an overview of the issue:
        Key: MAVEN-1524
    Summary: Classpath problem?
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: WON'T FIX

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Reporter: Doug Knesek

    Created: Wed, 1 Dec 2004 12:24 PM
    Updated: Wed, 1 Dec 2004 2:46 PM
Environment: Windows 2000

It appears that Maven is including a newer version of rt.jar on 
the classpath in front of the one that I referenced in my 

I have a class that implements PreparedStatement from the 
IBM Java(tm)2 SDK, Standard Edition, v 1.3.1. I include the rt.jar 
containing this class in my dependencies. I get the following 
error when I run "maven jar": 

...\ ...MyPreparedStatement is not 
abstract and does not override abstract method 
getParameterMetaData() in java.sql.PreparedStatement public 
class MyPreparedStatement implements 
java.sql.PreparedStatement { 

As far as I can tell, getParameterMetaData() is not defined until 
Java 1.4.2. I do have Java 1.4.2 installed on my machine (in 
fact, my JAVA_HOME=C:\j2sdk1.4.2_05). 

I'm guessing that maven is including the C:\j2sdk1.4.2_05 
\jre\lib\rt.jar in my classpath. 

1) Is this a bug?
2) Why is this happening? 
3) How do I fix it? 

Thank you. 

- Doug

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message