Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse debugging src.jar
Eclipse debugging src.jar [message #192462] Wed, 07 February 2007 09:33 Go to next message
Eclipse UserFriend
Originally posted by: onali1811.gmail.com

Hi,

I have JDK (i.e debug version of class files) installed on my system.

While debugging my application in Eclipse, I try to put debug breakpoints
inside some .class files (eg. JTable.class) in src.jar.
I am able to step over, in, out etc. within these class files but i cannot
see the values of the local variables.

While I add watch expressions, it gives <variable_name> not resolved.

Is there any way to get the values?

Thanks in advance,
Regards
on ali
Re: Eclipse debugging src.jar [message #192487 is a reply to message #192462] Wed, 07 February 2007 13:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

On Ali,

It sounds like the source was compiled without debug information.
There's probably not much you can do...


On Ali wrote:
> Hi,
>
> I have JDK (i.e debug version of class files) installed on my system.
>
> While debugging my application in Eclipse, I try to put debug
> breakpoints inside some .class files (eg. JTable.class) in src.jar. I
> am able to step over, in, out etc. within these class files but i
> cannot see the values of the local variables.
>
> While I add watch expressions, it gives <variable_name> not resolved.
>
> Is there any way to get the values?
>
> Thanks in advance,
> Regards
> on ali
>
Re: Eclipse debugging src.jar [message #192594 is a reply to message #192487] Wed, 07 February 2007 23:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Ed Merks wrote:
> On Ali,
>
> It sounds like the source was compiled without debug information.
> There's probably not much you can do...

That is correct - that is how Sun ships it. If you search the Java Bug
Parade you'll find at least one bug report that has been asking for a
debug-enabled build of the rt.jar for a very long time. Last time I
checked, Sun did not seem interested in satisfying this simple request
from the community.<shrug>

Eric


> On Ali wrote:
>> Hi,
>>
>> I have JDK (i.e debug version of class files) installed on my system.
>>
>> While debugging my application in Eclipse, I try to put debug
>> breakpoints inside some .class files (eg. JTable.class) in src.jar. I
>> am able to step over, in, out etc. within these class files but i
>> cannot see the values of the local variables.
>>
>> While I add watch expressions, it gives <variable_name> not resolved.
>>
>> Is there any way to get the values?
>>
>> Thanks in advance,
>> Regards
>> on ali
>>
Creating jar files in Eclipse [message #197073 is a reply to message #192594] Thu, 01 March 2007 01:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter.leadbetter.btinternet.com

I have tried using all the help facilities to create jar file in Eclipse.
Yes, I can "create" the jar file and manifest, but will they run; No. I
would very much appreciate some help or information on this.
Re: Creating jar files in Eclipse [message #197270 is a reply to message #197073] Thu, 01 March 2007 17:47 Go to previous messageGo to next message
Paul A. Rubin is currently offline Paul A. RubinFriend
Messages: 188
Registered: July 2009
Senior Member
peter antony wrote:
> I have tried using all the help facilities to create jar file in
> Eclipse. Yes, I can "create" the jar file and manifest, but will they
> run; No. I would very much appreciate some help or information on this.
>

Does the manifest contain a line identifying the main class?

What specifically happens when the jar doesn't run (what messages do you
get)?

/Paul
Re: Creating jar files in Eclipse [message #197956 is a reply to message #197270] Tue, 06 March 2007 02:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter.leadbetter.btinternet.com

Paul

The manifest file is in the project's root directory along with:

a bin directory(.class files in a package),
a lib directory(org.eclipse.swt.win32.win32.x86_3.2.2.v3236.jar),
a src directory(.java files in a package),
the swt-win32-3236.dll,
and the jar file (generated by Eclipse, and to this directory).

The manifest file identifies the main class and points to the
binDirectory/package.MainClass.

When the jar doesn't run, the message box generated entitled "JVM
Launcher" contains the message "Could not find the main class. Program
will exit".

I don't know what else to try and am beaten.

Would very much appreciate any help. If the above is not enough, just
tell me what else you need to know.

Will be in your debt.

regards

peter
Re: Creating jar files in Eclipse [message #198087 is a reply to message #197956] Tue, 06 March 2007 17:57 Go to previous message
Paul A. Rubin is currently offline Paul A. RubinFriend
Messages: 188
Registered: July 2009
Senior Member
peter antony wrote:
>
> The manifest file is in the project's root directory along with:
> a bin directory(.class files in a package),
> a lib directory(org.eclipse.swt.win32.win32.x86_3.2.2.v3236.jar),
> a src directory(.java files in a package),
> the swt-win32-3236.dll,
> and the jar file (generated by Eclipse, and to this directory).
>
> The manifest file identifies the main class and points to the
> binDirectory/package.MainClass.
>
> When the jar doesn't run, the message box generated entitled "JVM
> Launcher" contains the message "Could not find the main class. Program
> will exit".
>

Try opening the jar file in a Zip utility (WinZip, ZipCentral, ...) and
see what the path to MainClass.class is. Might be
"binDirectory/package.MainClass" doesn't match the way the jar is organized?

/Paul
Previous Topic:Report in WebViewer Does Not Work
Next Topic:Problem running ant ftp-task
Goto Forum:
  


Current Time: Sat Apr 20 04:27:19 GMT 2024

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

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

Back to the top