Re: Install Error


That's exactly it, Nic!!

I've been able to successfully build idv on my laptop (where I have root permission and can modify the /etc/ant.conf file) and it worked perfectly. It indeed was a problem with an older version of ant. Thanks all for the help!

-kevin.


Nic Yaros wrote:
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@xxxxxxxxxxxxxxxxx
 *
* 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











--
+------------------------------------------------------------+
Kevin L. Manross        [KD5MYD] <><          (405)-366-0557
CIMMS Research Associate               kevin.manross@xxxxxxxx
[NSSL-WRDD/SWATN]           http://www.cimms.ou.edu/~kmanross

"My opinions are my own and not representative of CIMMS, NSSL,
 NOAA or any affiliates"
+------------------------------------------------------------+