Re: Install Error

I have run into strange build errors with ant, only when I use the one that came with Linux. The problem is that it isn't using the correct version of java. You can display your version with something like...

<echo message="Using Java Version ${java.version} For Compilation"/>

in your build script. When you install a new version of ant it should pick up JAVA_HOME, but when you use the one that came with the system you might see something like:

[echo] Using Java Version 3.5-tree-ssa For Compilation

If you ever see this version of Java, you can probably expect strange results.
That might explain things.


Nic



Kevin Manross wrote:


For what it is worth, I downloaded a newer version of ant from apache. I spent about 3 hours trying to get ant to work without giving me a

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

error.  Finally, I tried doing the following command:

java -jar <path_to_new_apache_and>/lib/ant-launcher.jar idvjar

And it worked!!!

Sorry for the wasted bandwidth, but thanks for the help!

-kevin.


Tom Whittaker wrote:

Given the location (end of line) of the error, is it possible that Kevin is building on a Linux/Unix system and that this file has a DOS-like ending?

tom

Kevin Manross wrote:


Although the error shows:


[javac] /mnt/home/kmanross/VisAD/idv/metapps/ucar/unidata/idv/ViewManager.java:5: error: unrecognized character in input stream. [javac] * Atmospheric Research, P.O. Box 3000, Boulder, CO 80307, [javac] ^

my first several lines from ViewManager.java are:

/*
 * $Id: ViewManager.java,v 1.167 2004/08/10 13:47:05 jeffmc Exp $
 *
* Copyright © 1997-2004 Unidata Program Center/University Corporation for
 * Atmospheric Research, P.O. Box 3000, Boulder, CO 80307,
 * support@xxxxxxxxxxxxxxxx.
 *
* This library is free software; you can redistribute it and/or modify it

So I am still unsure of what my issue is.

-kevin.



Jeff McWhirter wrote:

Kevin Manross wrote:


Hello,

I had to recompile my idv and came across the same errors that I reported back in May. Specifically, many lines similar to the following:

[javac] * Copyright 1997-2004 Unidata Program Center/University Corporation for





Hi Kevin,
It looks like somehow the source code in that file got corrupted. From the src jar on the ftp site we have:

harpo.unidata.ucar.edu: more ViewDescriptor.java
/*
* $Id: ViewDescriptor.java,v 1.10 2004/03/01 18:27:43 dmurray Exp $
*
* Copyright © 1997-2004 Unidata Program Center/University Corporation for

Why don't you try and download it and build again?

-Jeff










--

Nicolas Yaros
Assistant Software Engineer

MIT Lincoln Laboratory
244 Wood Street
Lexington, MA 02420-9185

Office: S1-618
Phone:  (781) 981-4837
Email:  nyaros@xxxxxxxxxx
  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvdevelopers archives: