<< Using Tortoise || Homepage || Make a toolbar for easy access to the stuff you use a lot >>

Get the project into Eclipse

Once you have got the code out of source control Using Tortoise you will want to work with it in Eclipse.

Here’s how

  1. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation.
  2. Get yourself a recent copy of Eclipse, install it and run it
  3. Create a workspace just for MOWa
  4. Import the MOWa project
  5. Set up third-party libraries

Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation.

If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip ahead to Get yourself a recent copy of Eclipse..

You get it from the Oracle Corporation : JDK download page. The Java Runtime Environment (JRE) is insufficient, you must have the JDK. Follow the instructions Microsoft Windows Installation (32-bit)

Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this :

— select the “Advanced” tab, and the “Environment Variables” button

— add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is C:\programs\com\oracle\java\jdk in this case. Be sure to omit any quotation marks around the path even if it contains spaces.

— open a Windows command line window and check your work with these two commands : java -version and dir %JAVA_HOME%

Get yourself a recent copy of Eclipse, install it and run it

There’s no lack of free tutorials on the web for that kind of thing, even videos

Here is the download page. You should get Eclipse IDE for Java EE Developers. I tried to stick with the considerably smaller Eclipse IDE for Java Developers, but hit a tutorial that required EE, then found it wasn’t so necessary. But, who knows, we may run across the same thing later.

Create a workspace just for MOWa

To begin with you’ve probably found yourself looking at something like this...

We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else’s. Subversion lets you hide some items, so they don’t get uploaded to the control server.

First create a new sub directory of meta ...

... call it ws\eclipse ...

Now you can hide it from Tortoise, like this ...

Back in Eclipse you’ll need to follow this sequence ...

Tell Eclipse which workspace you want it to use from now on.

It’ll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory.

Import the MOWa project

Now that we know where Eclipse is working we can give it something to work with ...

Get rid of the Welcome screen tab and you should see this ...

Set up third-party libraries

We aren’t quite ready to work yet.

The tutorial depends on some java archives (*.jars) from the JENA project, from MySql and probably others as we go along.

I’ll try to remember to keep a record of the URLs of all the necessary jars in the readMe file in the meta directory. Please let me know if I forget.

I have a standard structure for organizing my installed tools. In a directory called programs, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes \programs\org\eclipse and http://jena.sourceforge.net/ becomes \programs\net\sourceforge\jena

At this stage of the project we have two sets of jars that we are going to need: the JENA project’s jars and the drivers for connecting java programs to data in the MySql database.

Eclipse keeps track of this stuff in a file called .classpath (which you can find here under source code version control).

Right now it looks like this :

<?xml version=“1.0” encoding=“UTF-8”?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

Notice the lines beginning <classpathentry kind="con". Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That’s up to you and your work environment.

These are the steps to getting those specified:

1. Select the name of the project in the Package Explorer, secondary click, and go to the menu item Configure Build Path...

2. Select the Jena_Lib library under the Libraries tab, and click on the Edit ... button and follow these steps:

3. Add all the jars from the JENA installation lib directory JENAROOT\lib

4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this:

If you have accomplished all of the above you are ready for some next steps.

Optionally, you can Make a toolbar for easy access to the stuff you use a lot.

You will definitely want to Create the MySql Database and then Connect to MySql from Eclipse

<< Using Tortoise || Homepage || Make a toolbar for easy access to the stuff you use a lot >>

Get the project into Eclipse is a public wiki page

This wiki page is a public wiki page. It can be read by anyone including users that have not logged in and web crawlers such as Google.

Entry has no comments

You do not have sufficient permissions to comment

7 years ago
hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: << [Using Tortoise] || [Homepage] || p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse] << [Using Tortoise] || [Homepage] ||<< [Using Tortoise] || [Homepage] || [Make a toolbar for easy access to the stuff you use a lot] >> p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse] << [Using Tortoise] || [Homepage] || [Make a toolbar for easy access to the stuff you use a lot] >>

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: << [Editing Wiki Page Using Tortoise] || [Homepage] || p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse] << [Editing Wiki Page Using Tortoise] || [Homepage] ||<< [Using Tortoise] || [Homepage] || p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse] << [Using Tortoise] || [Homepage] ||

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]<< [Editing Wiki Page Using Tortoise] || [Homepage] || p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse] << [Editing Wiki Page Using Tortoise] || [Homepage] ||

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6390! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ Here is "the download page":http://www.eclipse.org/downloads/. You should get _*Eclipse IDE for Java EE Developers*_. I tried to stick with the considerably smaller _*Eclipse IDE for Java Developers*_, but hit a tutorial that required EE, then found it wasn't *so* necessary. But, who knows, we may run across the same thing later. h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already _*have a copy of the Java Development Kit (JDK)*_, these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it. There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip to http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it. There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip ahead to "Get yourself a recent copy of Eclipse.":http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it. There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

