Ikool’s Blogbed

Tips to Access FTP/SSH on Different Ports using Eclipse RSE

FTP and SSH servers can use different port other than the default and most of these servers are configured using default ports, but often times FTP/SSH servers may be on different port, so how do you configure Eclipse RSE to access these servers? That’s what this little article is about.

  1. Make sure you know the FTP/Port port first, create an account on the server
  2. Start up Eclipse with RSE
  3. Go to Window -> Open Perspective -> Remote System Explorer to bring up Remote Systems Panel
  4. Expand SSH/FTP node(s) if you created them already, otherwise, please refer to XXXXXX to create an FTP or SSH connection, your Remote Systems panel will look like this:
  5. For FTP right click Files node under your FTP root node and choose properties from context menu, for SSH you can click on Sftp Files, Ssh Shells or Ssh Terminals node. You will now be presented the following dialog:
  6. Select Subsystem node on the left panel of the properties dialog, note the port field on the right side of the dialog, change the value to whatever port you have in hand (see above image for details)
  7. Click OK to accept the changes you just made, and right click FTP/SSH node and choose connect, now you should be able to connect to your FTP/SSH server

Hope you enjoy it

July 25, 2008 Posted by | How Tos, IDE Tools, Technology | , , , , | 5 Comments

SSH Access through Eclipse RSE

I wrote an article on how to install Eclipse RSE (Remote System Explorer), and how to access Eclipse DStore agent using Eclipse RSE. Since then I also explored how to access SSH servers as most of our environments are only SSH enabled. It would be convenient if I can access the remote system using SSH within Eclipse while I am working on projects. I shall be able to run any commands that are supported by my system through Eclipse RSE, and I should also be able to execute programs that I am working on from within Eclipse through Eclipse RSE. According to what I tried so for, that’s what Eclipse RSE is going to do for you. With these features (such as browsing files, shell and terminal, and even FTP) you don’t have to open any extra windows/terminals on your desktop. One concern of Eclipse is memory usage which may be very big, so for I haven’t yet. Ok, let’s start the session.

  1. First make sure you install Eclipse Ganymede for J2EE. Follow this link to install Eclipse RSE
  2. Make sure you have an SSH account. If you don’t have it, you need to consult your system administrator. Or you can install a local SSH server, you can get a copy of SSH server from SSH for Win32. Use Putty to confirm that you can access your SSH server if you haven’t done so.
  3. Start Eclipse
  4. Let’s first bring up the RSE Explorer, go to Eclipse Window -> Open Perspective -> Remote System Explorer, if you don’t see it, then do Eclipse Window -> Open Perspective -> Other. From Open Perspective dialog select Remote System Explorer and click OK
  5. Now you should see a default “Local” Connector Service in Eclipse RSE explorer, from here you can navigate through your local systems such as home, and different drives Continue reading

July 22, 2008 Posted by | How Tos, IDE Tools, Technology | , , , , | 8 Comments

Comparison of Javascript Supports in Netbeans and Eclipse

Have you ever tried to find a good javascript editor with code assistance? I was looking for a good HTML & javascript IDE/editor for long time, I haven’t find one till recently. Couple of years ago I used Netbeans to format HTML pages so that I can easily find out how HTML tags are matched, this can be very useful when you need just to figure out how some of the nice web page blocks are made. I am sure now some of you can easily get this information using firebug add-on in Firefox. But if you are still trying to find the matching HTML tags from HTML code, then you probably still have the same headache. However, the good news is Netbeans’ HTML editor is very helpful on this, you can easily format your HTML pages with a few key strikes using Netbeans IDE. In this article I’d like to focus on the difference of Javascript supports between Netbeans (6.5) and Eclipse 3.4.

Basically Eclipse’s JSDT (Javascript Development Toolkit) is not ready for any good use, I only gave it a few trys and then gave up. Here are the causes:

  1. It complains about javascript global variables such as document, window, navigator from javascript code/functions
  2. It complains “Can’t make a static reference to the non-static function” when you define a variable of javascript classes and try to access their member functions.
  3. It also complains when using alert function. I guess it will complain when you use other built-in functions
  4. It doesn’t quite support code completion as claimed
  5. I didn’t even try to try the debugging features because of above issues

For comparison, I installed Netbeans IDE and am using the latest Dev build, I didn’t try Netbeans 6.1 release because I will have to install PHP plugin to have good support of javascript, plus I also read NetBeans 6.5 (Milestones) has good support of it. Based on what I see, support of javascript in Netbeans 6.5 is much better than Eclipse although it also has its own issues. for example, one drawback is it currently only supports firefox, another is to make it work you have to install both firefox NetBeans extension and firebug add-ons. But Netbeans works fine regarding the above Eclipse issues: Continue reading

July 6, 2008 Posted by | IDE Tools, Opinions, Technology | , , , , , , | 10 Comments

Eclipse Skins to make your Eclipse IDE spicy

