On Thu, Oct 10, 2013 at 2:42 PM, <dacapobench-researchers-request@lists.sourceforge.net> wrote:
Send dacapobench-researchers mailing list submissions to
        dacapobench-researchers@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/dacapobench-researchers
or, via email, send a message with subject or body 'help' to
        dacapobench-researchers-request@lists.sourceforge.net

You can reach the person managing the list at
        dacapobench-researchers-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dacapobench-researchers digest..."


Today's Topics:

   1. Re: Trouble building Tradebeans/Tradesoap on DaCapo 9.12
      (Diogenes Nunez)
   2. Porting DaCapo benchmarks to DVM? (Shuying Liang)
   3. Re: Porting DaCapo benchmarks to DVM? (Tony Hosking)


----------------------------------------------------------------------

Message: 1
Date: Wed, 14 Aug 2013 12:47:58 -0400
From: Diogenes Nunez <dan@cs.tufts.edu>
Subject: Re: [dacapobench-researchers] Trouble building
        Tradebeans/Tradesoap    on DaCapo 9.12
To: dacapobench-researchers@lists.sourceforge.net
Message-ID:
        <CAO47LT78YskTpDE7zqM1FXt5yVPOyCtnrr8b8DViM6M4rV1XhA@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello all,

In the end, I did finally figure out a way to adhere to the Java 1.5
requirement for building
the Geronimo plugins required for Tradebeans/Tradesoap while holding onto
Java 1.6 JAVA_HOME
for Ant. So below, I have the steps I went through to do this. If there
actually is a simpler way,
please don't hesitate to let me know. I'm keeping notes on this for future
reference.

To build Tradebeans/Tradesoap in DaCapo 9.12 benchmark on Ubuntu (from
source):

Problem: Checksum validation fails?

1) Remove MD5 checksums in benchmark/libs/daytrader/downloads
      cd benchmark/libs/daytrader/downloads
      rm *.MD5

This will force ant to decide to redownload everything and generate new
checksums
for those download items. Alternatively, you can try and comment out all
the checksum
validations.

Problem: Maven required java 1.5, but detects java 1.6?

1) Make sure you have a java 1.5 installation somewhere to compile java 1.5
code, and know
   the path to the bin folder of that installation. For example, if we have
it at
      /usr/lib/jvm/java-1.5.0-sun/bin/java
   we want to remember
      /usr/lib/jvm/java-1.5.0-sun
  If you don't have it, I suggest looking for it somewhere on the web. Some
repos still
  have it for Ubuntu, for instance (as of 08-01-2013).

2) Go up a level and open build.xml in your favorite editor
      cd ..
      emacs -nw build.xml

3) Search for the point where ant will build the geronimo plugins (j2ee,
client, cxf, axis).
   It will look something like the xml below:

      <!-- build required plugins -->
      <exec executable="${mvn}" dir="${lib-build-dir}/plugins/j2ee"
failonerror="yes" failifexecutionfails="yes"/>
      <exec executable="${mvn}" dir="${lib-build-dir}/plugins/client"
failonerror="yes" failifexecutionfails="yes"/>
      <exec executable="${mvn}" dir="${lib-build-dir}/plugins/cxf"
failonerror="yes" failifexecutionfails="yes"/>
      <exec executable="${mvn}" dir="${lib-build-dir}/plugins/axis"
failonerror="yes" failifexecutionfails="yes"/>

4) For each of those exec tags, you must add in an env tag for JAVA_HOME,
like so
      <exec executable="${mvn}" dir="${lib-build-dir}/plugins/j2ee"
failonerror="yes" failifexecutionfails="yes"> <!-- Note the missing / at
the end -->
          <env key="JAVA_HOME" path="/path/to/java-1.5.0-sun"/> <!-- new
tag -->
      </exec> <!-- Close your exec tag now -->

Now, when it gets to building the plugins, many things will be downloaded
and then tested.
Assuming the tests pass, it will run the Geronimo server for further
testing/download and
(hopefully) succeed.

5) Now you can try and build tradebeans/tradesoap in the benchmarks folder
      cd ../..
      ant tradebeans

This seems to work for me. Hopefully it works for others too. It is worth
noting that
both benchmarks do still run with Java 1.6. Now Jikes is a different
story...

Again, if there is anything else or other fixes, let me know. I'd like to
put them together into one document for future reference.


On Wed, Jul 24, 2013 at 3:18 PM, Diogenes Nunez <dan@cs.tufts.edu> wrote:

