Re: Install Error

  • Subject: Re: Install Error
  • From: "Kevin Manross" <kevin.manross@xxxxxxxx>
  • Date: Tue, 12 Jul 2005 08:47:59 -0500


Tom Whittaker wrote:

Although I did a compile using Java 1.5.0_03 on Windows prior to the last release, the visad.jar file contains .class files compiled with 1.4.2 (using the "-target 1.2" option). Having said that, perhaps you should remove the "-target 1.2" from the Makefile, since the 1.5 javac obviously is unhappy with it.


Hi Tom,

I'm attempting to build this on a linux machine (RedHat WS3).  When I
build VisAD with anything <= java 1.4.2 it builds fine.  If I remove the
"-target 1.2" from the JFLAGS line in the Makefile, I get the following
(repeated):


DisplayImpl.java:2222: as of release 1.5, 'enum' is a keyword, and may
not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
    Enumeration enum = ControlVector.elements();
                ^

and none of the .class files are built.


Additionally, I get the follwing error:

Irregular2DSet.java:30: warning: unmappable character for encoding UTF8
 * <P>{@link IrregularSet} for a finite number of samples of R�.</P>
                                                             ^

> Also, I don't understand the reference to the "OldHomeDir" in the
> diagnositic...??


We use an LDAP system here, so my local hard drive is actually mounted off my LDAP space. "OldHomeDir" is a soft link

/home/kmanross/OldHomeDir/VisAD is actually /mnt/home/kmanross/VisAD/

I'm not sure why the rmic is using the soft link when everything else is using the absolute path.




Heiko Klein wrote:

I managed to compile visad with jdk 1.5.0_03 by using the following JFLAGS:

JFLAGS = -source 1.2

(you might add -target 1.2, too, if you like)


Thanks, Dr. Klein!!


If I do use the "source" flag instead of the "target" flag, it does compile, however I get a bunch of warnings about using "enum" as an identifier:


javac -J-mx256m -source 1.2 -g *.java
DisplayImpl.java:2222: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
    Enumeration enum = ControlVector.elements();
                ^

(FWIW, it also successfully compiles with "-source 1.4", but with the same warnings)


And I still get many warnings like this:

Irregular2DSet.java:30: warning: unmappable character for encoding UTF8
 * <P>{@link IrregularSet} for a finite number of samples of R�.</P>
                                                              ^


I hope this is useful to others. Please let me know if I can provide and more info. Thanks again for the help!!

-kevin.



--
+------------------------------------------------------------+
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"
+------------------------------------------------------------+


  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: