Q: I am using Eclipse on Windows and I'd like to check out SVN project with Eclipse. How the hell do I do it?
You use 'svnadmin' command to create an SVN repository where you will put in SVN projects. If you don't know how to do it google 'svnadmin create'. Let's assume your (intended) SVN server is running on Linux and you'd like the repository to be /home/michaelwen/svn. Subversion uses this directory to store information about your projects such as file revisions. You won't need to directly deal with this directory; so let's keep it in a safe place and not mess with its contents unless you know what you are doing. The command is the following:
svnadmin create /home/michaelwen/svn
Let's create a directory in your SVN repository to store a project named 'myproj':
svn mkdir file:///home/michaelwen/svn/myproj
Now go to the local folder where you keep the source code you'd like stored in the repository and add an SVN project via the 'svn import' command. An example is the following:
cd /home/michaelwen/where-my-code-for-myproj-is/myproj
svn import file:///home/michaelwen/svn/myproj -m "first import of myproj"
This command will put all contents in /home/michaelwen/where-my-code-for-myproj-is/myproj in file:///home/michaelwen/svn/myproj recursively.
◀ Check Out SVN In Eclipse On WindowsDownload And Install Tortoisesvn ▶
Tampilkan postingan dengan label Eclipse. Tampilkan semua postingan
Tampilkan postingan dengan label Eclipse. Tampilkan semua postingan
Kamis, 03 Februari 2011
Validate Svn Integration With Eclipse
Q: I am using Eclipse on Windows and I'd like to check out SVN project with Eclipse. How the hell do I do it?
As I mentioned earlier you may not need TortoiseSVN at all if your Eclipse works fine with SVN. Read on to make sure this is the case. Even if this is not the case we've got a fall back solution for you.
To use SVN with Eclipse simply download and install Subclipse. Refer to any web tutorial on this topic if you haven't done so. Now when you use Subclipse to check out code from your SVN repository you may get the following error dialog:

If you do don't panic. This dialog is saying Subclipse fails to create ssh tunnel. A quick solution is simply change SVN interface from 'JavaHL (JNI)' to 'SVNKit (Pure Java) SVNKit' in Window -> Preferences -> Team -> SVN -> SVN Interface as follows:

Once you made the change you should be able to use SVN operations smoothly within Eclipse! If you still don't for some reason, and I've heard cases like that, fall back on using TortoiseSVN to manage SVN checking out, updating, and committing changes to your code in Windows Explorer and use Eclipse to edit your code! It'll still be efficient once you get the hang of it.
◀ Check Out SVN Project Via TortoiseSVN
As I mentioned earlier you may not need TortoiseSVN at all if your Eclipse works fine with SVN. Read on to make sure this is the case. Even if this is not the case we've got a fall back solution for you.
To use SVN with Eclipse simply download and install Subclipse. Refer to any web tutorial on this topic if you haven't done so. Now when you use Subclipse to check out code from your SVN repository you may get the following error dialog:
If you do don't panic. This dialog is saying Subclipse fails to create ssh tunnel. A quick solution is simply change SVN interface from 'JavaHL (JNI)' to 'SVNKit (Pure Java) SVNKit' in Window -> Preferences -> Team -> SVN -> SVN Interface as follows:
Once you made the change you should be able to use SVN operations smoothly within Eclipse! If you still don't for some reason, and I've heard cases like that, fall back on using TortoiseSVN to manage SVN checking out, updating, and committing changes to your code in Windows Explorer and use Eclipse to edit your code! It'll still be efficient once you get the hang of it.
◀ Check Out SVN Project Via TortoiseSVN
Check Out SVN Project Via TortoiseSVN
Q: I am using Eclipse on Windows and I'd like to check out SVN project with Eclipse. How the hell do I do it?
Once you have TortoiseSVN installed you can easily check out an SVN project into any local directory you want. Let's say you'd like to download some project into your D:. Right click on D: in any Windows Explorer window and pick 'SVN Checkout...' as follows:

xxx.xxx.xxx.xxx is the IP address where I hosted my project at. You should use your own SVN URL.
Click OK and you should see the checkout in progress like the following:

