Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27893
| From | Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Will Java compiled in windows work in Linux? |
| Organization | N/A |
| References | <d2e8d0cd-57cc-4467-99f9-c20523f08238@googlegroups.com> <lh1scl$vp0$1@dont-email.me> |
| Message-ID | <lvsiq3coqo.fsf@saunalahti.fi> (permalink) |
| Date | 2014-03-27 23:31 +0200 |
Eric Sosman <esosman@comcast-dot-net.invalid> writes: > On 3/27/2014 1:50 PM, D. Xenakis wrote: >> First question: If i want to compile from scratch on my machine using >> their source code unmodificated from here >> (http://www.traccar.org/source.jsp), would the new generated traccar.run >> file, have the same hash with "traccar-linux-64-2.7.zip (26-Jan-2014)" ? > Possibly not. If you compile with a different Java version > than they used, the class file format's version number might be > different. If you use different compiler options than they did, > the class files may contain different kinds and amounts of debugging > information. Even if the class files are identical, the archive's > hash code may be different if you used a different ZIP utility. I would say they almost certainly have different hash codes. The zip file format includes not only the contents of each file packed in the zip, but also the timestamps of each file, and they WILL be different when you re-compile the classes, even with an identical computer with identical operating system, jdk and all possible options. But because a hash code doesn't contain ALL the information of the file, there is a slight possibility that they might still happen to have the same hash code. -- Jukka Lahtinen
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Will Java compiled in windows work in Linux? "D. Xenakis" <sparkdevelopment.social@gmail.com> - 2014-03-27 10:50 -0700
Re: Will Java compiled in windows work in Linux? Marcel Müller <news.5.maazl@spamgourmet.org> - 2014-03-27 19:15 +0100
Re: Will Java compiled in windows work in Linux? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-03-27 14:58 -0400
Re: Will Java compiled in windows work in Linux? "D. Xenakis" <sparkdevelopment.social@gmail.com> - 2014-03-27 13:04 -0700
Re: Will Java compiled in windows work in Linux? Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-03-27 23:31 +0200
Re: Will Java compiled in windows work in Linux? Roedy Green <see_website@mindprod.com.invalid> - 2014-03-28 00:16 -0700
csiph-web