unable to use eclipse 3.4.1 on mac os x [message #258701] |
Sun, 15 February 2009 16:37  |
Eclipse User |
|
|
|
Hello
I just installed eclipse version 3.4.1 on mac os x 10.5.6. I unzipped the
eclipse rcp file and placed it under the Applications directory. I wrote a
very simple helloWorld.java where I just have main that does a
System.out.println().
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("hello world");
System.out.println("bye world");
}
}
When I run this application, nothing is shown in the output console. It
says launching and then terminated. But no output on screen. When I click
on debug, I get the following error in the log file (in .metadata in my
workspace)
!ENTRY org.eclipse.jdt.launching 4 120 2009-02-15 13:24:49.025
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.eclipse.jdi.internal.connect.SocketTransportService.acce pt(SocketTransportService.java:95)
at
org.eclipse.jdi.internal.connect.SocketTransportImpl.accept( SocketTransportImpl.java:56)
at
org.eclipse.jdi.internal.connect.SocketListeningConnectorImp l.accept(SocketListeningConnectorImpl.java:135)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger$Connec tRunnable.run(StandardVMDebugger.java:107)
at java.lang.Thread.run(Thread.java:613)
I searched a lot on this newsgroup and on the internet. Some other people
seem to get this error but I did not find any answer.
Java installed on my computer:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
In the eclipse installed jre preferences window, I am using JVM 1.5.
I tried disabling the mac firewall in the settings section, but that did
not work either. Anybody got any ideas?
Thanks.
|
|
|
|
|
Re: unable to use eclipse 3.4.1 on mac os x [message #258716 is a reply to message #258707] |
Tue, 17 February 2009 02:57  |
Eclipse User |
|
|
|
Thanks Daniel,
please ignore my other message. The problem is resolved now. It was my
mistake. my project was not a java project. i was trying to run a java
class in a non java project and the launch configuration was all messed
up. Pretty stupid on my part.
Eclipse rocks !!
Thanks again.
Daniel Megert wrote:
> Upkar Lidder wrote:
>> Hello
>>
>> I just installed eclipse version 3.4.1 on mac os x 10.5.6. I unzipped
>> the eclipse rcp file and placed it under the Applications directory. I
>> wrote a very simple helloWorld.java where I just have main that does a
>> System.out.println().
>> public class HelloWorld {
>>
>> /**
>> * @param args
>> */
>> public static void main(String[] args) {
>> System.out.println("hello world");
>> System.out.println("bye world");
>> }
>> }
>>
>> When I run this application, nothing is shown in the output console.
>> It says launching and then terminated. But no output on screen. When I
>> click on debug, I get the following error in the log file (in
>> .metadata in my workspace)
>>
>> !ENTRY org.eclipse.jdt.launching 4 120 2009-02-15 13:24:49.025
>> !MESSAGE Cannot connect to VM
>> !STACK 0
>> java.net.SocketException: Socket closed
>> at java.net.PlainSocketImpl.socketAccept(Native Method)
>> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>> at java.net.ServerSocket.implAccept(ServerSocket.java:450)
>> at java.net.ServerSocket.accept(ServerSocket.java:421)
>> at
>>
org.eclipse.jdi.internal.connect.SocketTransportService.acce pt(SocketTransportService.java:95)
>>
>> at
>>
org.eclipse.jdi.internal.connect.SocketTransportImpl.accept( SocketTransportImpl.java:56)
>>
>> at
>>
org.eclipse.jdi.internal.connect.SocketListeningConnectorImp l.accept(SocketListeningConnectorImpl.java:135)
>>
>> at
>>
org.eclipse.jdt.internal.launching.StandardVMDebugger$Connec tRunnable.run(StandardVMDebugger.java:107)
>>
>> at java.lang.Thread.run(Thread.java:613)
>>
>> I searched a lot on this newsgroup and on the internet. Some other
>> people seem to get this error but I did not find any answer.
>>
>> Java installed on my computer:
>> java version "1.5.0_16"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
>> Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
>>
>> In the eclipse installed jre preferences window, I am using JVM 1.5.
>>
>> I tried disabling the mac firewall in the settings section, but that
>> did not work either. Anybody got any ideas?
> Take a look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=124814
> Dani
>>
>> Thanks.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03594 seconds