Once it says checkout done you are done! Now check your D: and the project should be checked out at D:\repository.
◀ Download And Install TortoiseSVNValidate SVN Integration With Eclipse ▶
Once you have TortoiseSVN installed you can easily check out an SVN project into any local directory you want. Let's say you'd like to download some project into your D:. Right click on D: in any Windows Explorer window and pick 'SVN Checkout...' as follows:
xxx.xxx.xxx.xxx is the IP address where I hosted my project at. You should use your own SVN URL.
Click OK and you should see the checkout in progress like the following:
Once it says checkout done you are done! Now check your D: and the project should be checked out at D:\repository.
◀ Download And Install TortoiseSVNValidate SVN Integration With Eclipse ▶
Download And Install TortoiseSVN
Q: I am using Eclipse on Windows and I'd like to check out SVN project with Eclipse. How the hell do I do it?
TortoiseSVN is one of the most common Subversion clients you can find that runs on Windows OS. Once you install it you'll be able to see SVN operation options in the context menu (the menu that shows up when you right-click your mouse) and be able to perform any of those options. Technically you will NOT need TortoiseSVN once you get Eclipse integrated with Subversion on Windows but TortoiseSVN still provides great utility to you. If you don't feel like using it feel free to move on.
Instructions
Simply go to the download site of TortoiseSVN and download and install it. Note that you must download the version that matches your OS architecture (either 32-bit or 64-bit). If not you will NOT see the TortoiseSVN options in the context menu when you right-click some directory like it says you would:

After installing and rebooting you'll be able to see the following SVN operation options in the context-menu just like the following:

◀ Create An SVN Project On An SVN ServerCheck Out SVN Project Via TortoiseSVN ▶
TortoiseSVN is one of the most common Subversion clients you can find that runs on Windows OS. Once you install it you'll be able to see SVN operation options in the context menu (the menu that shows up when you right-click your mouse) and be able to perform any of those options. Technically you will NOT need TortoiseSVN once you get Eclipse integrated with Subversion on Windows but TortoiseSVN still provides great utility to you. If you don't feel like using it feel free to move on.
Instructions
Simply go to the download site of TortoiseSVN and download and install it. Note that you must download the version that matches your OS architecture (either 32-bit or 64-bit). If not you will NOT see the TortoiseSVN options in the context menu when you right-click some directory like it says you would:
After installing and rebooting you'll be able to see the following SVN operation options in the context-menu just like the following:
◀ Create An SVN Project On An SVN ServerCheck Out SVN Project Via TortoiseSVN ▶
Check Out Svn In Eclipse On Windows
Q: I am using Eclipse on Windows and I'd like to check out SVN project with Eclipse. How the hell do I do it?
Not sure where to start but I've had an amazingly difficult time to do this task. I am running Eclipse on Windows and I have my Subversion (SVN will be used in short from this point on) project running in some remote server. All I want to do is check out that SVN project and be able to integrate it with Eclipse so that I can do SVN operations within Eclipse instead of do them via command line. The problem is that the web server I am running on that remote server is Nginx, which does NOT have a standard way of integrating with SVN yet like Apache does. Therefore all I have is svn+ssh protocol to manage my SVN project, but the Subclipse plug-in for Eclipse seems to ONLY accept HTTP protocol as the SVN URL. Later I found out once I change the SVN interface it all works fine (described at Validate SVN Integration With Eclipse).
Can I blame it on Nginx? Can I blame it on Eclipse? Anyway finally I managed to solve this issue in the following steps. Preconditions are that I am running Windows 7.
1. Create an SVN project on your SVN server
2. Download and install TortoiseSVN: You may not need TortoiseSVN if your Eclipse is integrated with Subversion successfully but it's still a great tool to have.
3. Check out your SVN project through TortoiseSVN: Again you may not need TortoiseSVN if your Eclipse is integrated with Subversion successfully but in case it doesn't you have TortoiseSVN to fall back on.
4. Validate SVN Integration With Eclipse
Let's get started on how I managed to handle this monstrous issue!
Create An Svn Project On An SVN Server ▶
Not sure where to start but I've had an amazingly difficult time to do this task. I am running Eclipse on Windows and I have my Subversion (SVN will be used in short from this point on) project running in some remote server. All I want to do is check out that SVN project and be able to integrate it with Eclipse so that I can do SVN operations within Eclipse instead of do them via command line. The problem is that the web server I am running on that remote server is Nginx, which does NOT have a standard way of integrating with SVN yet like Apache does. Therefore all I have is svn+ssh protocol to manage my SVN project, but the Subclipse plug-in for Eclipse seems to ONLY accept HTTP protocol as the SVN URL. Later I found out once I change the SVN interface it all works fine (described at Validate SVN Integration With Eclipse).
Can I blame it on Nginx? Can I blame it on Eclipse? Anyway finally I managed to solve this issue in the following steps. Preconditions are that I am running Windows 7.
1. Create an SVN project on your SVN server
2. Download and install TortoiseSVN: You may not need TortoiseSVN if your Eclipse is integrated with Subversion successfully but it's still a great tool to have.
3. Check out your SVN project through TortoiseSVN: Again you may not need TortoiseSVN if your Eclipse is integrated with Subversion successfully but in case it doesn't you have TortoiseSVN to fall back on.
4. Validate SVN Integration With Eclipse
Let's get started on how I managed to handle this monstrous issue!
Create An Svn Project On An SVN Server ▶
Selasa, 28 September 2010
Eclipse Content Assist Is Not Working In Unix
Q: I CANNOT uses Content Assist in Eclipse while pressing Control + Space. Why?? It's driving me nuts!!
More specifically I installed Eclipse IDE for C/C++ Developers Helios Version on my Linux machine which is running 64 bit Ubuntu 10.04 LTS. Pressing Control + Space in Eclipse should activate content assist so that it helps me finish what I want to type. It works in Eclipse installed on Windows OS and Mac OS. How comes it doesn't work in Eclipse installed on Unix?
There are several possible causes. Here they are in the descending order of probability:
* Make sure your bound keys are Control + Space: As funny as it sounds in Eclipse C/C++ IDE Helios running on 64-bit Unix Ubuntu, the keys bound to activate content assist by default are Alt + / (forward slash) not Control + Space! Therefore simply open Windows -> Preferences window and go to C/C++ -> Editors -> Content Assist -> Advanced and here's the window you should see:

