Re: java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDriver

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Mar 08 2006 - 09:01:22 EST

  • Next message: Andrus Adamchik: "Generated parser files"

    Also I suspect that even if you fix the win-path-ref issue, you'd
    still need a Windows specific version of Launch4J as there is some
    native code involved in building the .exe

    Andris

    On Mar 8, 2006, at 4:58 PM, Andrus Adamchik wrote:

    > Then everything looks right. And cayenne-ant/lib/linux/
    > launch4j-2.0.0/lib/xstream.jar is there. I just tried the latest
    > CVS build (on linux) and it worked. Strange...
    >
    > Andrus
    >
    >
    >
    > On Mar 8, 2006, at 4:39 PM, Mike Kienenberger wrote:
    >
    >> Hey Andrus.
    >>
    >>> cd cayenne/cayenne-ant/
    >>> ant release-win
    >>
    >> Yes, this is how I'm doing it (actually, I have a go.bat script in
    >> cayenne-ant to set the JDK to 1.5 first), but I'm still getting the
    >> missing win-path-ref and the
    >> com/thoughtworks/xstream/io/HierarchicalStreamDriver errors.
    >>
    >> I haven't tried to run any other build.xml file nor anything other
    >> than the standard tasks listed under ant projecthelp.
    >>
    >> -Mike
    >>
    >>
    >> On 3/8/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    >>> See my other message. You can do this:
    >>>
    >>> cd cayenne/cayenne-ant/
    >>> ant release-win
    >>>
    >>> To see all available targets in the master script do
    >>>
    >>> cd cayenne/cayenne-ant/
    >>> ant help
    >>>
    >>> Andrus
    >>>
    >>>
    >>>
    >>> On Mar 8, 2006, at 1:02 AM, Mike Kienenberger wrote:
    >>>
    >>>> Ok. I've added this condition task to win-distro.xml,
    >>>>
    >>>> <condition property="win-path-ref"
    >>>> value="classpath-win-onwindows">
    >>>> <os family="windows"/>
    >>>> </condition>
    >>>>
    >>>> and I've added
    >>>>
    >>>> <path id="classpath-win-onwindows">
    >>>> <fileset dir="lib/linux" includes="launch4j*/
    >>>> **.jar"/>
    >>>> </path>
    >>>>
    >>>> to the bottom of paths.xml
    >>>>
    >>>>
    >>>> Now I get this error.
    >>>> release-win:
    >>>>
    >>>> prepare:
    >>>> [mkdir] Created dir: E:\WORKSP~2\CAYENN~2\dist\win
    >>>>
    >>>> exe:
    >>>> [mkdir] Created dir: E:\WORKSP~2\CAYENN~2\build\win\classes
    >>>> [unjar] Expanding:
    >>>> E:\WORKSP~2\CAYENN~2\dist\cayenne-1.2-dev\lib\cayenne.jar into
    >>>> E:\WORKSP~2\CAYENN~2\build\win\classes
    >>>> [...]
    >>>> [unjar] Expanding:
    >>>> E:\WORKSP~2\CAYENN~2\dist\cayenne-1.2-dev\lib\modeler\scope-
    >>>> bin-1.0.1.jar
    >>>> into E:\WORKSP~2\CAYENN~2\build\win\classes
    >>>> [delete] Deleting directory E:\WORKSP~2\CAYENN~2\build\win
    >>>> \classes\META-INF
    >>>> [jar] Building jar: E:\WORKSP~2\CAYENN~2\build\win\cayenne-
    >>>> modeler-all.jar
    >>>>
    >>>> [copy] Copying 1 file to E:\WORKSP~2\CAYENN~2\build\win
    >>>>
    >>>> BUILD FAILED
    >>>> E:\WORKSP~2\CAYENN~2\build.xml:93: The following error occurred
    >>>> while
    >>>> executing this line:
    >>>> java.lang.NoClassDefFoundError:
    >>>> com/thoughtworks/xstream/io/HierarchicalStreamDriver
    >>>>
    >>>
    >>>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Mar 08 2006 - 09:01:26 EST