Two Laptop Bag*
The moose likes IDEs, Version Control and other tools and the fly likes Need help to install Eclipse on AIX-Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Need help to install Eclipse on AIX-Unix" Watch "Need help to install Eclipse on AIX-Unix" New topic
Author

Need help to install Eclipse on AIX-Unix

T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Has anyone installed Eclipse on AIX Unix?
I've downloaded the file "eclipse-SDK-3.4.1-aix-motif.zip". Tried tar comand and it did not work. Tried uncompress comand and it did not work either.
IF the installation on Unix is successfully how does the Eclipse GUI work on Unix?
Any suggestion/guidance is greatly appreciated.

Regards.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

If the file is called *.zip, then you need to uncompress it with "unzip".


[Jess in Action][AskingGoodQuestions]
T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Hi Ernest,
Thank for your comment. Unfortunately, unzip is not a Unix command.

I'm wondering why the file has ".zip" extension for AIX rather than ".tar" for Linux/Unix???

SOmeone must have done this or find a proper way to do this???

Help please.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

"unzip" exists on many platforms, including AIX.

Try "gunzip", or find out how to uncompress a ZIP file on AIX.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

T Nnn, please see your private messages for an important administrative matter. Oh, and welcome to Java Ranch!


JBoss In Action
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

David Newton wrote:
Try "gunzip"


Unfortunately gunzip won't do it. Here is the "Linux toolkit for AIX" from IBM, which contains unzip as well as a number of other common utilities that will make AIX feel a little more like home.
T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Thank Ernest and David for your suggestions.

Bases on your input I search around for commands to unzip the compressed file, I found the "unzip" command installed somewhere in the server (not /usr/bin path), and also found gunzip and gzip

For my case, the unzip command works. I was able to extract the files and got Eclipse installed.
However, when I invoke Eclipse (eclipse -vm /usr/java5/bin/java) from the dir installed got the error message "Error: Can't open display:"

I saw someone post a similar question on this site but no response. I'm googling and have not have much success. If someone has any clue please provide some comments.

Regards.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

That message means that the X/Window system can't find a window server on your desktop. How are you connected to the AIX server? If you're using ssh or telnet to connect from a Windows PC, then you don't have an X/Window server installed by default; you have to obtain and install one. This could be a commercial product like eXceed, or an open-source solution like the xfree port in the Cygwin suite.

Let me know exactly where I lost you in the above, and I will walk you through from that point
T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Hello,

I've spent time a last couple days to look into different software for Xwindows. Exceed is a paid software so I stayed away from it and went on with CYGWIN.
I downloaded and installed CYGWIN on my window desktop. After reading the documentation "Cygwin User's Guide" I think that I'm lost ....

I'm NOT sure if I understand Cygwin software completely. It's a software installed on the window box that emulate the windows environment like UNIX. I started Cygwin and see it emulates my windows env like Unix. I did not see any connection to the AIX box so that I can invoke Eclipse installed on AIX earlier.
Am I missing some configuration/setup ???

My need is able to run Eclipse in AIX server to develop some java classes using Ant to invoke Unix shell scripts ...

Any suggestion is very appreciated.

Regards.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You'd have to run an xterm on the AIX box with the display set to your Cygwin box.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The core of cygwin is a library that emulates UNIX on Windows. Along with that library, you can download many individual UNIX programs ported to Cygwin. One of those -- and I don't think it's one that's installed by default -- is an X/Windows server. I believe you have to ask for it specifically in the setup program.

Once you've installed the X/Windows server, you have to run it, generally manually. The Cygwin documentation does include some info about this.

Then, when the X/Windows server is running on your desktop, then you ssh to your AIX machine, set the DISPLAY environment variable in that terminal window to (your local machine):0, and then run Eclipse on the remote system; it should then finally appear on your desktop.

If your PC is on a NAT hub -- i.e., if it doesn't have its own network address reachable from the AIX machine -- then this won't work, and you need to either configure the NAT box to pass incoming connections on port 6000 to your PC, or you need to tunnel port 6000 back through the SSH connection (in which case the DISPLAY setting would be different.)

None of this stuff is terribly hard, but it all needs to be tailored somewhat to your environment, and so you might need to learn a little about each step -- or find a local expert.
T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Thank you very much Ernest and David.

I have to continue to read documentations and try out. It's an uphill battle for me.
"no pain no gain"

Have a nice day.
T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Hello Ernest,

I've got a little further in the trek but need your expertise to tell me what I'm doing wrong at the moment ...

I followed the comments and installed Cygwin-X on my pc that allowed me to start Xwin server. I started it then run this command manually to connect to the AIX.
"ssh -Y -l myuserid AXIservername" enter the Unix password and it's connected to the AIX.

In the AIX when enter "who am I" the host name indicate my full computer name inside the bracket some thing like this (xxx999xx.ca.ecamericas)

The next step is where things not working correctly ....
In the AIX, I enter
DISPLAY="(myuserid@fullcomputername):0.0"; export DISPLAY
-- no problem
Run eclipse by entering eclipse in the approriate dir still get the error message

Error: Can't open display: myuserid@computername:0.0


Do you see anything wrong???

Regards.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

DISPLAY doesn't have a username in it, only the host, like mycomputername:0 . Hopefully that's it, but there are some other issues you might have. If there seems to be a permissions error execute

xhost +

in a Cygwin shell on your PC and then try again.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Man this thread is bringing back terrifying memories.
T Nguyen
Greenhorn

Joined: May 12, 2009
Posts: 7
Hi Guys,
I've not given up yet? Actually, make some good progress but run into another brick wall at the moment ....

....
After connecting to the AXI, for the export DISPLAY, I have to use my computer IP address rather than the computer name. And changing a configuration parameter (ForwardX11 from no to yes)

Things are going well upto here. I'm able to start Eclipse without an error.

Start Eclipse, the Eclipse start page loaded, it displays the default work space, and I select it.
Eclipse is hanged after that and stuck at the first screen.

I'm not sure the problem now is Cygwin or Eclipse. I'm googling but has not found any hint

Regards.
 
wood burning stoves
 
subject: Need help to install Eclipse on AIX-Unix
 
Similar Threads
Thinwire framework
Unix miliseconds
top 20 linux commands
weblogic 6.0 installation on windows ME
Working with Java in UNIX