command line compiling versus GUI [message #25193] |
Thu, 15 May 2003 19:52 |
Eclipse User |
|
|
|
Originally posted by: jschneider.onemindconnect.com
Hello,
I have the following version of Eclipse:
Version: 2.1.0
Build id: 200303272130
I was wondering if anyone knows why when I compile the same java source
files from the command line versus compiling them through the GUI,
produces .class files of different sizes? Why would they be different?
From the command line:
java -classpath
" %CLASSPATH%;C:\eclipse\plugins\org.eclipse.jdt.core_2.1.0\jd tcore.jar "
org.eclipse.jdt.internal.compiler.batch.Main -d
"C:\eclipse\workspace\qexjava\classes" .\foo\*.java .\foo\bar\*.java
I then cd to the classes and jar it up:
jar cvf c:\foo.jar *
Through the GUI's Java package explorer, for the source files, the steps I
take are (I believe all the settings are default):
Export | Jar file | Export Generated class files and resources is checked
as well as Compress contents...| Generate a manifest file and seal some
packages are checked...
Thank you in advance for any ideas or explanations,
Jay
|
|
|
Re: command line compiling versus GUI [message #25234 is a reply to message #25193] |
Thu, 15 May 2003 19:57 |
Eclipse User |
|
|
|
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM
On Thu, 15 May 2003 19:52:20 +0000 (UTC),
jschneider@onemindconnect.com (Jay) wrote:
>java -classpath
>" %CLASSPATH%;C:\eclipse\plugins\org.eclipse.jdt.core_2.1.0\jd tcore.jar "
>org.eclipse.jdt.internal.compiler.batch.Main -d
>"C:\eclipse\workspace\qexjava\classes" .\foo\*.java .\foo\bar\*.java
Your command line doesn't specify any option. Use the same options if
you want to get the same size. With debug attributes or preserving all
locals options on or off can change the size of generated .class
files.
--
Olivier
|
|
|
Re: command line compiling versus GUI (resolved) [message #25356 is a reply to message #25234] |
Fri, 16 May 2003 00:20 |
Eclipse User |
|
|
|
Originally posted by: jschneider.onemindconnect.com
Thanks Oliver,
Yes that was my problem.
Jay
Olivier Thomann wrote:
> On Thu, 15 May 2003 19:52:20 +0000 (UTC),
> jschneider@onemindconnect.com (Jay) wrote:
> >java -classpath
> >" %CLASSPATH%;C:\eclipse\plugins\org.eclipse.jdt.core_2.1.0\jd tcore.jar "
> >org.eclipse.jdt.internal.compiler.batch.Main -d
> >"C:\eclipse\workspace\qexjava\classes" .\foo\*.java .\foo\bar\*.java
> Your command line doesn't specify any option. Use the same options if
> you want to get the same size. With debug attributes or preserving all
> locals options on or off can change the size of generated .class
> files.
> --
> Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.02861 seconds