Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14848

Re: How are multiple Java files compiled together?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: How are multiple Java files compiled together?
Date 2012-05-27 19:34 -0700
Organization Canadian Mind Products
Message-ID <rso5s71koad7qf0m8i37t975h9b9vc6aie@4ax.com> (permalink)
References <90a3f6ec-dfd4-472b-866d-98eaa92364d5@googlegroups.com> <ush5s7losci9deken8k09qpbia9nqku6s5@4ax.com>

Show all headers | View raw


On Sun, 27 May 2012 17:35:05 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>3. It can compare the dates on the class file and corresponding *.java
>file.  If the *.java file is newer it knows to recompile.
>see http://mindprod.com/jgloss/javac.html

This gives me trouble all the time.  Javac can recompile code with
target 1.7 that was intended to be compiled with 1.6 if it gets
recompiled as a side effect of compilng something with 1.7.

I wrote a utility http://mindprod.com/products1.html#JARCHECK to make
sure everything is the version it is supposed to be.  If it is out of
whack, I manually clean compile it.  If it is really screwed up, I do
a clean rebuild of everything.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
I would be quite surprised if the NSA (National Security Agency)
did not have a computer program to scan bits of shredded
documents and electronically put them back together like a giant
jigsaw puzzle. This suggests you cannot just shred, you must also burn.
.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How are multiple Java files compiled together? Jason Kim <iamjsonkim@gmail.com> - 2012-05-27 15:48 -0700
  Re: How are multiple Java files compiled together? Knute Johnson <nospam@knutejohnson.com> - 2012-05-27 16:34 -0700
    Re: How are multiple Java files compiled together? Jason Kim <iamjsonkim@gmail.com> - 2012-05-27 16:47 -0700
      Re: How are multiple Java files compiled together? Lew <noone@lewscanon.com> - 2012-05-27 20:18 -0700
        Re: How are multiple Java files compiled together? Knute Johnson <nospam@knutejohnson.com> - 2012-05-27 21:08 -0700
          Re: How are multiple Java files compiled together? Gene Wirchenko <genew@ocis.net> - 2012-05-28 09:32 -0700
            Re: How are multiple Java files compiled together? Lew <noone@lewscanon.com> - 2012-05-28 22:35 -0700
              Re: How are multiple Java files compiled together? Gene Wirchenko <genew@ocis.net> - 2012-05-29 09:20 -0700
  Re: How are multiple Java files compiled together? Roedy Green <see_website@mindprod.com.invalid> - 2012-05-27 17:35 -0700
    Re: How are multiple Java files compiled together? Roedy Green <see_website@mindprod.com.invalid> - 2012-05-27 19:34 -0700
    Re: How are multiple Java files compiled together? Roedy Green <see_website@mindprod.com.invalid> - 2012-05-28 04:00 -0700
      Re: How are multiple Java files compiled together? Lew <noone@lewscanon.com> - 2012-05-28 22:56 -0700

csiph-web