Author: chirino
Date: Mon Sep 18 19:20:57 2006
New Revision: 447682
URL: http://svn.apache.org/viewvc?view=rev&rev=447682
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html
Modified:
incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html?view=diff&rev=447682&r1=447681&r2=447682
==============================================================================
--- incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html
(original)
+++ incubator/servicemix/site/sm30ug/importing-servicemix-into-eclipse.html Mon
Sep 18 19:20:57 2006
@@ -73,23 +73,28 @@
</LI>
<LI> Select "Existing Projects into Workspace" and click
"Next"
<BR clear="all">
-<BR clear="all"> <IMG src="importing-servicemix-into-eclipse.data/Import.png"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG src="importing-servicemix-into-eclipse.data/Import.png"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>Browse for the root directory, which is the directory in which you
downloaded ServiceMix. "Select All" the files in the Import
pop-up window. They are probably already pre-selected for you (check box is
checked). Un-checking the option "Copy projects into workspace"
allows you to automatically always edit the current version of the SVN checkout
folder, thus avoiding an import after each SVN update. Click "Finish"
in the Import window; the import takes around three minutes.
<BR clear="all">
-<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Import_SelectAll.png"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Import_SelectAll.png"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>From the "Windows" menu and click
"Preferences"<BR>
The Preferences window will pop-up.<BR>
Click on the "Java" plus sign and change to "Compiler".<BR>
Compiler compliance level must be 5.0, pull down menu and select.<BR>
Check the "Use default compliance settings" box.
<BR clear="all">
-<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/JDK_Compliance.JPG"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/JDK_Compliance.JPG"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>Then check under "Installed JREs" that you have JDK 5,
e.g., jre_1.5.x
<BR clear="all">
-<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Installed_JREs.JPG"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Installed_JREs.JPG"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>Click on "Build Path" and then select "Classpath
Variables".
<BR clear="all">
-<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath_Variables.JPG"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath_Variables.JPG"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>Click on "New" button to right
<BR clear="all">
A pop-up appears.<BR>
@@ -97,7 +102,9 @@
Enter the Path of your local maven repository, usually located in <your
home directory>\.m2, for example:<BR>
C:\Documents and Settings\exjobb\.m2\repository
<BR clear="all">
- <IMG
src="importing-servicemix-into-eclipse.data/eclipse-m2-repo-variable.PNG"
align="absmiddle" border="0"><BR clear="all"> </LI>
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/eclipse-m2-repo-variable.PNG"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>Click "OK" button. The necessary build takes around three
minutes.</LI>
</OL>
@@ -110,10 +117,12 @@
under org.apache.servicemix/Main.java.<BR>
Double click on the main() method.
<BR clear="all">
-<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/PackageMainJava.png"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/PackageMainJava.png"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>From the Run menu select "Run..."
<BR clear="all">
-<BR clear="all"> <IMG src="importing-servicemix-into-eclipse.data/RunRun.JPG"
align="absmiddle" border="0"><BR clear="all"> </LI>
+<BR clear="all"> <IMG src="importing-servicemix-into-eclipse.data/RunRun.JPG"
align="absmiddle" border="0"><BR clear="all">
+ </LI>
<LI>You will get a Run window pop-up, from there select Java
Application.
<OL>
<LI>Click on New button in botton left (Eclipse <3.2) or the
icon in the top left (Eclipse v3.2)</LI>
@@ -124,200 +133,97 @@
<LI>In the Working Directory enter the path of your
example. Such as<BR>
S:\apache-servicemix\src\main\release\examples\file-binding<BR>
where S:\ is assumed as your servicemix root directory.<BR>
-You can use the "File System..." button to browse for your
directory.</LI>
+You can use the "File System..." button to browse for your directory.
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Run%20-%20filepoller%20-%20Arguments.png"
align="absmiddle" border="0"><BR clear="all">
+
+<BR clear="all"></LI>
</OL>
</LI>
- </OL>
- </LI>
-</OL>
-
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Run%20-%20filepoller%20-%20Arguments.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
<LI>Click on the tab "<B>Classpath</B>" to give
Eclipse needed information on where to search for executable files. This
description sticks to the file-binding example, but a similar procedure will be
needed for most examples and your own code as well. There are three main ways
to add classes to the classpath:
<OL>
<LI>You can add other projects of the workbench. Doing
this will make the file-binding example run.
<OL>
<LI>Click "User Entries"</LI>
- <LI>Click "Add Projects" and click
the checkbox(es) in front of the project(s) that are required. For convenience
reasons you may click "Select All".</LI>
- </OL>
- </LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<OL>
- <LI> </LI>
-</OL>
-
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Add%20projects.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>Click "OK". Now your Run-dialog
shall look similar to this screenshot:</LI>
+ <LI>Click "Add Projects" and click
the checkbox(es) in front of the project(s) that are required. For convenience
reasons you may click "Select All".
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Add%20projects.png"
align="absmiddle" border="0"><BR clear="all">
+
+<BR clear="all"></LI>
+ <LI>Click "OK". Now your Run-dialog
shall look similar to this screenshot:
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20result%20all%20projects.png"
align="absmiddle" border="0">
+<BR clear="all"> </LI>
</OL>
</LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20result%20all%20projects.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
<LI>You can add JARs and classes that are stored within
a classpath environment variable. This is not required for the file-binding
example, but possible, e.g. if you want to run a specific ServiceMix version
from a JAR for bug reproduction or the like - this case is used for the
following description. Often, this way is used to reference depenedencies Maven
downloads automatically for you.
<OL>
<LI>Click "User Entries"</LI>
- <LI>Click "Advanced", "Add
Classpath Variables" and "OK"</LI>
- </OL>
- </LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20var.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>Check M2_REPRO and click
"Extend"</LI>
- </OL>
- </LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20-%20Variable.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>Choose the JAR containing the bytecode for
the missing classes. If you want to run SOME_VERSION of ServiceMix, choose
/org/apache/servicemix/servicemix-core/SOME_VERSION/servicemix-core-SOME_VERSION.jar</LI>
- </OL>
- </LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<P>In case you want to reference a dependency, proceed in the same way. In
case you do not know which package you shall select, see below.</P>
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20-%20Variable%20-%20Extend.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
- <OL>
+ <LI>Click "Advanced", "Add
Classpath Variables" and "OK"
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20var.png"
align="absmiddle" border="0"><BR clear="all">
+
+<BR clear="all"></LI>
+ <LI>Check M2_REPRO and click "Extend"
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20-%20Variable.png"
align="absmiddle" border="0"><BR clear="all">
+
+<BR clear="all"></LI>
+ <LI>Choose the JAR containing the bytecode for
the missing classes. If you want to run SOME_VERSION of ServiceMix, choose
/org/apache/servicemix/servicemix-core/SOME_VERSION/servicemix-core-SOME_VERSION.jar
+<BR clear="all">
+
+<BR clear="all">
+In case you want to reference a dependency, proceed in the same way. In case
you do not know which package you shall select, see below.
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20-%20Variable%20-%20Extend.png"
align="absmiddle" border="0"><BR clear="all">
+
+<BR clear="all"></LI>
<LI>Click "OK"</LI>
</OL>
</LI>
- <LI>You can add arbitrary folders to the classpath.
This is usually only needed for your own code. To explain the workflow,
let's assume you did not add any projects, thus your file-binding example
does not run and the console window contains this message:</LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
+ <LI>You can add arbitrary folders to the classpath.
This is usually only needed for your own code. To explain the workflow,
let's assume you did not add any projects, thus your file-binding example
does not run and the console window contains this message:
<DIV class="preformatted"><DIV class="preformattedContent">
<PRE>Error 'Bean class [org.apache.servicemix.components.file.FileWriter]
not found'
</PRE>
</DIV></DIV>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
<OL>
<LI>Click "User Entries"</LI>
- <LI>Click "Advanced", "Add
External Folder" and "OK"</LI>
- </OL>
- </LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20ext%20folder.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
- <OL>
+ <LI>Click "Advanced", "Add
External Folder" and "OK"
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20ext%20folder.png"
align="absmiddle" border="0"><BR clear="all">
+
+<BR clear="all"></LI>
<LI>When S:\ is your servicemix root directory,
select/enter<BR>
-<EM>S:\servicemix-components\target\classes</EM></LI>
- </OL>
- </LI>
- </OL>
- </LI>
- </OL>
- </LI>
-</OL>
-
-
-<P>Why this directory? Well, have a closer look at the error message presented
above. The package <EM>org.apache.servicemix.components</EM> indicates the
location of the missing bean <EM>FileWriter</EM> is
<EM>servicemix-components</EM>, and as we need an executable file, the
<EM>target\classes</EM> subdirectory is where to look. Of course we shall proof
that <EM>FileWriter</EM> really is located here, so execute <EM>dir /s
FileWriter.class</EM> in the given directory and watch the output.</P>
-
-<P><IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20-%20external%20folder.png"
align="absmiddle" border="0"></P>
-<OL>
- <LI>
- <OL>
- <LI>
- <OL>
- <LI>
- <OL>
+<EM>S:\servicemix-components\target\classes</EM><BR clear="all">
+
+<BR clear="all">
+Why this directory? Well, have a closer look at the error message presented
above. The package <EM>org.apache.servicemix.components</EM> indicates the
location of the missing bean <EM>FileWriter</EM> is
<EM>servicemix-components</EM>, and as we need an executable file, the
<EM>target\classes</EM> subdirectory is where to look. Of course we shall proof
that <EM>FileWriter</EM> really is located here, so execute <EM>dir /s
FileWriter.class</EM> in the given directory and watch the output.
+<BR clear="all">
+
+<BR clear="all"> <IMG
src="importing-servicemix-into-eclipse.data/Classpath%20-%20Advanced%20Options%20-%20external%20folder.png"
align="absmiddle" border="0">
+<BR clear="all">
+ </LI>
<LI>Click "OK".</LI>
- <LI>aaa</LI>
</OL>
</LI>
</OL>
</LI>
</OL>
</LI>
+ <LI>Click Apply.</LI>
+ <LI>Click Run.</LI>
</OL>
<P><B>TODO</B></P>
-<P>Click Apply.</P>
-
-<P>Click Run.</P>
-
<P>error message </P>
<DIV class="preformatted"><DIV class="preformattedContent">
<PRE>java.lang.NoClassDefFoundError: org/apache/servicemix/Main
@@ -377,8 +283,34 @@
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg
Dembowski</A>,
last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg
Dembowski</A> on Sep 18, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13740&originalId=13749">view
change</A>)
-
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13740&originalId=13753">view
change</A>)
+ <SPAN id="show" class="inline-control-link"><A href=""
onclick="showComment(); return false;">show comment</A></SPAN>
+ <SPAN id="hide" class="inline-control-link" style="display:none;"><A
href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
+ <DIV id="versionComment" class="noteMacro" style="display:none;
padding: 5px;">
+ <B>Comment:</B>
+ formatting shall be okay now (wiki markup edit)<BR>
+ <SPAN class="smalltext"><A
href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=13740">View
page history</A></SPAN>
+ </DIV>
+
+ <SCRIPT>
+ var show = document.getElementById('show');
+ var hide = document.getElementById('hide');
+ var versionComment = document.getElementById('versionComment');
+
+ function showComment(){
+ show.style.display = 'none';
+ hide.style.display = 'inline';
+ versionComment.style.display = 'block';
+ }
+
+ function hideComment(){
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ versionComment.style.display = 'none';
+ }
+
+ </SCRIPT>
+
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=13740">edit
page</A>)
</DIV>