Re: Target VM Microsoft? or Java Lint to check for MS VM compatibility?

From: Chris Smith (cdsmith_at_twu.net)
Date: 12/20/03

  • Next message: Josh D.King: "Re: Flipping Y axis in a Graphics 2D??"
    Date: Sat, 20 Dec 2003 11:44:46 -0700
    
    

    Vincent Cate wrote:
    > Chris Smith <cdsmith@twu.net> wrote in message news:<MPG.1a4cc749902e95f298984c@news.pop4.net>...
    > > The Java API version 1.1 also doesn't have Vector.add() The
    > > java.util.List-based names for Vector functions were only added with the
    > > advent of the Collections API in 1.2. I'm guessing, then, that you only
    > > think you are doing that, and that you aren't really doing it at all.
    >
    > I just installed j2sdk1.4.2_03 from Sun on a Linux machine and even
    > here when I compile with "-target 1.1", I can have Vector.add()
    > and it compiles fine (as does under JBuilder).

    The "-target" flag doesn't do what you think it does. What you actually
    need to do is download a 1.1 version of Java, and compile with that.
    There was another thread recently that got into what those flags really
    do; if you're interested, have Google look for "-target" and "-source"
    in recent threads (last couple weeks at most) from comp.lang.java.*.

    -- 
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.
    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
    

  • Next message: Josh D.King: "Re: Flipping Y axis in a Graphics 2D??"

    Relevant Pages