Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » command line compiling versus GUI
command line compiling versus GUI [message #25193] Thu, 15 May 2003 19:52 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Import JBuilder 5/6 to Eclipse
Next Topic:ant unable to find modern editor
Goto Forum:
  


Current Time: Fri Nov 08 22:25:08 GMT 2024

Powered by FUDForum. Page generated in 0.02861 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top