Xcode's Java Debugger in 10.6

After the upgrade to 10.6, the Java debugger will not highlight the lines of code that have the errors within the same window of the text editor, and I have to click the bottom right button to open a separate window.
Is there any way to reenable this feature, or is it not working because the Java package hasn't been released for SL yet?
Jason

ALL SOLVED!   But why so difficult to find out?
Worry no more! All is revealed!
Whilst I have now got the resolution, I am somewhat annoyed that I had to go this route.  
WHY isn't it available or more prevalent in the support area to save such issues?
So here's WHAT TO DO ( IF you are experiencing the same issue):
1.     Macintosh HD/ System/Library/Updates  <------ Move that folder to Trash
2.     System Preferences/Software Update [Click]
3.     Click to Update accordingly
4.     RESTART and Hey Presto!  I am in 10.6.8  from 10.6.4 without any upgrades in-between and will head towards the Lions mouth very soon - ONCE I have emptied over 10,0000 items that have subsequently appeared in my trash - I advise you do the same too.
(It goes without saying that you SHOULD back up before attempting anything ...  )
How did I find this out?
In utter frustration I logged an Express Referral with the Apple Supprt Team - EVEN THOUGH I am "out of date" because my issue was a current software related one, they allowed my call without further payment by me.  The fabulous Support Guru solved it in under 10 minutes having understood I was close to a nervous breakdown! And that I had thoroughly and responsibly attempted all potential resolutions prior to contacting them. 
APPARENTLY, in layman's terms, this Folder holds all the details of all software and all versions in it.  10.6.5 onwards tries to patch an issue with going to that folder, but because there is an "imbalance" in that folder, The Snow Leopard has a hissy and crashes.
It's a bit like going to a library, looking for a book in the correct place on the shelf, but because it isn't where it is supposed to be and been put back in the wrong place, rather than go looking, it gives up!  = CRASH!
So, thank you Apple Support, but why is such a simple fix so hidden?  Ho Hum, off to feed the Lion now...!

