Debugger stopped on uncompilable source code.

Dear Friends,
I got the Error as like
Debugger stopped on uncompilable source code.
The code is down!!!
I could not figure out the reason, why it comes. !!! I read data from a txt file and generate an XML file.
please any 1 help me to solve this
Priya
package java.Associations;
import java.io.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
import com.sun.org.apache.xml.internal.serialize.OutputFormat;
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
public class XMLCreatorExample {
//No generics
List myData;
Document dom;
public XMLCreatorExample() {
//create a list to hold the data
myData = new ArrayList();
//initialize the list
loadData();
//Get a DOM object
createDocument();
public void runExample(){
System.out.println("Started .. ");
createDOMTree();
printToFile();
System.out.println("Generated file successfully.");
* Add a list of books to the list
* In a production system you might populate the list from a DB
private void loadData(){
Scanner inputFile = null;
try {
inputFile = new Scanner(new File("C:\\coding\\weka\\1.txt"));
while(inputFile.hasNext()) {
myData.add(inputFile.next());
catch(FileNotFoundException fNFE) {
System.out.println("The file was not found");
finally {
inputFile.close();
//myData.add(new Book("Head First Java", "Kathy Sierra .. etc","Java 1.5"));
//myData.add(new Book("Head First Design Patterns", "Kathy Sierra .. etc","Java Architect"));
* Using JAXP in implementation independent manner create a document object
* using which we create a xml tree in memory
private void createDocument() {
//get an instance of factory
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
//get an instance of builder
DocumentBuilder db = dbf.newDocumentBuilder();
//create an instance of DOM
dom = db.newDocument();
}catch(ParserConfigurationException pce) {
//dump it
System.out.println("Error while trying to instantiate DocumentBuilder " + pce);
System.exit(1);
* The real workhorse which creates the XML structure
private void createDOMTree(){
//create the root element <Books>
Element rootEle = dom.createElement("Books");
dom.appendChild(rootEle);
//No enhanced for
Iterator it  = myData.iterator();
while(it.hasNext()) {
Book b = (Book)it.next();
//For each Book object  create <Book> element and attach it to root
Element bookEle = createBookElement(b);
rootEle.appendChild(bookEle);
* Helper method which creates a XML element <Book>
* @param b The book for which we need to create an xml representation
* @return XML element snippet representing a book
private Element createBookElement(Book b){
Element bookEle = dom.createElement("Book");
bookEle.setAttribute("Subject", b.getSubject());
//create author element and author text node and attach it to bookElement
Element authEle = dom.createElement("Author");
Text authText = dom.createTextNode(b.getAuthor());
authEle.appendChild(authText);
bookEle.appendChild(authEle);
//create title element and title text node and attach it to bookElement
Element titleEle = dom.createElement("Title");
Text titleText = dom.createTextNode(b.getTitle());
titleEle.appendChild(titleText);
bookEle.appendChild(titleEle);
return bookEle;
* This method uses Xerces specific classes
* prints the XML document to file.
private void printToFile(){
try
//print
OutputFormat format = new OutputFormat(dom);
format.setIndenting(true);
//to generate output to console use this serializer
//XMLSerializer serializer = new XMLSerializer(System.out, format);
//to generate a file output use fileoutputstream instead of system.out
XMLSerializer serializer = new XMLSerializer(
new FileOutputStream(new File("C:\\coding\\book.xml")), format);
serializer.serialize(dom);
} catch(IOException ie) {
ie.printStackTrace();
public static void main(String args[]) {
//create an instance
XMLCreatorExample xce = new XMLCreatorExample();
//run the example
xce.runExample();/**/
package java.Associations;
public class Book {
private String title;
private String author;
private String subject;
public Book(String subject) {
this.subject = subject;
public Book() {
public Book(String title, String author, String subject) {
this.title = title;
this.author = author;
this.subject = subject;
public String getAuthor() {
return author;
public void setAuthor(String author) {
this.author = author;
public String getTitle() {
return title;
public void setTitle(String title) {
this.title = title;
public String getSubject() {
return subject;
public void setSubject(String subject) {
this.subject = subject;
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append(" { Book Details --");
sb.append("Title:" + getTitle());
sb.append(", ");
sb.append("Author:" + getAuthor());
sb.append(", ");
sb.append("Subject:" + getSubject());
sb.append(". } \n");
return sb.toString();
}

One of your .java files doesn't compile (has compilation errors.). Make sure there are no compilation errors before you attempt to run/debug the program.
P.S Why are you posting this across multiple forums?

Similar Messages

  • Java.lang.RuntimeException: Uncompilable source code - missing method body

    Hi,
    I am getting the following error at runtime
    java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstractwhen I try to instantiate a class using reflexion as following:
    MyInstance = MyClass.newInstance(); I have tried to find some explanation using Google, but could not find any that fit my case. MyClass's implementation has a public constructor with no parameter. There is no error at compile time when cleaning and building all code.
    Anyone has tips about what could cause this error?
    Thanks.

    Jrm wrote:
    It is not my code originally... You are making far too many unchecked assumptions about the reality of this situation to even get close to what that reality it is... Get over patronizing, it would improve your social/people skills... Thanks !It is your own problem that you perceive something as patronizing, while in fact it was only an honest and straight to the point attempt to help you. This forum does not deal in sensitivity, it gets in the way of helping people to see the error of their ways.

  • WSAD Debugger - stopping on lines of code that are blank/comments

    Java newbie here...
    Has anyone come across the debugger stopping on non-lines of code such as comments or blank lines? This happens as after I set breakpoints and start stepping through the code.
    Thanks

    The compiled code is not in sync with the source code.

  • Ffox hangs when I try to view source code - any ideas how to stop this?

    Ffox hangs when I try to view source code - any ideas how to stop this?
    hangs forever... have to use control-alt-del to close :-(

    Usually a USB error. Read here:
    http://support.apple.com/kb/ts3694#4000

  • Why does debugger not find source code when compiler output has been directed to the root directory, but the source is in a sub-directory, using Forte for JAVA community edition V3.0

    I have configured Forte to put compiler output, i.e. my classes, in the root directory of the project. I now find that the debugger does not find the source code when it is in a sub-directory. However, if I temporarily copy a classes' source code to the root directory the debugger will display it.
    To direct compiler output to the root directory I selected Project >Settings>Compiler types, then External Compiler ( which is the default compiler in my case ) and set Target to be the root project directory. This is the only directory it will allow.

    This Forum is for Forte 4GL or UDS as its called today. I am not sure if anybody is going to be able to answer your question here. Sorry.
    ka

  • Debugger stopped working - FB4

    Hi,
    this morning my debugger stopped working. FB4 stays reponsive after I hit the debug button - it shows a main thread running - but either IE8 or FF5 freeze, showing "not responding" in the title bar. Windows says Flashbuilder.exe is using a constant 10% or so of CPU and lots of disk access. I have tried installing the latest versions of the Flash debugger player (10.3.181.34) but it makes no difference. Just launching the app works perfectly. I'm running Windows 7 Pro 64 bit on a Thinkpad W510 (8gb RAM, two quad-core i7 processors). Has anyone else seen anything like this?
    Thanks
    Martin

    Just found this in the log: one for every time I've tried launching the debugger today. In fact one every 3 milliseconds when I've done that! No wonder the disk light is flashing constantly.... any ideas anyone? Reinstall Flash Builder?
    Thanks
    !ENTRY com.adobe.flexbuilder.debug 4 2 2011-07-01 13:53:04.395
    !MESSAGE Problems occurred when invoking code from plug-in: "com.adobe.flexbuilder.debug".
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.findSourceFiles(FlexLineBreakp oint.java:412)
        at com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.instantiate(FlexLineBreakpoint .java:465)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget.instantiateBreakpoint(FlexDebugTarget.j ava:1012)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget.access$4(FlexDebugTarget.java:1006)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.installDeferredBreakpoints(Fl exDebugTarget.java:637)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.advanceStateMachine(FlexDebug Target.java:668)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.access$7(FlexDebugTarget.java :642)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread$1.run(FlexDebugTarget.java:75 2)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.eventLoop(FlexDebugTarget.jav a:732)
        at com.adobe.flexbuilder.debug.model.FlexDebugTarget$FdbThread.run(FlexDebugTarget.java:793)
        at java.lang.Thread.run(Unknown Source)

  • Real-Time Application doesn't run; source code works fine

    The short version is I'm programming a cRIO and apparently the RT code isn't running after being deployed and I can't figure out why. This is further complicated that I'm doing all this remotely and I don't have direct access to the unit since I'm 500 miles away. I'm working through a couple of other guys who know some LabVIEW, but neither works at the site so they have to explicitely travel out there every time I have a bright idea.
    I was out there a few weeks ago. During this time I created a simple cRIO code, since I'm new to cRIO, that allowed the user to move a control and change a graph. It worked fine, but I should note it did not have an FPGA component. After that I worked on the real code, which reads some sensors, displays the results on a UI and logs the results. This did have FPGA. I used it in the LabVIEW environment and it worked fine, but I ran out of time before I could complete a release version and deploy the RT as a compiled application. I sent them the release version later, my contact deployed it but got network stream errors when running the UI.
    After hours of looking at network problems and sending over debug versions, I tried creating a log on the RT level so I could see what was going on. The log doesn't even open, even if it's the first command in the code. I pored through the forums and found http://forums.ni.com/t5/LabVIEW/cRIO-Troubleshooting-creation-and-deployment-of-startup/td-p/1956475... which took me in a new direction.
    I had my contact use the RT debug console and when he pulls up the RT front panel, it shows a broken run arrow. He clicks it and nothing happens -- no running, no bug list. If he pulls up the bug list manually, it's empty. Again the RT works fine if you run it through LabVIEW and not as a compiled real-time application. He also noticed that the Open FPGA VI was grayed out on the block diagram. No other icons are.
    So the problem appears to be that the compiled RT application is getting some kind of error but not telling me what it is, and it seems to be related to opening the FPGA. I've recompiled the FPGA and RT. I've had him recompile the RT himself, but not the FPGA because it would take hours. He's downloading everything correctly to the cRIO. The RT is set to run automatically. He's rebooting the cRIO every time he deploys the RT. They have LabVIEW on a computer there but it doesn't have the right drivers to run the code from the LV environment. I'm resisting having them install the dirvers because downloading big files is complicated there due to security restrictions and a lousy network connection at a remote site. Besides that doesn't solve the problem of the RT executable not running the same as the source code, which according to the thread above appears to be a thing.
    The latest thing I'm trying is that I sent him instructions for how to build a source distribution from the project I sent and try deploying that to the cRIO. Even if that works I'm not sure that's an acceptable solution because I assume running the VI rather than the EXE is slower, and they need speed on this project.
    I simply have no idea where to go from here. I probably need to get direct acess to the cRIO and I might be able to convince them to ship it to me so I can figure this out, but I'm not sure where I'd even start other than the standard voodoo debugging of "try stuff at random until something works". I'm open to suggestions if anyone has managed to solve this before.
    Code snippet of the first part of the project is attached, though I'm not sure how much good it will do. I'm really stumped and the client is getting frustrated with how much of the budget is going to fix this.
    Solved!
    Go to Solution.
    Attachments:
    RTMainSnippet.png ‏623 KB

    Have you checked the cRIO error log? Usually I'd access it through the LabVIEW project (right-click on the target, don't remember the exact menu options and I don't have the RT toolkit installed on this machine to check), but it must be stored somewhere on the cRIO as well, although I don't know if it's in a human-readable format.
    Which cRIO are you using? What exactly do you mean by "debug console"? (This may be related to the cRIO - the newer ones have video out, although I don't know if that's what you're referring to.) With a broken run arrow, you won't get an error list unless you're running in the development environment.
    Have you confirmed that the software installed on the cRIO matches the version you're using for development, including patch level? Get someone to connect to the cRIO with Measurement and Automation Explorer, and get a list of the software installed on the cRIO.
    Sounds like the ability to connect with a remote debugger would be helpful here, if you can get the right drivers installed on the machine with LabVIEW that's connected to the cRIO. Make sure all driver versions match what you're using. Any chance you could then do a remote desktop connection from your work site to the remote LabVIEW machine?

  • Dynamic-side Box? Can't read source code with java

    Hi all,
    I am trying to read a source code of a web page with a java program. I can connect to the page and read a part of the source code without any problems however after a while when it comes to a part where mozilla and opera identifies as "dynamic-side box" my java program fails to read the source code and stops reading the rest of the page.
    Here is the part of the output I get from mozilla:
    <body id="city">
              <script type="text/javascript" src="/js/wz_tooltip.js"></script>
              <div id="container">
                   <div id="container2">
                        <div id="header">
                             <h1>Ikariam</h1>
                             <h2>Antik �a&#287;&#305; Ya&#351;a!</h2>
                        </div>
    <div id="breadcrumbs"><h3>Bulundu&#287;un nokta:</h3><a href="?view=worldmap_iso&islandX=78&islandY=80" title="D�nya haritas&#305;na d�n"><img src="skin/layout/icon-world.gif" alt="D�nya" /></a> > <a href="?view=island&id=2444" class="island" title="Adaya d�n">Sterios[78:80]</a> > <span class="city">ProPolis</span></div><!-- -------------------------------------------------------------------------------------
         ///////////////////////////// dynamic side-boxes. //////////////////////////////////
         //////////////////////////////////////////////////////////////////////////////////// -->
         <div id="information" class="dynamic">
              <h3 class="header">Info</h3>
              <div class="content">And here is the corresponding part in java console output:
    <div id="breadcrumbs">
        <h3>Bulundu&#287;un nokta:</h3>
         <span class="textLabel">Hata!</span>
    </div>
    <div id="information" class="dynamic"></div>
    <div id="mainview">
        <div class="buildingDescription">
            <h1>Hata!</h1>
        </div>
        <div class="contentBox01h">
            <h3 class="header"><span class="textLabel">Hata mesaj&#305;</span></h3>
            <div class="content">
                <ul class="h�bsch">
    <li><a href="http://ikariam.net"></a></li>            </ul>
            </div><!-- end #content -->
            <div class="footer"></div>
        </div><!-- end #contentbox -->
    </div><!-- end #mainview -->Is there a way to skip this dynamic-side boxes in java. Because I need to read an information that is located at the near end of the source code however since it stops when it hits to a dynamic-side box I can't.
    Thanks in advance, regards...

    Hi,
    That is what I was trying in deed! I was trying with a Scanner but I also tried with the link you have given. That also failed. Somehow java stops reading the source when it hits "dynamic-side box". However there has to be a way to skip this. If mozilla can do that, I know that java also can. I wonder how....
    Cheers...

  • AppleScript's source codes have been mangled beyond repair.

    Hello,
    New fora software has tampered numbers of AppleScript source codes in posted messages to the extent that they become entirely useless. This is serious.
    E.g. (just the tip of an iceberg)
    http://discussions.apple.com/thread.jspa?threadID=1051811&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1036140&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1033753&tstart=0
    At a glance, tab and double hyphens (at the beginning of a line?) seem to have special formatting meanings in the new fora software and be translated into some HTML list elements. However, tabs are embeded in well-indented source codes pasted from Script Editor, though they're usually ignored in browsers, and double hyphens have been used for marking line comment in AppleScript. Consequently, almost all of the posted AppleScript source codes are affected.
    Plainly, it is not a good idea to apply new formatting features to the existing messages in the first place. It can introduce corruptions and it does indeed.
    So my requests to fora administrators are:
    (1) Please restore the existing messages in AppleScript forum to the original untampered state (and apply new formatting features to only new messages to be posted after the change, if you see it really necessary).
    (2) Please keep the fora software from interpreting tab and double hyphens (at least) as HTML formatting directives.
    (3) Please disclose the list of all characters which are interpreted as special commands in the new fora software in order to avoid further corruptions in the future.
    Thank you for your time and support.
    Best regards,
    Hiroto

    (3) Please disclose the list of all characters which are interpreted as special commands in the new fora software in order to avoid further corruptions in the future.
    Please don't stop there. Disclose all the details of the new features, like a smiley-to-icon chart or exactly how the quote box format works (single leading ">" vs. one per line or paragraph, what happens in different sized tables, how multiple quote levels (">>" lines) behave, etc.).
    I realize I could probably figure this out by trial & error plus pouring over the raw source HTML, but it is ridiculous that I would have to do so with an Apple site -- after all, the company is supposed to be the world's best at ease of use & user friendliness!

  • Source codes and jframes

    Hello ,
    I am trying to make it so that I can somehow place this source code,
    *Hi_LoGame.java*
    Peter Hadlaw
    *2009/10/12*
    *This is a simple guessing game that tells the user if they got the number right or if the are too low or too high, and then asks if they wish to continue. It then prints the results, and the best score.*
    import java.util.*;
    public class Hi_LoGame {
        public static void main(String[] args) {
           Scanner userInput = new Scanner (System.in);
           int userC, userG=0, bestGNum=0, currentGNum=0, gamesP = 0, gNum = 0, cpuNum;
           Random cpuRandNumGen = new Random();
           System.out.println("Welcome to the Hi - Lo game showdown!!!\nWould you like to play: (1)Yes or (2)No?");
           userC = userInput.nextInt();
           while(userC<=0||userC>=3){
                System.out.println("Please enter a valid choice of 1 or 2.");
                userC = userInput.nextInt();
           cpuNum = cpuRandNumGen.nextInt(100)+1;+
    +       while(userC==1){+
    +                 currentGNum++;
                     System.out.print("Please enter a number from 1-100 for you guess: ");
                     userG=userInput.nextInt();
                     while(userG<=0||userG>100){
                          System.out.println("Please enter a valid guess:");
                          userG = userInput.nextInt();
                     if(userG==cpuNum){
                          System.out.println("Congradulations you got it right!");
                          System.out.println("You got it right in "  +currentGNum+  " guesses.");
                          System.out.println("Do you want to play (1)again or do you want to (2)stop");
                          userC = userInput.nextInt();
                          while(userC<=0||userC>=3){
                               System.out.println("Please enter a valid choice of 1 or 2.");
                               userC = userInput.nextInt();
                          if(gamesP==0)
                               bestGNum = currentGNum;
                          if(gamesP>1&&currentGNum<bestGNum){
                               bestGNum = currentGNum;
                          else{//nothing
                          gamesP++;
                          cpuNum = cpuRandNumGen.nextInt(100)+1;+
    +                      if(userC==1){+
    +                           currentGNum=0;+
    +                      }+
    +                      else{+
    +                      }+
    +                 }+
    +                else if(userG>cpuNum){+
    +                     System.out.println("Sorry but you are to high!");+
    +                     System.out.println("Do you want to guess (1)again or do you want to (2)give up");+
    +                      userC = userInput.nextInt();+
    +                      while(userC<=0||userC>=3){+
    +                           System.out.println("Please enter a valid choice of 1 or 2.");+
    +                           userC = userInput.nextInt();+
    +                      }+
    +                      if(userC==2){+
    +                           gamesP++;
                               System.out.println("You gave up ,your guess count was: "  +currentGNum);+
    +                      }+
    +                      else{+
    +                      }+
    +                }+
    +                else{+
    +                     System.out.println("Sorry but you are too low!");+
    +                     System.out.println("Do you want to guess (1)again or do you want to (2)give up");+
    +                      userC = userInput.nextInt();+
    +                      while(userC<=0||userC>=3){+
    +                           System.out.println("Please enter a valid choice of 1 or 2.");+
    +                           userC = userInput.nextInt();+
    +                      }+
    +                      if(userC==2){+
    +                           gamesP++;
                               System.out.println("You gave up ,your guess count was: "  +currentGNum);+
    +                      }+
    +                      else{+
    +                      }+
    +                }+
    +       }+
    +       if(gamesP==0){+
    +            System.out.println("Thanks anyways, please come again.");+
    +       }+
    +       else{+
    +            System.out.println("Thanks for playing, you last score is: "+  currentGNum  +" but your best guess number was in "+  bestGNum + " guesses.");
    }into a jframe, I heard something about text panes or textareas maybe being able to print this, but i just want one simple jframe with the above, and the user can input stuff right then and their.
    Thank You

    What you currently have is a non-OOP class, one that is nothing but a big main method without methods, constructors, etc.
    If this is your code, it suggests that you still have a bit to learn before tackling Java GUI such as writing classes, methods, constructors, etc. I mean feel free to read up on how to create a Swing GUI here [http://java.sun.com/docs/books/tutorial/uiswing/index.html] and jump right in, but just be forewarned that if you're jumping too early, it'll be a frustrating swim. Much luck.

  • XCode wont find source code during debug

    My XCode project (an exernal target initially generated using GNU autotools, and imported into XCode) won't find the source code during debug.
    I'm sure this is a project setup issue, but i can't seem to figure out which setting i need to change.
    Any help is appreciated.
    Thanks

    Hi,
    make sure Debug symbols are generated! If you for example choose to debug while the project is set to "Release" mode (Project->Set Active Build Configuration), you will not get your code displayed and instead have to use the asm output of the debugger.
    If set to "Debug", XCode switches all necessary gcc... parameters for debugging.
    Volker

  • Extra blank lines in source code

    I have built a website in Dreamweaver CS4 and have a client editing pages in Contribute CS5. Both of us are working on Windows 7, and the site is hosted on Linux. When she makes edits to the page, something is introducing a GAZILLION blank lines in the source code. A typical page for this site is about 380 lines of code. The problem page is now more than 310,000 lines code with 100-200 blank lines between every "real" line of code. What the...?!
    I need to know how to stop this and how to remove the blank lines from the source code using Dreamweaver.
    The page in question lives here: http://www.alexandercitychamber.com/member-category.html
    HELP!!!
    Jeff

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

  • Where can I get the source code for sun classes?

    Hello,
    When ever you download sun's j2sdk, the archive always contains the source code for the entire sdk in a zip file called src.zip except the sun.xxx classes like sun.awt.print.PrintDialog or sun.awt.font.FontResolver.
    For debugging purposes I need, if availabe, the source code of these classes which are not present in the src.zip.
    Please can someone tell me if theses classes are available as source and can point me where I can find it cause I am searching for it but can't find it on the net.
    Thank you
    Carolin

    Hey ChuckBing
    And your way is the only way, right? No.What on earth is eating you? Highly sensitive today?
    Where is the problem? There are two solutions of the question.
    The one link I posted points directly to the sun source download link. The "readme" explains, yippie, the sun sources are contained. Easy, isn't it?
    With the other one, you have to navigate at least through two other pages before you might find the link and only if you recognize that "Download JDK 5.0 source via SCSL/JRL" means the sun source code and not the sources contained in the JDK download. This is what I thought as I've seen this link the first time. Unfortunately there is no "readme".
    I prefer the easy way, I dont want to earn a doctorate. Ok, you can say dont "play the woman", but I'm a woman and a blonde too;-)
    But, let us stop the idle discussion here, please!
    Nevertheless, thanks to you and [email protected] for answering.

  • How to avoid "Cannot display source code at this location"?

    This debugger message really annoys me. It seems to me that
    sometimes when my program fails the debugger returns nice friendly
    messages telling me exactly what line numebr an object is
    undefined. This is great. But half the time I get message of this
    nature.
    at main_fla::MainTimeline/ot()
    at main_fla::MainTimeline/buttMouseEvent()
    Cannot display source code at this location.
    Why does the debugger refuse to show the line number of the
    code sometimes?
    Is there acoding practice that one should use to avoid these
    unhelpful debug messages?
    It is very annoying when you have a 200 line function that
    tells you that somehting is undefined SOMEWHERE in the function
    without giving you a line number. Granted at least AS3 does
    actually warn you....(unlike AS2) but I am constantly plagues by
    these "Cannot display source code at this location" messages.
    An anyone offer any explanation to why these messages dont
    display line numebrs or how to code in a way that avoids them?
    thanks

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • Needed: A bit more info on the source code structure

    Hi,
    I've downloaded the source code zip file and would like to link to BlazeDS's source code from a Flex Builder project, so that I can step through it in the debugger.
    As far as I can see the source code is split up in multiple sub-directories under the modules directory. It would be nice if there was a single folder that included all BlazeDS source, so that I wouldn't have to link to multiple folders in my project.
    Or, at least, some explanation in a read-me file explaining what I need to link to.
    Am I missing something? If so, where?
    Also, an explanation of the difference between 'java' and 'java15' folders would be helpful.
    Thanks,
    Douglas

    > Could you explain to me why flex.messaging.MessageBroker only exists in
    > /core/src/java/ and not in /core/src/java15/?
    Hi Douglas,
    The classes are merged together in to a single jar file. The java15 code is
    mainly code that needs to be compiled with the compiler in 1.5 mode. This
    is left over from before we released BlazeDS and supported Java 1.4. We
    expect to 'fix' all this moving forward and require Java 5 SDK and JVM as a
    minimum. We just haven't done that yet.
    In an IDE you can just ignore this and set the JVM level to be 1.5 and
    include both the java and java15 directories as source. The Eclipse
    projects (and IntelliJ IDEA projects) we provide should already take care of
    this for you. It shouldn't be too hard to do in any other Java IDE either.
    Tom Jordahl
    Adobe

Maybe you are looking for

  • Gif file opening through MS Picture Mgr instead of viewer

    Hi, We have gif files displaying in MS Picture viewer instead of  ECL viewer in sap. The bmp files are opening in ECL viewer. Please help in what needs to be done. Anirudh,

  • VGA memory problem.....

    My VGA memory have 64MB DDR...but sometimes when i start pc it will lost memory ..sometimes it's just have 16MB....sometimes 32MB...never perfectly display to 64MB. And the 3D Mark2001 SE also cannot run..and show the error message tell me about memo

  • How can I use an older version of Firefox?

    I have the latest version of Firefox, but I need versions 1.5 or 2 so that I can take an MCAT test at home. Is there a compatible way? == 5/21/10

  • Untrusted Forest Discovery failed

    I'm having a issue with remote untrusted forest.  Forest Discovery fails, but I can publish site server information to this forest.  ERROR: [ForestDiscoveryAgent]: Failed to connect to forest domain.com. This can be because of disjoint DNS namespaces

  • Shared Contacts and Categories issue

    I have a user JohnDoe who shared his contacts with user B and user C. User JohnDoe has uniquely categorized all of his contacts. User B can see all of the shared JohnDoe categorizations properly. User C cannot see any of the unique categorizations of