Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23654 > unrolled thread
| Started by | clusardi2k@aol.com |
|---|---|
| First post | 2013-04-26 06:41 -0700 |
| Last post | 2013-04-26 16:37 -0400 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
Considering File Content: Will the NetBeans IDE (deployed version) produce files identical to the javac compiler files clusardi2k@aol.com - 2013-04-26 06:41 -0700
Re: Considering File Content: Will the NetBeans IDE (deployed version) produce files identical to the javac compiler files markspace <markspace@nospam.nospam> - 2013-04-26 08:56 -0700
Re: Considering File Content: Will the NetBeans IDE (deployed version) produce files identical to the javac compiler files Jeff Higgins <jeff@invalid.invalid> - 2013-04-26 14:08 -0400
Re: Considering File Content: Will the NetBeans IDE (deployed version) produce files identical to the javac compiler files Lew <lewbloch@gmail.com> - 2013-04-26 13:11 -0700
Re: Considering File Content: Will the NetBeans IDE (deployed version) produce files identical to the javac compiler files Arne Vajhøj <arne@vajhoej.dk> - 2013-04-26 16:37 -0400
| From | clusardi2k@aol.com |
|---|---|
| Date | 2013-04-26 06:41 -0700 |
| Subject | Considering File Content: Will the NetBeans IDE (deployed version) produce files identical to the javac compiler files |
| Message-ID | <23e31e94-4892-4609-b85a-8d4cb3e2a583@googlegroups.com> |
(1) If I use the NetBeans IDE (6.8 version) and create a deployed version of a fairly large project will it be exactly the same as using the standard "javac" compiler deployed application on the command line. Will the files produced by both tools be exactly the same. Can you, please, tell me the differences that will occur. (2) Can you also give me a comparision of the Eclipse files produced on deployment versus the "javac" files produced. Will the two deployed projects be exactly the same. Thanks for the detailed intuitive information,
[toc] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-04-26 08:56 -0700 |
| Message-ID | <kle7tb$not$1@dont-email.me> |
| In reply to | #23654 |
On 4/26/2013 6:41 AM, clusardi2k@aol.com wrote: > (1) If I use the NetBeans IDE (6.8 version) and create a deployed > version of a fairly large project will it be exactly the same as > using the standard "javac" compiler deployed application on the > command line. > > Will the files produced by both tools be exactly the same. Can you, > please, tell me the differences that will occur. Depends. I'm pretty sure the .class files will be exactly the same. However, since a .jar file is just a zip file, the order of those .class files in the .jar won't be the same (possibly) and the .jar file won't byte-for-byte compare as equals. There might be other differences. NetBeans might decide to build a manifest file for you. Depending on your usage of the command line tools, you might not have a manifest at all. Etc. Since most folks (all?) don't care about "exact" differences, only that the execution is the same, or at least as expected, I doubt even the tool vendors could answer this question completely.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-04-26 14:08 -0400 |
| Message-ID | <klefk4$5o2$1@dont-email.me> |
| In reply to | #23654 |
On 04/26/2013 09:41 AM, clusardi2k@aol.com wrote: > (1) If I use the NetBeans IDE (6.8 version) and create a deployed version of a fairly large project will it be exactly the same as using the standard "javac" compiler deployed application on the command line. WTF does ""javac" compiler deployed application" mean? > Will the files produced by both tools be exactly the same. Can you, please, tell me the differences that will occur. > > (2) Can you also give me a comparision of the Eclipse files produced on deployment versus the "javac" files produced. Will the two deployed projects be exactly the same. > > > Thanks for the detailed intuitive information,
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-04-26 13:11 -0700 |
| Message-ID | <4c71862c-462f-481a-9e05-cc4c7dccaf95@googlegroups.com> |
| In reply to | #23654 |
clusa...@aol.com wrote: > (1) If I use the NetBeans IDE (6.8 version) and create a deployed version of a fairly large project > will it be exactly the same as using the standard "javac" compiler deployed application on the > command line. Since NetBeans *uses* the javac compiler of whatever version of Java you have (which one do you have?), or whichever one you configure for the project, the answer is obvious. > Will the files produced by both tools be exactly the same. You mean "javac" run by NB vs. the same exact executable run on the command line? > Can you, please, tell me the differences that will occur. Assuming the same executable is invoked each time you invoke "javac", what will the difference be between javac com/foo/bar/Something.java and javac com/foo/bar/Something.java ? > (2) Can you also give me a comparision of the Eclipse files produced on deployment What exactly do you mean by "the Eclipse files produced on deployment"? Compilation is not deployment, you know. > versus the "javac" files produced. Will the two deployed projects be exactly the same. "javac" does not deploy projects. Whether you get the same project "exactly" between any two deployments depends on what has changed between the deployments. Did you recompile? Add or remove modules or resources? Change Java versions? If you don't change any of the inputs, the output will not change. > Thanks for the detailed intuitive information, Sorry, "intuitive information"? What do you mean by that? I prefer to offer factual information. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-04-26 16:37 -0400 |
| Message-ID | <517ae581$0$32110$14726298@news.sunsite.dk> |
| In reply to | #23654 |
On 4/26/2013 9:41 AM, clusardi2k@aol.com wrote: > (1) If I use the NetBeans IDE (6.8 version) and create a deployed version of a fairly large project will it be exactly the same as using the standard "javac" compiler deployed application on the command line. > > Will the files produced by both tools be exactly the same. Can you, please, tell me the differences that will occur. > > (2) Can you also give me a comparision of the Eclipse files produced on deployment versus the "javac" files produced. Will the two deployed projects be exactly the same. NetBeans use the same Java compiler as you do command line, so the generated byte code will be the same assuming you use the same compiler options (and note that it is quite common to build with some options for development and with other options for real build). If you package in jar files there will always be differences in files as jar files contain timestamps. Eclipse comes with its own Java compiler and it could generate different code. Best practice is to develop the code in the IDE and create official build with tools like ant/maven based on VCS. So it is not something there is much focus on. Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web