Similar Messages

  • Classloader exception in Java debugger built using JDI - Please reply

    Im a newbie to java & ive been trying to develop a simple java debugger & ive been getting the following set of exception ir-respective of ip file given to debug
    Exception:::java.lang.ClassLoader.loadClass(java.lang.String, boolean)
    Exception:::java.lang.ClassLoader.loadClass(java.lang.String, boolean)
    Exception:::java.lang.ClassLoader.loadClass(java.lang.String, boolean)
    Exception in thread "Thread-0" java.util.NoSuchElementException
    at com.sun.tools.jdi.EventSetImpl$Itr.next(EventSetImpl.java:822)
    at com.sun.tools.jdi.EventSetImpl$Itr.nextEvent(EventSetImpl.java:827)
    at jds.Executepgm.run(Executepgm.java:48)
    Can someone reply please its very urgent
    ive attached the code here
    MAIN CLASS
    package jds;
    import com.sun.jdi.VirtualMachine;
    import java.io.*;
    public class JDS {
    public static void main(String[] args) {
    if(args.length == 0 || args[0].equalsIgnoreCase("-help")|| args.length>1)
    help();
    System.exit(0);
    LaunchVM lvm = new LaunchVM();
    String str= new String();
    str = readstr();
    if (str.contains("run"))
    String str2 =new String();
    try
    str2 = args[0]+str.substring(3);
    catch(StringIndexOutOfBoundsException e)
    str2=args[0];
    VirtualMachine vm = lvm.launchTarget(str2);
    vm.setDebugTraceMode(0);
    Executepgm expm =new Executepgm(vm);
    System.out.println("run cmd");
    expm.runpgm(vm);
    expm.start();
    vm.resume();
    static void help() {
         System.out.println("**Usage: java JDS <class> **");
    static String readstr()
    String str = new String();
    BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
    try
    str= stdin.readLine();
    catch (IOException ioe) {
    System.out.println("Recieved exception: "+ioe);
    System.exit(1);
    return str;
    SUPPORT CLASS
    package jds;
    import com.sun.jdi.*;
    import com.sun.jdi.event.*;
    import com.sun.jdi.request.*;
    public class Executepgm extends Thread{
    private VirtualMachine vm;
    String[] excludes = {"java.*", "javax.*", "sun.*",
                        "com.sun.*"};
    Executepgm(VirtualMachine vm)
    this.vm=vm;
    public void run()
    EventQueue queue = vm.eventQueue();
    boolean connected = true;
    while(connected == true)
    try {
    EventSet eventSet = queue.remove();
    EventIterator it = eventSet.eventIterator();
    while (it.hasNext()) {
    Event et=it.nextEvent();
    if(et instanceof MethodEntryEvent)
    System.out.println("method entry"+et);
    else if (et instanceof MethodExitEvent)
    System.out.println("method exit"+et);
    else if (et instanceof ExceptionEvent)
    try
    System.out.println("Exception:::"+((ExceptionEvent)et).catchLocation().method());
    catch(NullPointerException e)
    et=it.nextEvent();
    else if(et instanceof VMDisconnectEvent)
    connected = false;
    eventSet.resume();
    } catch (InterruptedException exc) {
    System.out.println("Interrupted");
    } catch (VMDisconnectedException discExc) {
    void runpgm(VirtualMachine vm)
    EventRequestManager erm = vm.eventRequestManager();
    ExceptionRequest excReq = erm.createExceptionRequest(null,true, true);
    excReq.setSuspendPolicy(EventRequest.SUSPEND_ALL);
    excReq.enable();
    MethodEntryRequest menr = erm.createMethodEntryRequest();
    for (int i=0; i<excludes.length; ++i) {
    menr.addClassFilter(excludes);
    menr.setSuspendPolicy(EventRequest.SUSPEND_NONE);
    menr.enable();
    MethodExitRequest mexr = erm.createMethodExitRequest();
    for (int i=0; i<excludes.length; ++i) {
    mexr.addClassFilter(excludes[i]);
    mexr.setSuspendPolicy(EventRequest.SUSPEND_NONE);
    mexr.enable();

    The program under test is throwing exceptions. Your code catches these exceptions and prints out
    Exception:::.................
    You should change your code to print out the kind of exception and the stack trace associated with the exception to see where it is coming from (ie, the call stack for the loadClass method that is throwing the exception.
    Note that you are getting both caught and uncaught exceptions. You will probably find that these exceptions are part of the normal class loading process, and that they are caught and handled by the class loader. You can change your code to not request caught exceptions if you don't want to get these.

  • [Xcode] Error from Debugger: Program not being run

    All of a sudden my Cocoa-AppleScript projects are not being run with *Build and Run* in Xcode 3.2.2. Well, most of them anyway - some old, and some downloaded projects are OK, but projects that ran OK yesterday give me an error today:Running…
    No executable file specified.
    Use the "file" or "exec-file" command.
    No executable file specified.
    Use the "file" or "exec-file" command.
    The program being debugged is not being run.
    The program being debugged is not being run.
    No project settings were changed (I don't even use the debugger, just the console), and the only thing that I've done in the mean time is a software update. The only thing new from that was a Java update, which I don't think should have had anything to do with it. I was having the same problem even building new blank projects, but I've since updated to 3.2.4 and reset the Xcode preferences, which at least got the blank projects going again.
    I've compared some of the settings between projects that work and projects that don't, but I have no idea what to look for. The built applications will run when double-clicked by themselves, just not in Xcode.
    Update: zipping the project files and then unzipping them seems to fix the issue, but I would like to know what to look for that could have caused this problem.

    AHA! Well, although I could have sworn I ran some of these projects from their current location, the problem wound up being related to characters in the name of one of the containing folders.
    I sometimes use leading spaces in the folder names to get them to sort to the top of the list, but even doing that you sometimes need to use additional characters to get the items to sort in the desired way. One of the characters I used (a tilde) seems to get expanded by one of the underlying utilities - my archived projects were in this folder, while other downloaded examples (and copies I had made to other locations) worked since they were outside of the problem folder. It was weird that pretty much everything else ran correctly, though.
    Lesson learned - do NOT use characters that may be special to a shell script in any of your project file paths.

  • Searching for a good java debugger

    Hi all,
    I am a new java developer, i was used to work with c++ builder. I am developing java projects without ide help (plain text, actually with JCreator) . I want to find a good ide debugger (like c++ builder's debugger). I tried to use JBuilder but i can not import my existing project to the JBuilder debugger. Do you know any ide debugger that i can import my project? What about Forte? I have not used it yet. May be tips about importing my .java files in the JBuilder debugger.
    Thank you for advance, Kostas.

    Careful, I might put you on the list too! -:) No just
    kidding but blown up wannabe Java experts like
    LadyFoxy and Sscotties should be very careful.
    Eventually they'll meet the Nightmare Bwitch, and then
    it's over!me! me!
    do me next :)
    to OP, a debugger you ask for? well not exactly the thingie you're looking for, but in some cases quite useful debugger is a omniscient debugger:
    http://www.lambdacs.com/debugger/debugger.html
    ... but its still experimental or something, so it might not yet be fine tuned for every task, it's the idea that counts...

  • Java templates gone from XCode for 10.6

    I went back to rework some Java applets I have written and discovered they don't compile anymore in Xcode (at least as before)
    Hmm. I had Java templates, downloaded the latest XCode and the templates are gone. My 'old' applets won't compile complaining 'Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation.'
    I found a separate Java SDK download? From
    http://developer.apple.com/java/download/
    has 10.5 version listed only
    Clicking on the link goes to the (old) log-in page for the Developer program and the download/Java link goes to a page with 10.6 Java downloads - Developer previews.
    Still no Java templates (in Xcode). Maybe I should read the documentation (if I can find where it was installed). I was able to 'compile' the Hello World applets in the organizer window but no 'Hello World' in Safari.
    What's happened to the 'old' system for Java development?

    After installing XCode 3.2.1 there were no Java docs or Java templates. I installed the Java files and docs for 10.6 from the developer site. Searching XCode for Java gives a lot of Javascript items but no easy answers for Java. Using the Organizer window instead of the Xcode project window is a big change. I must have missed it but searching this forum, Xcode and now the java-dev mailing list archive hasn't given me good answers. One answer seems to be to put Mac OS X10.5 on a separate volume, install the older XCode (or current??) and develop Java one OS version back.
    The Hello World applet didn't run for me when I tried it. Blank browser window. Java Preferences seem to default for 10.6
    "Create Java projects in Xcode 3.2 using Xcode's Organizer. Choose Window > Organizer to open the Organizer. Click the + button at the bottom of the Organizer. Choose New From Template > Java Templates." > Java Applets. Build
    BUILD SUCCESSFUL
    Total time: 1 second
    The Debugger has exited with status 0.
    gives a new window in Safari but it is empty.

  • Java and Xcode 4

    I'm new to Xcode 4. I have some made some Java projects before for Android in NetBeans. Will it be possible to port over Java code easily to Xcode? Or can I only use Object C to code in Xcode 4?

    Hi coldcrow
    You can code in Java with Xcode, but in a separate forum one of Apple's Java developers said that it is now only meant for small scale Java projects. If you've already got some experience with Netbeans then you might do better to continue with Netbeans and don't worry about Xcode.
    On a personal note, I used to be a keen on using Xcode for Java, but the support for the language declined over time, it never had a Java GUI designer, bits (like the debugger) stopped working properly, and projects that worked one day suddenly became deprecated and then stopped working. In the end, I lost patience with it and moved to Netbeans. I now have a collection of old Xcode Java projects dating back to 2004 that simply won't run any more; as and when I need to use them I now have to transfer them to Netbeans, and I wish I'd never started with Xcode. At least Netbeans is under continuous development and will always support Java.
    If any reading that mini-rant you still want to continue with Xcode for Java then I'll wish you good luck!
    Bob

  • XCode Can't find StringTokenizer.java

    I have been creating a java application for about a week now using XCode and it's been relatively good until today when out of the blue I am getting this error message
    Java Debugger: Error: Xcode could not locate source file: java/util/StringTokenizer.java (line: 332)
    Does anyone happen to know what caused this, or how to fix it? It happened shortly after I added a new .java file to the src folder.
    BTW... Is Xcode a good IDE for Mac OSX? It seems really bogged down with apple specific stuff that doesn't really interest me.
    Thanks

    java version "1.5.0_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
    Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -d32 use a 32-bit data model if available
    -d64 use a 64-bit data model if available (implies -server, only for x86_64)
    -client to select the "client" VM
    -server to select the "server" VM
    -jvm is a synonym for the "client" VM [deprecated]
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A : separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument

  • Stupid Java Development Question (JDK? XCode?)

    I'm brand new to OS X, so forgive my noobness. I'm still getting used to OS X.
    I'm doing this little Java tutorial. It says I need to download an install the Java JDK. As I understand it, Java is already built into OS X and I need to use XCode to create and compile Java programs instead of the JDK....where the heck is XCode?
    If anyone knows, I could really use some help. Just finished going through the basics of how to make simple programs in Java but I don't know what to do! Lol. I feel so dumb. I kind of want to call Apple, but I think I'd feel to stupid. I think I have to download XCode? That's what I'm doing now. I had to sign up with the ADC. It's a big file though, 915MB, and it's probably going to take around an hour. I hope someone can tell me if I'm doing the right thing or not before then. I'm guessing I just download this and use this to write Java? How then do I compile? The tutorial is telling me to go to the command prompt and do:
    Code:
    javac filename.java
    to compile the class and then,
    Code:
    java classname
    to execute.
    I'm guessing that in OS X I'm going to use the terminal to accomplish this?
    Any help would be appreciated. I feel really dumb right now. The tutorial only covers how to do this in Windows and Solaris.

    Hi Ralph
    I'm doing this little Java tutorial. It says I need
    to download an install the Java JDK. As I understand
    it, Java is already built into OS X and I need to use
    XCode to create and compile Java programs instead of
    the JDK....where the heck is XCode?
    Go to http://developer.apple.com/ and sign up for a free Apple Developer Connection account. Once you've logged in, go to Downloads and you'll be able to find the latest versions of Xcode and Java. When it comes to downloading Java, take care to choose the version which matches your hardware and version of OS X.
    [snip] It's a big file though, 915MB,
    and it's probably going to take around an hour. I
    hope someone can tell me if I'm doing the right thing
    or not before then. I'm guessing I just download this
    and use this to write Java? How then do I compile?
    Yes - they're big files and you need to persevere with the downloads. Once you've got Xcode and Java installed, you can find some newby tutorials on my web page here:
    http://www.cems.uwe.ac.uk/~lrlang/javasoundmusic/index.html
    You'll find the links to tutorials near the bottom of the page.
    The tutorial is telling me to go to the command
    prompt and do:
    Code:
    javac filename.java
    to compile the class and then,
    Code:
    java classname
    to execute.
    I'm guessing that in OS X I'm going to use the
    terminal to accomplish this?
    Yes. This technique works for any Unix system (including OS X), and I used to teach my students to work this way, but I no longer recommend it. As you guessed, you have to type in these commands into the Utilities/Terminal program. However, to be effective you also need to know a number of other Unix commands like "cd" "ls", "pwd" and a few more which you can find in any introductory book on Unix. You also need to use a text editor (such as TextEdit) to create your Java source files and then save them to the hard disk. While this technique will work, you won't get the syntax highlighting and colouring that is offered by the Xcode editor.
    Any help would be appreciated. I feel really dumb
    right now. The tutorial only covers how to do this
    in Windows and Solaris.
    I think that if you follow my tutorials you will very quickly get up and running with Java development. I hope you enjoy working with Java as much as I do. You can always come back here if you need more help.
    Bob

  • Xcode and older Java projects

    Help!
    Recently I've tried to re-run some older Java Xcode projects and have received this error message:
    "Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation."
    I can get around the problem by copying the old code into a newly created project; however, when I tried to follow the instruction in the error message and consult the Xcode documentation, I could find no information on how to do this. I have tried searching the user docs for all of the terms in the above message with no useful results. Selecting "Upgrade all targets to native" from the Project menu produces a warning that this is not supported in Java.
    I must be missing something really obvious. Can anybody tell me what is going on?
    Thanks, dcl

    Thanks for the quick reply, Karl.
    I should have mentioned that I'm pretty much a beginner with Xcode and Java (actually, with software in general). I get the impression that you don't think that Xcode is a very good way to develop Java. Why is that?
    For my level of programming it works just fine (usually). If I start with a new project there is no problem; however, I can't go back and work on older projects because of the problem I mentioned in the original email.
    Any clues as to what is going on?

  • Beginner XCode/Java Question - printf problem

    Hello,
    I have just started playing around with XCode and Java. I entered the statement:
    System.out.printf("%s\n%s\n", "Welcome to", "Java Programming!");
    into the default working java project (File -> New Project -> Java Tool) and Im getting the error "cannot find symbol" after I compiled it. I do not believe this is a syntax error since it was copied straight from a textbook. So, my questions are:
    1. What "symbol" is Xcode refering to?
    2. Does Xcode coem with the latest version of Java?
    3. How can I check the Java version?
    4. Is there a library that needs to be imported to get it working?
    Thanks in advance!

    Hi Arcus
    I think you might have to change some of the Xcode settings to force it to use Java 1.5. Try this:
    - From the menu, select: Project > Edit Active Target 'Your Program Name'
    - From the popup window, select Settings > Simple View > Java Compiler Settings.
    - Set Target VM Version and Source Version to 1.5
    - Dismiss the window by clicking on the red dot at the top left corner.
    Best wishes
    Bob

  • Xcode debugger question

    How do i setup the debugger in xcode?

    The debugger is already setup in Xcode, do you have a specific question?

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • Yosemite's Xcode GDB

    I'm a student learning C language. And I rarely know Xcode. Please remind that.
    I tried to print my language(Korean) in the replacement of "Hello World!"(I said, I'm really new here), but I found that Xcode's default debugger?compiler? LLDB doesn't support Korean output. So I searched for a time and found that I should use GDB instead.
    But I couldn't find how to install it. Help me, please.
    PS. I'm now using Yosemite and Xcode 6.

    It seems to work fine for me. Can you explain what you mean by "doesn't support Korean output"? It seems to be fully functional to me:

  • Java debugging - problems with standard input

    Hi
    I hope somebody can help me with this problem.
    I'm developing a Java app that reads from the standard input. I use System.in.read() to do that. When I debug it, I use the Standard I/O window instead of the Run Log window to pass in values, but nothing happens (i.e. the line following the read() is never reached). I also tried to run the app and then attach the debugger to use the Run Log window as standard input, with the same result. If I add a breakpoint before the call to read(), the debugger pauses the execution, so I suppose the breakpoints are OK.
    In the executable Info window, Debugging tab, I use the pseudo terminal with the Java debugger.
    So my question is: how can I enter values from the standard input in debugging mode?

    I believe that you are seeing these problems because we have found the
    current versions of RMI found in the JDK to be inherently unscalable -- we
    do not listen for them. As you noticed, we recommend that you use our
    packages for now, and then do the simple change that you found if you decide
    that you do not like WLS. (If you do decide that you do not like us, please
    definitely let us know why you chose the way you did!)
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    "Tim Dawson" <[email protected]> wrote in message
    news:397b8cc2$[email protected]..
    We're developing a J2EE application on NT using WLS 5.1, SP3, but we don't
    want to be tied to any particular J2EE server, so we're making sure that
    none of our code is weblogic specific.
    In keeping with this philosophy, I created an RMI service that used the
    standard java.rmi.* imports instead of weblogic.rmi.* and used thestandard
    RMIC compiler rather than the weblogic.rmic compiler.
    Unfortunately, I couldn't get the system to work. I kept getting
    "java.rmi.MarshalException: Error marshaling transport header; nested
    exception is: java.io.EOFException" whenever I'd call Naming.lookup().
    Of course, when I did the search & replace with java.rmi.* with
    weblogic.rmi.*, and switched from the standard rmic to weblogic.rmic,
    everything started working just fine. This is the ONLY change I made!
    Has anyone else run into similar problems?
    Tim Dawson
    Sr. Software Architect
    is.com

  • How to check the compilation time of C++ code on Xcode 6

    how to check the compilation time of C++ code on Xcode 6

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

Maybe you are looking for