Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » unable to use eclipse 3.4.1 on mac os x
unable to use eclipse 3.4.1 on mac os x [message #258701] Sun, 15 February 2009 16:37 Go to next message
Eclipse UserFriend
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 #258707 is a reply to message #258701] Mon, 16 February 2009 03:03 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
Re: unable to use eclipse 3.4.1 on mac os x [message #258710 is a reply to message #258707] Tue, 17 February 2009 02:39 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Dani, I looked at the bug report. I tried changing the /etc/hosts
file but it did not make any difference.
/etc/hosts file:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
localhost 127.0.0.1
127.0.0.1 127.0.0.1


Same error in the log:

!ENTRY org.eclipse.jdt.launching 4 120 2009-02-16 23:32:38.057
!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 do not see any output in the console in eclipse. I think the person in
the bug sees output in the console when they run it. They don't see
anything when they debug. Just the error. When I just run the helloworld
program or the program listed in the bug report, I don't see anything in
the console. Just "started" and "terminated" in the view status. When I
use debug, I get an error windows saying "cannot connect to vm". Not sure
what is going on here. I can try reinstalling java on the mac, would that
help?
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 Go to previous message
Eclipse UserFriend
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.
>>
Previous Topic:compiler bug with generic / return type override (disagree with sun javac)
Next Topic:Filter
Goto Forum:
  


Current Time: Tue Apr 29 08:41:10 EDT 2025

Powered by FUDForum. Page generated in 0.03594 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top