• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse Remote Debugging Not Working

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am stuck up with Elipse Remote debugging on unix server. My project is a core java project.

I am following the steps below :
(1) Using ANT I am creating the JAR file on windows
(2) Copying the JAR file on sun solaris
(3) I am using following command line options.
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,add
ress=9000,suspend=n -Djava.library.path=${InstallPath} ...
(4) From Elipse using "Remote Java Application" giving "Host" and "Port" 9000

I am getting error :
"Failed to connect to remote VM. Connection Refused."

Alternatively I tried to install Eclipse on Solaris but I don't understand (1) why Eclipse has ZIP file for installation on solaris, why not TAR file ?
(2) what's the difference between GTK and MOTIF ?
(3) I tried installing GTK as well as MOTIF, but getting crazy errors like
!SESSION Fri May 12 19:45:28 IST 2006 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2006-05-12 19:45:28.800
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ExceptionInInitializerError
at org.eclipse.osgi.framework.internal.core.MessageResourceBundle.load(M
essageResourceBundle.java:221)
at org.eclipse.osgi.util.NLS.initializeMessages(NLS.java:88)
at org.eclipse.core.runtime.adaptor.EclipseAdaptorMsg.<clinit>(EclipseAd
aptorMsg.java:99)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)

Any help is greatly appreciated.

Thanks
S.S.
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Connection refused" means that you didn't start the remote application. It can alternatively mean that a firewall is blocking you, but since you didn't mention starting the remote app yourself, I suspect that it isn't running.

As far as no TAR distro of eclipse, my guess is 3 reasons: 1, the Eclipse authors are more comfortable with ZIP, 2, Unix understands zip, but not all Windows systems understand tar and they didn't want to make things more complicated by having 2 file formats, 3, TAR isn't as portable as ZIP - the Solaris version especially isn't completely compatible with gnu tar.

I tried the MOTIF version of Eclipse. It looked ugly and clunky. These days I stick to the GTK version. MOTIF is an old traditional GUI API for X Windows, but it's not as polished as newer ones like GTK.
 
Sanjay sagar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim

Thanks a lot for the info.
 
reply
    Bookmark Topic Watch Topic
  • New Topic