Text: p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), you will need that too. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it. There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]p=. _*Get the project into Eclipse*_ Once you have got the code out of source control [Using Tortoise] you will want to work with it in Eclipse. Here's how {toc} h2. Get yourself a recent copy of the Java Development Kit (JDK), install it and check your installation. If you do not already have a copy of the Java Development Kit (JDK), these steps will get you set up, otherwise you can skip to http://www.xp-dev.com/wiki/115819/Get%20the%20project%20into%20Eclipse#GetyourselfarecentcopyofEclipseinstallitandrunit. You get it from the "Oracle Corporation : JDK download page":http://www.oracle.com/technetwork/java/javase/downloads/index.html. The Java Runtime Environment (JRE) is insufficient, you *must* have the JDK. Follow the instructions "Microsoft Windows Installation (32-bit)":http://www.oracle.com/technetwork/java/javase/documentation/install-windows-152927.html Note that they fail to mention setting up the JAVA_HOME system variable. Open the Windows System Properties option sheet like this : !http://www.xp-dev.com/file/6317! p. -- select the "Advanced" tab, and the "Environment Variables" button !http://www.xp-dev.com/file/6318! !http://www.xp-dev.com/file/6319! !http://www.xp-dev.com/file/6320! p. -- add the JAVA_HOME variable in the system variables with the path to your new JDK installation, which is @C:\programs\com\oracle\java\jdk@ in this case. _Be sure to omit any quotation marks around the path even if it contains spaces._ !http://www.xp-dev.com/file/6335! p. -- open a Windows command line window and check your work with these two commands : @java -version@ and @dir %JAVA_HOME%@ !http://www.xp-dev.com/file/6337! h2. Get yourself a recent copy of Eclipse, install it and run it. There's no lack of free tutorials on the web for that kind of thing, even "videos":http://www.youtube.com/watch?v=GQXX6KyGWBQ h2. Create a workspace just for MOWa p. To begin with you've probably found yourself looking at something like this... !http://www.xp-dev.com/file/6090! p. We want to have all our Eclipse related stuff in the same directory as the code, but NOT under version control, since our preferences for the IDE are unlikely to match everyone else's. Subversion lets you hide some items, so they don't get uploaded to the control server. First create a new sub directory of meta ... !http://www.xp-dev.com/file/6096! ... call it ws\eclipse ... !http://www.xp-dev.com/file/6097! !http://www.xp-dev.com/file/6098! Now you can hide it from Tortoise, like this ... !http://www.xp-dev.com/file/6099! Back in Eclipse you'll need to follow this sequence ... Tell Eclipse which workspace you want it to use from now on. !http://www.xp-dev.com/file/6091! !http://www.xp-dev.com/file/6100! It'll go away for a short time then come back, apparently showing the same thing as before, but a look in your new meta\ws\eclipse directory will show you that Eclipse is now using it with its own .metadata directory. !http://www.xp-dev.com/file/6101! h2. Import the MOWa project Now that we know where Eclipse is working we can give it something to work with ... !http://www.xp-dev.com/file/6092! !http://www.xp-dev.com/file/6093! !http://www.xp-dev.com/file/6094! Get rid of the Welcome screen tab and you should see this ... !http://www.xp-dev.com/file/6095! h2. Set up third-party libraries We aren't quite ready to work yet. !http://www.xp-dev.com/file/6102! The tutorial depends on some java archives (*.jars) from the *JENA* project, from *MySql* and probably others as we go along. bq). I'll try to remember to keep a record of the URLs of all the necessary jars in the "readMe":http://svn3.xp-dev.com/svn/MOWa/trunk/meta/readMe.xhtml file in the meta directory. Please let me know if I forget. I have a standard structure for organizing my installed tools. In a directory called *programs*, I reverse the URL of the website where I got it. So, http://www.eclipse.org/ becomes @\programs\org\eclipse@ and http://jena.sourceforge.net/ becomes @\programs\net\sourceforge\jena@ At this stage of the project we have two sets of jars that we are going to need: the JENA project's jars and the drivers for connecting java programs to data in the MySql database. Eclipse keeps track of this stuff in a file called .classpath (which you can "find here":http://svn3.xp-dev.com/svn/MOWa/trunk/tutorials/ under source code version control). Right now it looks like this : bq.. <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Jena_Lib"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/MySql_Lib"/> <classpathentry kind="output" path="target/classes"/> </classpath> p. Notice the lines beginning @<classpathentry kind="con"@. Those tell Eclipse to look in those libraries to find artifacts it needs. Notice however that it does not indicate where they can be found. That's up to you and your work environment. These are the steps to getting those specified: 1. Select the name of the project in the *Package Explorer*, secondary click, and go to the menu item *Configure Build Path...* !http://www.xp-dev.com/file/6103! 2. Select the *Jena_Lib* library under the Libraries tab, and click on the *Edit ...* button and follow these steps: !http://www.xp-dev.com/file/6123! !http://www.xp-dev.com/file/6124! !http://www.xp-dev.com/file/6125! !http://www.xp-dev.com/file/6126! !http://www.xp-dev.com/file/6127! 3. Add all the jars from the JENA installation lib directory %JENAROOT%\lib !http://www.xp-dev.com/file/6128! !http://www.xp-dev.com/file/6129! 4. Click the various accept buttons back to the project in Eclipse and it should perform an automatic rebuild and leave you with this: !http://www.xp-dev.com/file/6130! !http://www.xp-dev.com/file/6131! !http://www.xp-dev.com/file/6132! If you have accomplished all of the above you are ready for some next steps. Optionally, you can [Make a toolbar for easy access to the stuff you use a lot]. You will definitely want to [Create the MySql Database] and then [Connect to MySql from Eclipse]

hasan.bramwell picture
hasan.bramwell updated Wiki Get the project into Eclipse

View View full history