This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Debug on Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Debug on Unix" Watch "Debug on Unix" New topic
Author

Debug on Unix

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

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 ?


Thanks,
Sherif
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Yes, Eclipse and NetBeans both can be used to debug on *nix platform.


My Blog
Haulyn Jason
Ranch Hand

Joined: Jul 24, 2007
Posts: 37
Is that a way to debug java without IDEs in Unix environment?


Mama always said, "Life is like a box of chocolates; you never know what you're gonna get. And then you have to get medieval on somebody's buttocks."
http://www.haulynjason.net/
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
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


Thanks and Regards
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

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 ?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

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

Joined: Oct 29, 2001
Posts: 8708
    
    6

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.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

See also Sherif's other topic were we were discussing the same issue (that one's closed now).
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

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?
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debug on Unix
 
Similar Threads
remote debug hot code replace
eclipse command line issue
xserver
Related String
save output in windows