MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Off Topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
huffcm
Post subject: [Closed] JDK classes, source not found  PostPosted: May 30, 2007 - 03:31 PM



Joined: May 30, 2007
Posts: 2

IDE - MyEclipse Enterprise Workbench Version: 5.1.0 GA Build id: 20061111-5.1.0-GA

JAVA path: C:\Program Files\java

System Variables - Path: %JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;\pucdocsserver\DOCSOpen;C:\Program Files\Microsoft SQL Server\Tools\BINN;c:\Program Files\Microsoft SQL Server\Tools\binn\;C:\Program Files\Microsoft SQL Server\Tools\Binn\;C:\Program Files\Microsoft SQL Server\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\FileNet\Content Engine;C:\Program Files\java\jdk1.5.0_09\bin

Code snippet:


import java.awt.*;
import java.awt.event.*;

/**
* -----------------------------------------------------------------------------
* This class provides an example of a simple AWT frame that contains an
* example toolbar implementation made up of several AWT button objects.
* This example will contain three buttons typically found in toolbar -
* Copy, Cut, and Paste.
*
* @version 1.0
* @author Jeffrey M. Hunter (jhunter@idevelopment.info)
* @author http://www.idevelopment.info
* -----------------------------------------------------------------------------
*/

public class AWTExample extends Frame {

// Object fields
private Button copyButton;
private Button cutButton;
private Button pasteButton;
private Button exitButton;


/**
* Public no-arg constructor
*/
public AWTExample() {

super("Simple AWT Example");
setSize(450, 250);

addWindowListener(
new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
);

Situation: Source not found
Description: The source attachment does not contain the source for the file WindowAdapter.class.

Java Build Path is pointing to the correct path.

Question: Is this an issue or something I can ignore? I have reviewed the help docs and attempted all of the resolutions contained there.

Thanks,

Chuck
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: MyEclipse - Source not found  PostPosted: Jun 01, 2007 - 05:40 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Chuck,
You can ignore it if it's not a show stopper for you. The warning messages is just showing you that you don't have source attached for the WindowAdapter class, which is from Swing. Which means you need to attach the JDK source to your JRE if you want to debug into the JDK classes.

If you decide to do that, you can go to Window > Prefs > Java > Installed JREs, and select the JRE you are using for your project and hit edit, then attach source to rt.jar.

And easier trick, is to instead click Add, and select a JDK install dir (not JRE) and MyEclispe will auto-attach the src.zip to the JAR files if it's available which is handy. Then change your project to use that "JRE" (it's actually a JDK) in it's build path.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
huffcm
Post subject: Source not found  PostPosted: Jun 01, 2007 - 06:41 PM



Joined: May 30, 2007
Posts: 2

Riyad,

Thank you for the information. Not a show stopper, just an annoyance :) It's just nice to have all your i's dotted and t's crossed when it comes to developing.

Chuck
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Source not found  PostPosted: Jun 01, 2007 - 06:45 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

I definitely understand that.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits