Question: .jar file, frameworks, and WOProject

From: Stephen Tavener (stephen.tavene..bc.co.uk)
Date: Thu Dec 18 2003 - 07:42:33 EST

  • Next message: Stephen Tavener: "RE: Question: .jar file, frameworks, and WOProject"

    I have a framework containing a .jar file in a lib\ directory and some
    java code which references the .jar file.

    Within Eclipse (using WOLips 1.0.7.40), the framework builds OK, but if
    I try to build from the command line, I get errors; looks like the java
    code can't find my .jar file :(

    Any advice gratefully received. Is this a timing issue, a problem with
    my classpaths, or what?

    init:

    java.build:
         [echo] javac ../../cps2dtext/santa/frameworks/FontMetrics
       [delete] Deleting directory
    D:\WorkArea\cps\cps2dtext\santa\frameworks\FontMetrics\bin
        [mkdir] Created dir:
    D:\WorkArea\cps\cps2dtext\santa\frameworks\FontMetrics\bin
        [javac] Compiling 2 source files to
    D:\WorkArea\cps\cps2dtext\santa\frameworks\FontMetrics\bin
        [javac]
    D:\WorkArea\cps\cps2dtext\santa\frameworks\FontMetrics\src\com\bbc\newsi
    nteractive\cps\publishchain\cps2dtext\fontmetrics\FontMetrics.java:9:
    package bbci.itv.font does not exist
        [javac] import bbci.itv.font.*;
        [javac] ^
    ***2 follow-on errors omitted***
        [javac] ^
        [javac] 3 errors
        [javac] Compile failed; see the compiler error output for details.

    The classpath file looks a little like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" path="src"/>
        <classpathentry exported="true" kind="lib"
    path="lib/itvfonts-0.1.jar"/>
        <classpathentry exported="true" kind="src"
    path="/CPS2DTextEnterpriseObjects"/>
        <classpathentry exported="true" kind="src"
    path="/CPS2DTextXMLUtilities"/>
        <classpathentry kind="con"
    path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="output" path="bin"/>
    </classpath>

    --
    Stephen Tavener
    DigiText Programmer, BBC News, New Media.
    

    Room 7095 xtn (020 857)69372 Television Centre, Wood Lane, London. W12 7RJ mailto:Stephen.Tavene..bc.co.uk (Work) mailto:Stephe..cat.demon.co.uk (Home) http://www.scat.demon.co.uk/ (Games) http://www.scat.demon.co.uk/Clementine/ (Baby pictures)

    BBCi at http://www.bbc.co.uk/

    This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.



    This archive was generated by hypermail 2.0.0 : Thu Dec 18 2003 - 07:42:38 EST