Then click on Keys link at the right (or simply go to General -> Keys). Then you'll see a window allowing you to change binding keys of any available command like the following:

* Make sure Control + Space is not used by another application: The most common one is Windows text input function. If you enable English and another language as input languages make sure they are not using Control + Space to change between them.
That's it! Questions? Let me know!
More specifically I installed Eclipse IDE for C/C++ Developers Helios Version on my Linux machine which is running 64 bit Ubuntu 10.04 LTS. Pressing Control + Space in Eclipse should activate content assist so that it helps me finish what I want to type. It works in Eclipse installed on Windows OS and Mac OS. How comes it doesn't work in Eclipse installed on Unix?
There are several possible causes. Here they are in the descending order of probability:
* Make sure your bound keys are Control + Space: As funny as it sounds in Eclipse C/C++ IDE Helios running on 64-bit Unix Ubuntu, the keys bound to activate content assist by default are Alt + / (forward slash) not Control + Space! Therefore simply open Windows -> Preferences window and go to C/C++ -> Editors -> Content Assist -> Advanced and here's the window you should see:
Then click on Keys link at the right (or simply go to General -> Keys). Then you'll see a window allowing you to change binding keys of any available command like the following:
* Make sure Control + Space is not used by another application: The most common one is Windows text input function. If you enable English and another language as input languages make sure they are not using Control + Space to change between them.
That's it! Questions? Let me know!
Rabu, 18 Agustus 2010
How To Install And Configure Eclipse
Eclipse is a free open source full featured IDE for developing software, mostly for Java and PHP. It's incredibly powerful and is comparable to many other costly IDEs that do similar things. If you are developing Java applications I sincerely recommend that you use Eclipse! Follow the following steps to install and configure Eclipse correctly:
Download the latest version of 32-bit Eclipse IDE for Java Developers from Eclipse's download website at http://www.eclipse.org/downloads/. Unzip eclipse-java-helios-win32.zip and save contents to C:\eclipse-java-helios-win32\.
Warning: Even if you are using a 64-bit machine you still should download 32-bit version of both Eclipse and Java JDK otherwise you'll get the following error:
Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.6.0_20\bin\..\jre\bin\client\jvm.dll"
Open Eclipse by clicking C:\eclipse-java-helios-win32\eclipse.exe. Its interface looks like the following:

Create a new Java project and specifies the code root as the project Location. One thing you should do is use the JRE you installed earlier instead of the JRE that comes with Eclipse. Follow the following steps:
Project -> Properties -> Libraries -> Click JRE System Library [jdk1.6.0_20] -> Edit... -> Alternate JRE -> Installed JREs -> Add... -> standard vm -> C:\Program Files (x86)\Java\jdk1.6.0_20\jre -> finish -> pick jdk1.6.0_20 in Alternate JRE drop down menu.
The actual window looks like:

This provides JRE for the code you run in eclipse. If something's not resolved you need to drop the corresponding jar in C:\Program Files (x86)\Java\jdk1.6.0_20\jre\lib\ext
Congratulations! You've successfully installed Apache, MySQL, PHP, Java, Hibernate, and Eclipse. You are ready to crank out some serious killer app! Questions? Let me know!
◀ Install and Configure Hibernate
Download the latest version of 32-bit Eclipse IDE for Java Developers from Eclipse's download website at http://www.eclipse.org/downloads/. Unzip eclipse-java-helios-win32.zip and save contents to C:\eclipse-java-helios-win32\.
Warning: Even if you are using a 64-bit machine you still should download 32-bit version of both Eclipse and Java JDK otherwise you'll get the following error:
Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.6.0_20\bin\..\jre\bin\client\jvm.dll"
Open Eclipse by clicking C:\eclipse-java-helios-win32\eclipse.exe. Its interface looks like the following:
Create a new Java project and specifies the code root as the project Location. One thing you should do is use the JRE you installed earlier instead of the JRE that comes with Eclipse. Follow the following steps:
Project -> Properties -> Libraries -> Click JRE System Library [jdk1.6.0_20] -> Edit... -> Alternate JRE -> Installed JREs -> Add... -> standard vm -> C:\Program Files (x86)\Java\jdk1.6.0_20\jre -> finish -> pick jdk1.6.0_20 in Alternate JRE drop down menu.
The actual window looks like:
This provides JRE for the code you run in eclipse. If something's not resolved you need to drop the corresponding jar in C:\Program Files (x86)\Java\jdk1.6.0_20\jre\lib\ext
Congratulations! You've successfully installed Apache, MySQL, PHP, Java, Hibernate, and Eclipse. You are ready to crank out some serious killer app! Questions? Let me know!
◀ Install and Configure Hibernate
How to Install WAMP, Java, Hibernate, and Eclipse
This is not an uncommon request for someone who wants to run a web server with an underlying database, backed by a server side programming language, assisted by several important one off or periodic tasks - me. Okay if it's just me then it might have been uncommon, but I have gone through a lot to finally have all these tools set up, so I'd like to share my experiences with you.
First of all I'd like to tell you why I am doing this. I'd like my web server (Apache) to serve dynamic content (PHP) driven by my database (MySQL) and dynamic content driven by one off or regular tasks (Java) with an easy way to manipulate my database content via Java objects (Hibernate), and I'd like to develop my Java code in a user friendly IDE (Eclipse). Last but not least I'd like to do ALL of these FREE, and they certainly are![]()
Let's get right down to it! Click on the next section.
Install and Configure WAMP ▶
First of all I'd like to tell you why I am doing this. I'd like my web server (Apache) to serve dynamic content (PHP) driven by my database (MySQL) and dynamic content driven by one off or regular tasks (Java) with an easy way to manipulate my database content via Java objects (Hibernate), and I'd like to develop my Java code in a user friendly IDE (Eclipse). Last but not least I'd like to do ALL of these FREE, and they certainly are
Let's get right down to it! Click on the next section.
Install and Configure WAMP ▶
Langganan:
Postingan (Atom)