• 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

Debug on Unix

 
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all ,

Please, i wanna debug some java code on unix os throw Xserver but i wanna an IDE with GUI ,Does eclipse help me in that ?
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, Eclipse and NetBeans both can be used to debug on *nix platform.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is that a way to debug java without IDEs in Unix environment?
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Haulyn R. Jason:
Is that a way to debug java without IDEs in Unix environment?



You may want to try out jdb. See here:
http://www.zdnetasia.com/builder/program/java/0,39045537,39179162,00.htm
 
S Shehab
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi but i need a tool GUI based not console based.. by the way does anyone know any good and free Xserver to run GUI on unix ?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind and version of Unix are you running on what hardware? Almost all Unix-like operating systems come with an X server, you normally don't need to install it yourself. X.Org is used on most Unix-like operating systems; it's the reference implementation for the X Window System and is free and open source.

Vinod already gave you some answers to your first question: have a look at Eclipse or NetBeans.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also debug remotely, so the program can be running a system without an Xserver while you are debugging on another machine which does.
Here are some examples
 
S Shehab
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesper Young:
What kind and version of Unix are you running on what hardware? Almost all Unix-like operating systems come with an X server, you normally don't need to install it yourself. X.Org is used on most Unix-like operating systems; it's the reference implementation for the X Window System and is free and open source.

Vinod already gave you some answers to your first question: have a look at Eclipse or NetBeans.


HI About the unix kind it is HP unix hardware i have no idea.. ok How to run the xserver on the unix machine , PS: i'm connecting via Putty software..
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will probably need to get your Unix administrator involved if you want to get Xwindows working. Setting it up is not a task I'd recommend for the Unix newbee.
Try remote debugging. All you have to do is set the correct options on the VM and point your debugger (be it Netbeans, Eclipse or something else at the VM's port.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sherif Shehab:

HI About the unix kind it is HP unix hardware i have no idea.. ok How to run the xserver on the unix machine , PS: i'm connecting via Putty software..



Ah, OK. You're sitting on a Windows machine (or something) and connecting to an HP machine via PuTTY. You want to display graphical applications on your desktop which are physically running on the HP machine. Is this right?

In this case, you do not need or want to run an X Server on the HP machine; you need to run an X server on your desktop (Windows?) machine. The local X server is used by the remote programs to display their GUIs.

There are many commercial X servers for Windows, and probably several free ones. The one I have had the best experiences with is the X server you can run as part of Cygwin -- see www.cygwin.com.

If your desktop is not Windows, but something else, you'll need some other product, of course.
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See also Sherif's other topic were we were discussing the same issue (that one's closed now).
 
S Shehab
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesper Young:
See also Sherif's other topic were we were discussing the same issue (that one's closed now).



Hi Jesper ,
In the other IDE forum i was asking about the java IDE working on xserver but here i'm asking about this configuration of xserver , so i think the 2 topics are different, what do you think ??
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, what Ernest is talking about here is the same kind of thing as what we were talking about in the other topic with Xming.

Have you made any progress yet with the problem?
 
S Shehab
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesper Young:
Well, what Ernest is talking about here is the same kind of thing as what we were talking about in the other topic with Xming.

Have you made any progress yet with the problem?



Actually , i tired all these steps on another unix sever and was succeeded and i can see the clock , but on the desired server still the same problem exists so i informed out Unix admin to see what's wrong in this server ,and waiting for his feedback...
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic