Re: Teach yourself Java in 21 days



Nick wrote:

> c:\j21work\org\cadenhead\ecommerce>javac -classpath "" *.java
> Note: Storefront.java uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details..

That's because Sun introduced some extensions into the most recent version of
Java, and the compiler is trying to force you to use them. Leaving aside the
question of whether the extensions are a good thing or not, they are a
complication that you don't need at this stage, and especially not while you a
trying to follow a book which pre-dates them.

The easiest way of sorting the problem is just to ignore the messages ;-) but
if you prefer you can tell the compiler that you are writing in "old" Java:

javac - source 1.4 -classpath ....etc...

-- chris




.



Relevant Pages

  • Re: Cpp Considered Harmful
    ... >> programming language, the compiler, the IDE, the libraries, etc. ... source file, the implementation shall locate the declaration, (and ... to name one of the defining source files on the command line that initiates ... The counterpart to this in Java is accomplished using the following: ...
    (comp.lang.cpp)
  • Re: wie Array für statische Methoden
    ... > auf gar keinen Fall Java empfehlen;) ... Ich hab mal mit virtuellen Methoden auf einem Microkontroller experimentiert und bin zu dem Schluss gekommen: ... > Es ist ja gerade der Vorteil bei Java einen Compiler ... > Dinge zu optimieren, ...
    (de.comp.lang.java)
  • ANN.: CHICKEN 2.5 - Its life Jim, but not as we know it
    ... system and are now available as separate extensions ... Scheme programs, statically allocated Scheme data and the ... The compiler can be customized in various ways. ... stream-htpasswd stream-httplog stream-ldif ...
    (comp.lang.scheme)
  • Re: Linked Lists debugger question
    ... With C++/CLI extensions, you can use this RAD paradigma for building GUIs ... I don't think I will be doing any web based applications. ... It has both a very good IDE and a very good C++ compiler. ... it still the language of choice for develloping PC based applications? ...
    (microsoft.public.vc.language)
  • Re: What is the fastest method of parsing scheme?
    ... These issues can be eliminated by the use of custom memory allocators ... Any other ideas why Scheme would be faster than C++ and Java for heap ... For example, in my compiler, the procedure ) ...
    (comp.lang.scheme)