Eclipse skins/themes provide custom look and feels to your Eclipse platform and make your monotonous working environment spicy. My old versions of Eclipse (3.1.2 and 3.3.2, not so old, right?) do have 2-3 working skins that I like, note that VS Improved Presentation doesn’t work on 3.3.2 as expected, also see notes from VS Improved Presentation. After upgraded to Eclipse 3.4 – Ganymede – skin VS Improved Presentation still behaves very weird, even with the latest version of it, I am assuming the author still doesn’t have time to fix it.

Here are other skins that I am using:

Installing them is very simple. If you know how to manually install Eclipse plugin, then you are all set, just unzip the plugin into eclipse’s plugins directory or copy the jar file that directory.

After installing it, you need to restart eclipse. Then go to “Window->Preferences->General->Appearance” and change “Current presentation” to a Presentation that you like, now you need to restart eclipse again.

After it’s up and you can go to preference and select a theme to best suit your taste. You are warned there are not many themes available though, ha, better than nothing.

You are all done, enjoy it!

July 6, 2008 Posted by | How Tos, IDE Tools, Technology | , , , , , , | 1 Comment

How to install DStore for Eclipse RSE (Remote System Explorer)

I just noticed that Eclipse 3.4 Ganymede J2EE package includes RSE – Remote System Explorer – a framework and toolkit that allows you to connect and work with a variety of remote systems, including

  • remote file systems through SSH, FTP or dstore agents (seamless editing of remote files including remote search and compare),
  • remote shell access (compiling with error navigation),
  • remote process handling through dstore agents,
  • and remote debugging through CDT/gdb/gdbserver.

I am not sure if it’s included in any 3.3.x releases but I know we should be able to install it just like any other eclipse plugins. Out of the box, you can use RSE to browse through your local system. And you can also easily set up an FTP connection to an FTP server, and then you are ready to use it just with any other FTP clients such as Filezilla client, CuteFTP and FTPExplorer.

Ok, let’s get started on installing DStore Server for remote system explorer. Continue reading

June 26, 2008 Posted by | IDE Tools, Technology | , , , , , , | 1 Comment

JDeveloper and Eclipse shortcuts compared

Eclipse is very popular IDE for java community and it also supports other languages such as PHP, C and C++. I use Eclipse for my development for many years, and I just love it so much. I will always ponder if Eclipse could do the same for me anytime I need to work on different projects. Even recently on a project which must use Oracle ADF framework, but it turns out this time I have to use JDeveloper to develop the project. Well, what I really expect from JDeveloper is what I can get from Eclipse. So here is the list of shortcuts that I always want to have no matter if I am using Eclipse, Netbeans and JDeveloper.

Continue reading

June 23, 2008 Posted by | How Tos, IDE Tools | , , , , | 2 Comments

Top 20 Eclipse Shortcuts

Here are the top 20 Eclipse shortcuts that I used most of the time during java development, and some of them can even be used for other languanges such as PHP

  1. Ctrl + Shift + F : format code. If nothing is selected then whole document will be formatted. Otherwise, only the selection of your code will be formatted. It’s not quite smart when talking about formatting the selected code
  2. CTRL + L : Go to line. Wow, man, you need to remember this one, especially when trouble shooting
  3. Alt + left and Alt + Right: Navigation
    Ctrl + Left and Ctrl + Right can be used to navigate through where you visit. For example, you navigate to the definition or declaration of a method, and even go deeper to other functions using F3. Now you want to go back one level, you can do so using Ctrl+left. If let’s say you come back a few levels and now you want to go back further again, you can do that using Ctrl+Right combination. It’s very quick way to navigating through your code
  4. Ctrl + Shift + R : Open Resource, very helpful on finding the class/interface
  5. Ctrl + Shift + O : Organize imports
  6. Ctrl + T : Open Type Hierarchy
  7. Ctrl + Shift + F4 : Close all Opened documents
  8. Ctrl + O : Open declarations
  9. Ctrl + E : Open Editor, let you quickly switch among the opened documents
  10. Ctrl + / : Line Comment. It also allows to comment your selection using ‘/’
  11. Ctrl + Shift + / : Comment your selection using /* and */ instead of ‘/’
  12. Alt + Shift + R : Rename
  13. Alt + Shift + L : extract to Local Variable
  14. Alt + Shift + M : extract to Method
  15. F3 : Open Declaration
  16. Ctrl + S : Save your document
  17. F5 : Reload your project. It’s useful after you modify or sync your code
  18. Tab or Shift Tab : Indent your line or selection
  19. Ctrl + Space : Code assistence
  20. Ctrl + Shift + L : list all the shortcuts

The list keeps going on. It will significantly increases your productivity 🙂

June 23, 2008 Posted by | IDE Tools | , , | Leave a comment

Apache Struts web application development using Oracle9i JDeveloper

JDeveloper is a decent and convenient IDE tools which can be used to develop standalone java , J2EE, UML modeling and web services development. With its supports of visual and declarative development with Oracle ADF (Application Development Framework) and JavaServer Faces, the development of web applications is getting easier and quicker.
Personally I have visited JDeveloper a few times, I had many puzzles the first time I was trying to use it, to see the details please visit:

Apache Struts web application development using Oracle9i JDeveloper

June 12, 2008 Posted by | IDE Tools, Technology | , , , , , , , , , , , | 1 Comment