Skip to main content



      Home
Home » Newcomers » Newcomers » General question about Java/Eclipse projects
General question about Java/Eclipse projects [message #69961] Thu, 26 May 2005 15:48 Go to next message
Eclipse UserFriend
My background is C/C++ and other more "traditional" languages than Java.
I've recently inherited a fairly large J2EE project, and am trying to
get my head around it.

One thing that seems to keep biting us is the basic nature of Java - as
it doesn't compile until someone actually opens the page in which any
new code resides, we've had a few "gotchas" where new files don't get
checked in, syntax errors exist, or other bugs that in a compiled
language would be found at compile time - long before a user or tester
opens the screen where they're located.

These kinds of bugs are really getting frustrating. It seems like there
should be a better way of ensuring that required changes get rolled into
our test environment other than "OK, someone sit down and open up every
single screen where the code has changed and make sure it compiles
correctly."

I can't imagine that really large J2EE shops do it that way - so that's
my question. What processes do large shops put in place to ensure that
the right files get built into an .ear file (we use JBoss) from the
get-go, and that they compile correctly when they're run? Is there some
sort of way to tell Eclipse to go through a project and compile every
file? Or can it be done at the JBoss level?

Apologies if this isn't the right forum to be asking these questions -
as I said, this is all new to me, and I'm struggling to educate myself
in the ins and outs of large Java projects.
Re: General question about Java/Eclipse projects [message #70001 is a reply to message #69961] Thu, 26 May 2005 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

Barbra Letts uitte de volgende tekst op 26/05/2005 21:48:
> I can't imagine that really large J2EE shops do it that way - so that's
> my question. What processes do large shops put in place to ensure that
> the right files get built into an .ear file (we use JBoss) from the
> get-go, and that they compile correctly when they're run? Is there some
> sort of way to tell Eclipse to go through a project and compile every
> file?

I don't understand you problem. Every time I hit Ctrl - S, all files in
the current project get compiled and error messages show up. What did
you change so that this _doesn't_ happen?

H.


--
Hendrik Maryns

Interesting websites:
www.lieverleven.be (I cooperate)
www.eu04.com European Referendum Campaign
aouw.org The Art Of Urban Warfare
Re: General question about Java/Eclipse projects [message #70021 is a reply to message #70001] Thu, 26 May 2005 16:35 Go to previous messageGo to next message
Eclipse UserFriend
Ctrl-S does nothing in my environment (Eclipse 2.1.1). What *should* it
do, and is there a menu option that it corresponds to?

As to what changed... who knows? Like I said, I've just inherited this
project, and from everything I can tell the previous company mismanaged
it horribly. I'm in the unenviable position of trying to fix it all.

Hendrik Maryns wrote:
> Barbra Letts uitte de volgende tekst op 26/05/2005 21:48:
>
>> I can't imagine that really large J2EE shops do it that way - so
>> that's my question. What processes do large shops put in place to
>> ensure that the right files get built into an .ear file (we use JBoss)
>> from the get-go, and that they compile correctly when they're run? Is
>> there some sort of way to tell Eclipse to go through a project and
>> compile every file?
>
>
> I don't understand you problem. Every time I hit Ctrl - S, all files in
> the current project get compiled and error messages show up. What did
> you change so that this _doesn't_ happen?
>
> H.
>
>
Re: General question about Java/Eclipse projects [message #70100 is a reply to message #70021] Thu, 26 May 2005 18:34 Go to previous messageGo to next message
Eclipse UserFriend
When you say 'compiled correctly when they are run' ... are we talking
about JSP files deployed in the webapp or about java files in the IDE?
In the IDE you should be able to find a 'Build Automatically' setting in
the Project menu. Turning that on rebuilds everything everytime
something changes. If that slows things down to much there are other
items you can use to rebuild everything at once. In 2.1.1 there's a
Build All or Rebuild menu item. In 3.x there's a Clean item in the menu
that you can use to rebuild everything. Those things will help you
build all the java classes and jars. None of this helps with JSPs but I
believe the Web Tools Project has some components that will.

-
Steve


Barbra Letts wrote:
> Ctrl-S does nothing in my environment (Eclipse 2.1.1). What *should* it
> do, and is there a menu option that it corresponds to?
>
> As to what changed... who knows? Like I said, I've just inherited this
> project, and from everything I can tell the previous company mismanaged
> it horribly. I'm in the unenviable position of trying to fix it all.
>
> Hendrik Maryns wrote:
>
>> Barbra Letts uitte de volgende tekst op 26/05/2005 21:48:
>>
>>> I can't imagine that really large J2EE shops do it that way - so
>>> that's my question. What processes do large shops put in place to
>>> ensure that the right files get built into an .ear file (we use
>>> JBoss) from the get-go, and that they compile correctly when they're
>>> run? Is there some sort of way to tell Eclipse to go through a
>>> project and compile every file?
>>
>>
>>
>> I don't understand you problem. Every time I hit Ctrl - S, all files
>> in the current project get compiled and error messages show up. What
>> did you change so that this _doesn't_ happen?
>>
>> H.
>>
>>
Re: General question about Java/Eclipse projects [message #70849 is a reply to message #69961] Fri, 27 May 2005 14:25 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Barbra Letts wrote:
> My background is C/C++ and other more "traditional" languages than Java.
> I've recently inherited a fairly large J2EE project, and am trying to
> get my head around it.
>
> One thing that seems to keep biting us is the basic nature of Java - as
> it doesn't compile until someone actually opens the page in which any
> new code resides, we've had a few "gotchas" where new files don't get
> checked in, syntax errors exist, or other bugs that in a compiled
> language would be found at compile time - long before a user or tester
> opens the screen where they're located.
>
> These kinds of bugs are really getting frustrating. It seems like there
> should be a better way of ensuring that required changes get rolled into
> our test environment other than "OK, someone sit down and open up every
> single screen where the code has changed and make sure it compiles
> correctly."
>
> I can't imagine that really large J2EE shops do it that way - so that's
> my question. What processes do large shops put in place to ensure that
> the right files get built into an .ear file (we use JBoss) from the
> get-go, and that they compile correctly when they're run? Is there some
> sort of way to tell Eclipse to go through a project and compile every
> file? Or can it be done at the JBoss level?
>
> Apologies if this isn't the right forum to be asking these questions -
> as I said, this is all new to me, and I'm struggling to educate myself
> in the ins and outs of large Java projects.
>

OK, where to start...?

It appears that you are talking about JSP pages, not .java files. Is
that correct? Assuming it is...

First, Java *is* a compiled language. Second, if you have files that are
not getting checked in or not tested before they are checked in, well
you have bigger problems than those that have to do with Java or
Eclipse. If that is happening, you need to address with the team your
software development process and how developer-level testing should be done.

Now, JSP pages can be pre-compiled before deploying the application.
Unfortunately, the exact means of doing so varies with each J2EE server
(JBoss is different than WebLogic which is different than WebSphere,
etc). You can use Ant to do that pre-compilation, or you can use an
editor/IDE plugin that does syntax checking and/or compilation testing
as you edit/save the source files.

Here's the bottom line (that you probably don't want to hear): it sounds
as if you may be in over your head. I really enjoy helping people out,
including newbies, but this just feels like a problem too big to tackle
in a public forum. I strongly suspect you may need more direct attention
to get to the point where it all falls into place. My recommendation is
to find a good consultant or "expert" who has J2EE experience and bring
them on-board for at least a jump-start basis. Try to find someone whom
members of your team know personally or have worked with in the past,
since there are a lot of hacks out there and it is better to go with
recommendations than resumes.
J2EE is not a simple technology that can be picked up in a few days by
reading some books and articles. Like Eclipse, it is a powerful tool,
but one that takes some training and experience to properly understand
and leverage.

Perhaps I have mis-assessed your situation. If so, please post with more
specific questions/problems and I will be among those who try to help.

Eric
Previous Topic:Eclipse not compiling
Next Topic:Eclipse vs. MyEclipse
Goto Forum:
  


Current Time: Sat Jul 12 15:54:29 EDT 2025

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

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

Back to the top