> Hello everyone,
>
> I am trying to build the Tradebeans and Tradesoap from the DaCapo source
> with Java 1.6, Maven 2.1.0 and javacc 4.2.
> It seems the source must be compiled with Java 1.5 instead of 1.6. The
> build error reporting that is shown in Error 1. However,
> switching to 1.5 causes another failure, as shown in Error 2. Is there
> anything else I can do to try and get these
> benchmarks to compile? Thank you for taking the time to read this.
>
> - Diogenes
>
> Error 1:
>
>> [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [INFO] Scanning for projects...
>>      [exec]      [exec] [INFO] Reactor build order:
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Schema
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Builder
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Server
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Naming Builder
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Security
>> Builder
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Test DDBeans
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Web 2.5 Builder
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Deployer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: JSR-88 EAR
>> Configurer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: JSR-88 JAR
>> Configurer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: JSR-88 RAR
>> Configurer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: JSR-88 WAR
>> Configurer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Unavailable
>> Client Deployer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Unavailable
>> EJB Deployer
>>      [exec]      [exec] [INFO]   Geronimo Plugins, J2EE :: Unavailable
>> Web Services Deployer
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [INFO] Building Geronimo Plugins, J2EE
>>      [exec]      [exec] [INFO]    task-segment: [install]
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [INFO] [enforcer:enforce {execution: default}]
>>      [exec]      [exec] [WARNING] Rule 0:
>> org.apache.maven.plugin.enforcer.RequireJavaVersion failed with message:
>> Detected JDK Version: 1.6.0-27 is not in the allowed range [1.5,1.6).
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [ERROR] BUILD ERROR
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [INFO] Some Enforcer rules have failed. Look
>> above for specific messages explaining why the rule failed.
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [INFO] For more information, run Maven with the
>> -e switch
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>>      [exec]      [exec] [INFO] Total time: 2 seconds
>>      [exec]      [exec] [INFO] Finished at: Wed Jul 24 15:06:21 EDT 2013
>>      [exec]      [exec] [INFO] Final Memory: 21M/240M
>>      [exec]      [exec] [INFO]
>> ------------------------------------------------------------------------
>
>
> Error 2:
>
>> Buildfile: /home/dan/research/benchmarks/build.xml
>> BUILD FAILED
>> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>>  at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:88)
>>  at
>> javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278)
>> at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
>>  at
>> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107)
>> at
>> org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:120)
>>  at
>> org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:104)
>> at
>> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:172)
>>  at
>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:273)
>> at
>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:178)
>>  at
>> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
>> at org.apache.tools.ant.Main.runBuild(Main.java:793)
>>  at org.apache.tools.ant.Main.startAnt(Main.java:217)
>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Thu, 10 Oct 2013 14:24:31 -0600
From: Shuying Liang <shuying.liang@gmail.com>
Subject: [dacapobench-researchers] Porting DaCapo benchmarks to DVM?
To: dacapobench-researchers@lists.sourceforge.net
Message-ID:
        <CACT8uLJ7-26xNNB16W9pvjLWYBdqJ8N0qzDSS7ya2PiWkXvvkQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi

I am doing static analysis on Dalvik bytecode which Android applications
are compiling down to.

And at some point of my project, I want to evaluate  some standard Java
benchmarks, not limited Android apps, which are also written in Java. and I
think  Dacapo has some real standard Java programs that I want to test my
analyzer.

I have tried to port the applications in DaCapo to Android apps and analyze
them, but only antlr, lusearch, and pmd works, others have the conflicts
mainly in GUI related stuff...
The thing is that  I want more of them can be compiled in Dalvik Virtual
Machine. so my question are:

1. Is there anyone aware of some existing tools/experience on how to port
Java apps to Android apps?

2. What other apps in the DaCapo benchmark specifically that you think it
can be compiled into JVM? (e.g. for those ones that do not use SWING, SWT
or the stuff...)

Thanks in advance!
--Shuying
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Thu, 10 Oct 2013 16:42:50 -0400
From: Tony Hosking <hosking@cs.purdue.edu>
Subject: Re: [dacapobench-researchers] Porting DaCapo benchmarks to
        DVM?
To: dacapobench-researchers@lists.sourceforge.net
Message-ID: <1BC52934-B602-4003-9A04-E12D45C33D6A@cs.purdue.edu>
Content-Type: text/plain; charset="iso-8859-1"

My group at Purdue is in the process of porting a number of benchmarks to Dalvik, including (some of) DaCapo.
 
Great!

Mind sharing what are the other benchmarks you are pointing and what  apps in  DaCapo that you guys have ported? Mine case is just the antlr, lusearch and pmd..


We are not quite in a position to distribute these just yet, but plan to do so when they are ready.
Perhaps we can split the work?
 

Good idea,  I think it will beneficial us all.....

Thanks,
--Shuying
 





On Oct 10, 2013, at 4:24 PM, Shuying Liang <shuying.liang@gmail.com> wrote:

> Hi
>
> I am doing static analysis on Dalvik bytecode which Android applications are compiling down to.
>
> And at some point of my project, I want to evaluate  some standard Java benchmarks, not limited Android apps, which are also written in Java. and I think  Dacapo has some real standard Java programs that I want to test my analyzer.
>
> I have tried to port the applications in DaCapo to Android apps and analyze them, but only antlr, lusearch, and pmd works, others have the conflicts mainly in GUI related stuff...
> The thing is that  I want more of them can be compiled in Dalvik Virtual Machine. so my question are:
>
> 1. Is there anyone aware of some existing tools/experience on how to port Java apps to Android apps?
>
> 2. What other apps in the DaCapo benchmark specifically that you think it can be compiled into JVM? (e.g. for those ones that do not use SWING, SWT or the stuff...)
>
> Thanks in advance!
> --Shuying
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk_______________________________________________
> dacapobench-researchers mailing list
> dacapobench-researchers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dacapobench-researchers

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk

------------------------------

_______________________________________________
dacapobench-researchers mailing list
dacapobench-researchers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dacapobench-researchers


End of dacapobench-researchers Digest, Vol 52, Issue 1
******************************************************