File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - Order and Export Tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - Order and Export Tab" Watch "Eclipse - Order and Export Tab" New topic
Author

Eclipse - Order and Export Tab

Perry Terrance
Ranch Hand

Joined: Oct 02, 2009
Posts: 60
I've been using Eclipse for a while now but one thing that has been bugging me is what the point of the Checkbox next to each entry on the Order List? Is it true that even in my supporting JAR libraries are not checked, the position on the list still matters when Eclipse does the compiling?

For example, I put my Spring2.5.6.jar (unchecked) on the bottom of the list vs the top of the list and even if it's unchecked, it's position on the list would matter?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
I think this discussion would sit better in our IDEs forum, so I shall move it . . .

I don’t think those things make any difference to compilation (unless you have two .jars with classes of the same fully-qualified name), but when you have thousands of classes, they do make things a lot easier to read.
Perry Terrance
Ranch Hand

Joined: Oct 02, 2009
Posts: 60
Campbell Ritchie wrote:I think this discussion would sit better in our IDEs forum, so I shall move it . . .

I don’t think those things make any difference to compilation (unless you have two .jars with classes of the same fully-qualified name), but when you have thousands of classes, they do make things a lot easier to read.


But what does selecting the item in the checkbox do - vs not having it checked in that Order and Export Tab. Does checking the checkbox do anything at all function-wise?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16158
    
  21

While ideally you define each class in one and only one place, a complex classpath setup may end up with potential conflicts, and Eclipse does complicate things by maintaining several extended classpaths for the benefit of the compiler, test/debug runtimes, and so forth. Thus, the "Order" aspect.

The checkboxes deal with the other aspect: "Export to dependent projects". If you don't check a checkbox, that particular resource won't be exported.

I don't do dependent projects that way. For one thing, I can anticipate a situation where a critical app cannot be properly built except on one particular developer's highly-customized Eclipse environment, which has been a serious issue for me on other IDEs in times past and is the reason I'm so dogmatic that all of my projects must be capable of being built on the command without any IDE or specialized environment setup at all. For that reason, I'm not in a position to explain the benefits and techniques of exporting projects, but for those who want (need?) it, there it is.


Customer surveys are for companies who didn't pay proper attention to begin with.
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

i explain best using examples

project B include project A and exports its (checks the box)

project C needs both A and B, but it only needs to add project B in the "projects" tab because of checking the box in "order and export"
 
Don't get me started about those stupid light bulbs.
 
subject: Eclipse - Order and Export Tab