maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@codehaus.org
Subject [jira] Created: (MAVEN-1524) Classpath problem?
Date Wed, 01 Dec 2004 17:25:11 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1524

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

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Assignee: 
   Reporter: Doug Knesek

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

Description:
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 
dependencies. 

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.java:25: ...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



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message