0

everybody .I have been working on this issue for hours .The problem is that I cant debug my Database class.Once the break point hit this line

final Database db=new Database(this);

I am trying to step into my Database class But eclips says “Source not found” and shows a buton named “Changed attach source” .So I have searched an explanaition on internet .I have found one here

to be able to fix this error.I have to find the where JDK is but I couldnt under this location.Just JRE folder is available There is no JDK

  • C:\Program Files\Java
Community
  • 1
  • 1

3 Answers3

2

If you don't have JDK you should probably install it. Find it here

JDK/Java SDK = Java Development Kit/Java Software Development Kit - what you need to write programs that require Java or use libraries written in Java. For example, if you were to write your own word-processing tool in Java.

JRE = Java Runtime Environment - what you need to run programs/software that require Java or use libraries written in Java. For example, OpenOffice requires the Java Runtime Environment

JRE allows you to run Java, whereas JDK allows you to program with it.

Jordan.J.D
  • 7,999
  • 11
  • 48
  • 78
0

You need to install JDK from here http://www.oracle.com/technetwork/java/javase/downloads/index.html. what you are having is JRE, but you dont have jdk. remove existing JRE and install JDK from the site.

Raju Sharma
  • 2,496
  • 3
  • 23
  • 41
-2

What is the Fully qualified name for Database class ? You need to install JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Then from JDK folder u will find file called src.zip which is include all the source code of the standard class's . But i believe this will not show the source for this Database class since its not standard class if you can get the fully qualified name of the class you can find its jar from http://www.findjar.com

mkiswani
  • 19
  • 2