<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5247</bug_id>
          
          <creation_ts>2013-09-20 22:47:35 +0000</creation_ts>
          <short_desc>build.sh fails to build from the Kepler Yocto Eclipse plugin Git repository</short_desc>
          <delta_ts>2013-09-26 20:47:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=cfd2b88717a709049155a8ff15134b617fc6e172</bug_file_loc>
          <status_whiteboard>26 September 2013</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Rifenbark">srifenbark</reporter>
          <assigned_to name="Beth Flanagan">elizabeth.flanagan</assigned_to>
          <cc>elizabeth.flanagan</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>srifenbark</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37028</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-09-20 22:47:35 +0000</bug_when>
    <thetext>Working through the steps to build the Yocto Eclipse plugin (kepler) from scratch (http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html/#zip-file-method) step 7 fails with the following:

&lt;snip&gt;

/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/build/plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/TerminalHandler.java
(at line 120)
    [javac]     TerminalElement element = TerminalServiceHelper
    [javac]                         .createTerminalElement(tab,
terminalSubSystem);
    [javac]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Discouraged access: The method
createTerminalElement(CTabItem, ITerminalServiceSubSystem) from the
type TerminalServiceHelper is not accessible due to restriction on
classpath entry
/home/scott-lenovo/yocto-eclipse/scripts/eclipse-4.3-linux-gtk-x86_64/eclipse/plugins/org.eclipse.rse.terminals.ui_1.2.100.201305201712.jar
    [javac] ----------
    [javac] 64 problems (1 error, 63 warnings)
    [javac] Compilation failed. Compiler errors are available in
/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/build/plugins/org.yocto.remote.utils/@dot.log

BUILD FAILED
/home/scott-lenovo/yocto-eclipse/scripts/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/build.xml:36:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/build.xml:105:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/src/features/org.yocto.bc.headless.build/customTargets.xml:12:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/eclipse-4.3-linux-gtk-x86_64/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/templates/headless-build/allElements.xml:16:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/eclipse-4.3-linux-gtk-x86_64/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/genericTargets.xml:118:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/eclipse-4.3-linux-gtk-x86_64/eclipse/plugins/org.eclipse.pde.build_3.8.100.v20130514-1028/scripts/genericTargets.xml:123:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/build/features/org.yocto.bc/build.xml:32:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/build/features/org.yocto.bc/build.xml:14:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/build/plugins/org.yocto.remote.utils/build.xml:252:
The following error occurred while executing this line:
/home/scott-lenovo/yocto-eclipse/scripts/master_build_201309192154/build/plugins/org.yocto.remote.utils/build.xml:213:
Compile failed; see the compiler error output for details.

Total time: 3 seconds
An error has occurred. See the log file
/home/scott-lenovo/workspace/.metadata/.log.
./build.sh: 22: shift: can&apos;t shift that many
scott-lenovo@scott-lenovo:~/yocto-eclipse/scripts [dora]
$ ls
build.sh  eclipse-4.3-linux-gtk-x86_64  generate-doc.sh            readme.txt
eclipse   find-version                  master_build_201309192154  setup.sh
scott-lenovo@scott-lenovo:~/yocto-eclipse/scripts [dora]
$ ECLIPSE_HOME=/home/scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37029</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-09-20 22:48:20 +0000</bug_when>
    <thetext>Re-assigned to Beth per Beth&apos;s request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37032</commentid>
    <comment_count>2</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2013-09-20 23:15:42 +0000</bug_when>
    <thetext>This is because OpenJDK is broken for the plugin. Solution.:

We must use Oracle JDK. This is for ALL distros.

You get that from:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

You will want jdk-7u40-linux-x64.tar.gz

You save and extract it somewhere (Here we&apos;ll assume in ~):

cd ~; tar xzvf jdk-7u40-linux-x64.tar.gz;
export PATH=~/jdk-7u40-linux-x64/bin:$PATH

Now, you have the correct java and can run build.sh

So, we need to add these steps to the documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37129</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-09-24 15:17:13 +0000</bug_when>
    <thetext>Still failing on my Ubuntu 12.04 box.  

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37139</commentid>
    <comment_count>4</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2013-09-24 16:46:14 +0000</bug_when>
    <thetext>This is without a doubt a java issue. This works fine on the autobuilders and on my home machine with the correct java installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37277</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-09-26 20:47:50 +0000</bug_when>
    <thetext>Beth, 

The docs have been updated to note the Oracle Java requirement and some other issues dealt with in there.  The section can be seen at http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#adt-eclipse.

I marked the doc requirement as &quot;done&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>