Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Compiler options
Compiler options [message #106065] Thu, 16 October 2003 07:21 Go to next message
Eclipse UserFriend
Originally posted by: yonatan.nlayers.com

Is there a possibility to see the command line arguments passed to the
Java compiler in Eclipse (like in JBuilder or IntelliJ)?

This is a critical problem to me as compiling from Eclipse and from ant
via the command line causes classes serial version problems.

I tried setting all compile flags and options to be identical by I'm
missing something. If I could see how Eclipse compiles the class files,
I may remedy this problem.
Re: Compiler options [message #106078 is a reply to message #106065] Thu, 16 October 2003 07:25 Go to previous messageGo to next message
Eclipse UserFriend
You can see the compiler options used to compile your .java files in
Window->Preferences->Java->Compiler.
Note these can also be set on a per-project basis: Project->Properties->Java
Compiler.

Jerome

"Yonatan Taub" <yonatan@nlayers.com> wrote in message
news:bmluv5$bol$1@eclipse.org...
> Is there a possibility to see the command line arguments passed to the
> Java compiler in Eclipse (like in JBuilder or IntelliJ)?
>
> This is a critical problem to me as compiling from Eclipse and from ant
> via the command line causes classes serial version problems.
>
> I tried setting all compile flags and options to be identical by I'm
> missing something. If I could see how Eclipse compiles the class files,
> I may remedy this problem.
>
Re: Compiler options [message #106216 is a reply to message #106065] Thu, 16 October 2003 09:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"Yonatan Taub" <yonatan@nlayers.com> schrieb im Newsbeitrag
news:bmluv5$bol$1@eclipse.org...
> Is there a possibility to see the command line arguments passed to the
> Java compiler in Eclipse (like in JBuilder or IntelliJ)?

There is no such thing as a command line in this case because the compiler
is part of eclipse.

> This is a critical problem to me as compiling from Eclipse and from ant
> via the command line causes classes serial version problems.

That's the usual phenomenon when using different compilers. AFAIK there
are some issues in the language spec that make serial version generation
underspecified, i.e., different compilers may generate different version
ids for the same souce.

The great law of serialization: You must not mix classes compiled by
different compilers!

This is especially true if you use applets in conjuction with
serialization and compilation of server and client with different
compilers.

> I tried setting all compile flags and options to be identical by I'm
> missing something. If I could see how Eclipse compiles the class files,
> I may remedy this problem.

see above.

Cheers

robert
Re: Compiler options [message #106652 is a reply to message #106216] Thu, 16 October 2003 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Thu, 16 Oct 2003 15:35:25 +0200, "Robert Klemme" <bob.news@gmx.net>
a écrit :
>The great law of serialization: You must not mix classes compiled by
>different compilers!
Different compilers also means different versions of the same compiler
(javac 1.3 compare to javac 1.4 for example.

However the Eclipse compiler could be used in batch mode.

About serialization, there is no portable solutions between compilers
than setting the SerialUID inside each class for which you want to
serialize instances.
--
Olivier
Re: Compiler options [message #107449 is a reply to message #106652] Sat, 18 October 2003 10:32 Go to previous message
Eclipse UserFriend
Originally posted by: derisor.arcor.de

Setting SerialUID is that best option at any rate.

-- Robert


"Olivier Thomann" <olivier_thomann@ca.ibm.comNOSPAM> wrote in message
news:nuqtovgu3fqk8o3foio879a9j0hp082h0n@4ax.com...
> Le Thu, 16 Oct 2003 15:35:25 +0200, "Robert Klemme" <bob.news@gmx.net>
> a
Previous Topic:Free UML plugin
Next Topic:binary build available for org.eclipse.jdt.ui.examples.javafamily?
Goto Forum:
  


Current Time: Sat May 10 15:16:50 EDT 2025

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

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

Back to the top