|Re: How to change the code in jar file [message #229689 is a reply to message #229553]
||Thu, 26 March 2009 14:36
| Larry Isaacs
Registered: July 2009
Xia Jun Shi wrote:|
> I checked out org.eclipse.wst.server.ui which includes
> org.eclipse.debug.ui_3.5.0.v200812050-1330.jar, and this jar file has
> the method
> eclipse.debug.internal.ui.launchConfigurations.LaunchConfigu rationTabGroupWrapper.setDefaults()
> I wanted to make some changes for this setDefaults() method. I am
> stucked over here. I am wondering whether it's possible to change the
> code which is located in a jar file or not. More information is on
Are these changes to org.eclipse.debug.ui for the purposes of
investigating the bug, or for implementing a fix? Note that changing
the jar itself is not necessary when working in a development environment.
If you are working with the Eclipse SDK, or have added the Eclipse
Platform source to your Eclipse, you can use File -> Import -> Plug-in
Development -> Plug-ins and Fragments. On the first wizard page, select
"Projects with source folders" under "Import As" and click Next. On the
next page, select "org.eclipse.debug.ui" (not
org.eclipse.debug.ui.source) in the list and click "Add -->" and then
Finish. This will give you a project suitable for investigating the
problem. It can't be diff'd against CVS, so it's not suitable for
|Re: Thanks specially for Larry [message #229737 is a reply to message #229729]
||Thu, 26 March 2009 19:19
| Larry Isaacs
Registered: July 2009
Xia Jun Shi wrote:|
> Hi Larry,
> Yes, I am taking a try to investigate the bug 137822 which is related
> with the web server, that's why I posted the question over here. Thanks
> for your nice, encouraging and helpful reply. I hope I can master enough
> technology as you to support someone else in this community in the future.
Since it's for investigation getting the source from the SDK is the
simplest way to ensure you have source that corresponds to the version
of Eclipse and/or WTP you are using. However, if this is for inserting
exceptions to capture stack traces, you may find it easier to capture
stack traces by running the plug-in in debug mode and using breakpoints.
Place your breakpoint where you want to view the stack, then start the
plug-in in Debug mode. Once the breakpoint is hit, examine the Debug
view and find the thread that is suspended on the breakpoint. Right
click on that thread and select "Copy Stack". You can then paste this
text where you wish. It will contain the same "stack" as you would get
from an Event Details image with an exception inserted, assuming such an
exception gets logged.
|Re: How to change the code in jar file [message #229822 is a reply to message #229784]
||Mon, 30 March 2009 14:41
Originally posted by: eclipse-news.rizzoweb.com|
On 3/27/2009 6:10 PM, Tahereh wrote:
> WHAT?!?!?!?! How can you talk to someone like this? Your answer is
> degrading the question and the attempt being made and is also insulting.
> Honestly, this is a very very basic rule in communication and am socked
> that you don�t know about this.
> People don�t care how much you know about jar files, they do care how
> much you know the basic rules in life and communication. If you
> understand the meaning of respect you will understand how to answer
> questions and be a more valuable contributor to the community.
My contributions to this community stand on their own, as does my
reputation within the community. I dare say that someone new to the
community does not have much perspective on which to judge someone who
has been active for many years.
It's a shame that you misinterpreted one particular message and have
turned that into a personal attack; that is certainly not in the spirit
of this community.
By the way, if you look at the context of this thread, it is obvious
that knowledge of how to modify code in a JAR is exactly the center of
the discussion. The person who asked the original question asked:
"I am wondering whether it's possible to change the code which is
located in a jar file or not."
I stand by my assertion that this is NOT a question about Web Tools or
even Eclipse; it is a basic Java question. Yes, we can answer such
questions on these newsgroups, but we often choose not too because there
are too many Eclipse-specific issues to discuss and too little time
(time that many of us VOLUNTEER, don't get paid for, to help others). So
basic Java questions are usually pointed out so that the asker does not
wonder why he received no answer.
> We have *paid* to be able to take this course and LEARN things.
I think it is very wise that people pay to be trained and learn from
professionals, but that has absolutely no relevance here. Whatever
company is providing the course to you is obligated to provide service
to you. These newsgroups have no such affiliation and are helpful only
because of the many people who give their time.
> Just so that you know, this IS the place suggested by IBM committers and our course instructor to post any questions we have related to the work we are doing on Eclipse WTP.
The committers and instructors are correct; these newsgroups are an
excellent resource for getting help on Eclipse topics. They are even
sometimes useful for learning something general about Java or
programming in general, but that is not their primary purpose. I already
explained why such general questions are often ignored or not discussed
very much. In this particular case, the time it would take to explain to
someone how to extract, modify, and re-build code in a JAR is far too
much for me to spend in this particular forum; consider how many
unanswered questions there are every day that are Eclipse-specific and
you might understand why most of us focus on those rather than on people
asking basic/general questions about Java.
Again, I find it sad that a single message was misinterpreted and taken
to such an extreme; I find it tragic that I have had to take the time to
respond (time that I could have spent helping someone). But I have done
so because I am dedicated to this community and want to make sure
everyone, newcomer and old-timer alike, understands what goes on here
and how to contribute themselves. One of the things that is often
pointed out about these newsgroups is that people who are new and are
still only beginning to contribute (rather than just ask) should be
careful about the stones they throw. I wasn't the first person around
here to say that, but I feel it is worth repeating.
Anyway, I would gladly put my reputation (and the list of people I've
helped) up for judgment at any time. Heck, Google and eclipse.org hide
nothing! Just as my life will be judged by a greater authority when I
die, so are my contributions to this community judged by a greater
authority than you (thank goodness, because clearly in your mind one
single message, open to interpretation, is enough for a damning sentence).
Powered by FUDForum
. Page generated in 0.03053 seconds