Results 1 to 9 of 9
  1. #1
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Unable to debug due to error

    Hello, when I press the debug button (using juno) I get this error:

    Java Code:
    Cannot connect to VM
    socket closed
    How can I solve this?

    Thanks
    Astralogic

  2. #2
    epilisantosha07@gmail.com is offline Santosha Epili
    Join Date
    Jul 2012
    Posts
    5
    Rep Power
    0

    Default Re: Unable to debug due to error

    need more information on it

  3. #3
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Re: Unable to debug due to error

    Quote Originally Posted by epilisantosha07@gmail.com View Post
    need more information on it
    Like what? I'll give you whatever you need.

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,758
    Rep Power
    19

    Default Re: Unable to debug due to error

    What sort of application are you trying to debug?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Re: Unable to debug due to error

    Quote Originally Posted by Tolls View Post
    What sort of application are you trying to debug?
    I would call it an application, it's just a few lines of code really.

    Java Code:
    import java.net.URI;
    import java.net.URISyntaxException;
    
    
    public class Main {
    
    	public static void main(String[] args) {
    		
    		try {
    			URI uri = new URI("http:\\somecompany.com");
    		} catch (URISyntaxException e) {
    			e.printStackTrace();
    		}
    		
    		System.out.println("I'm alive!");
    	}
    
    }
    I have a breakpoint on line 12, but the problem remains with or without the breakpoint.

    Do you have any ideas?

  6. #6
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,758
    Rep Power
    19

    Default Re: Unable to debug due to error

    What version of Java?
    Is it the one coming with Juno or a "normal" one?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Re: Unable to debug due to error

    Quote Originally Posted by Tolls View Post
    What version of Java?
    Is it the one coming with Juno or a "normal" one?
    I think it's the one that comes with Juno, I haven't changed anything in the programs settings. Although I do have java 6 and 7 sdks from oracle installed.

  8. #8
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Re: Unable to debug due to error

    Quote Originally Posted by Astralogic View Post
    I think it's the one that comes with Juno, I haven't changed anything in the programs settings. Although I do have java 6 and 7 sdks from oracle installed.
    Actually, after I go to Window->Preferences->Java->Installed JREs it points to the one I downloaded and installed from Oracle and it's Java 6.

  9. #9
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,758
    Rep Power
    19

    Default Re: Unable to debug due to error

    All I can suggest is to look in the Eclipse forums and se if there's something similar.
    If it was an external app (say a Tomcat webapp) I would have suggested a possible firewall or networking issue, but since it's an app running in Eclipse that's unlikely.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. [Netbeans] - Error Debug
    By yuir in forum NetBeans
    Replies: 3
    Last Post: 01-03-2011, 07:01 PM
  2. Help to debug a common error please!
    By TaxpayersMoney in forum New To Java
    Replies: 4
    Last Post: 05-08-2010, 03:31 PM
  3. Replies: 4
    Last Post: 04-23-2010, 05:51 PM
  4. error debug
    By stid in forum Eclipse
    Replies: 2
    Last Post: 10-16-2009, 07:44 PM
  5. Error logged from JDT Debug UI Window
    By tsc in forum Eclipse
    Replies: 1
    Last Post: 07-10-2008, 08:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •