DIYEFI.org Forum
http://forum.diyefi.org/

How to run OpenLogViewer from source
http://forum.diyefi.org/viewtopic.php?f=32&t=1046
Page 1 of 1

Author:  Fred [ Sat Feb 19, 2011 9:37 pm ]
Post subject:  How to run OpenLogViewer from source

You need to have a JDK installed. If not, get the sun JDK from here:

http://www.oracle.com/technetwork/java/ ... index.html

Note, OpenJDK may work, but is not supported here. If you have troubles, report it to them.

Install Maven3:

http://maven.apache.org/download.html

Clone the source with git:

https://github.com/FreeEMS/OpenLogViewer - Tested commits
https://github.com/fredcooke/OpenLogViewer - Latest back end stuff from me
https://github.com/BenFenner/OpenLogViewer - Latest UI stuff from Ben

You can figure out who has the latest bleeding edge code from this:

https://github.com/gufi/OpenLogViewer/network

NOTE: Downloading a zip/tarball of source will NOT work, the build will fail. You MUST use git to clone a repo.

Enter the source directory in a console and type:

Code:
mvn -DskipTests

Easy.

Author:  dandruczyk [ Sat Feb 19, 2011 11:50 pm ]
Post subject:  Re: How to run DataReader from source

doesn't work for me:

dave@shrapnel:~/git/DataReader$ ant run
Buildfile: build.xml

BUILD FAILED
/home/dave/git/DataReader/build.xml:14: Cannot find nbproject/profiler-build-impl.xml imported from /home/dave/git/DataReader/build.xml

Total time: 0 seconds
dave@shrapnel:~/git/DataReader$

Author:  Fred [ Sun Feb 20, 2011 3:25 am ]
Post subject:  Re: How to run DataReader from source

Nor me, but he's fixing it now :-)

Author:  Fred [ Wed Feb 23, 2011 6:40 am ]
Post subject:  Re: How to run DataReader from source

This app is working and working pretty well as of commit hash 92f70870748ca215c0bdd055ed39cc58bb4ba1b1

Fred.

Author:  gearhead [ Wed Jun 08, 2011 1:00 am ]
Post subject:  Re: How to run DataReader from source

Ok, does not run for me either. If I install maven2, it does, but not just ant.

Code:
Buildfile: /home/kgrider/Applications/OLV/build.xml

test-offline:

get-deps:
      [get] Getting: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
      [get] To: /home/kgrider/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

compile:
    [javac] /home/kgrider/Applications/OLV/maven-build.xml:73: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

compile-tests:
    [javac] /home/kgrider/Applications/OLV/maven-build.xml:101: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

test-junit-present:

test-junit-status:

junit-missing:
     [echo] =================================== WARNING ===================================
     [echo]  JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.
     [echo] ===============================================================================

test:

package:

BUILD SUCCESSFUL
Total time: 0 seconds


at this point I have the jar file, but it will not run:
Code:
~/Applications/OLV/target$ java -jar OpenLogViewer-0.0.1-SNAPSHOT.jar
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
   at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)


If I install the huge pack called maven, it will compile and run, but I want to keep this lean. What do I need to run this?

Gearhead

Author:  gearhead [ Wed Jun 08, 2011 1:20 am ]
Post subject:  Re: How to run DataReader from source

Ok, If I install the huge package that is maven2, I can get it to run. Would like to know how to run it without all 200M of Maven2...

Who is developing this, currently?

It would be nice if it had values on the axes (X and Y) and a legend so that the individual traces could be followed. Also a bit more intuitive as to how to change the color of a trace.

Gearhead

Attachments:
OLV.png
OLV.png [ 563.07 KiB | Viewed 5107 times ]

Author:  Fred [ Wed Jun 08, 2011 11:10 am ]
Post subject:  Re: How to run DataReader from source

Gearhead, because you're running a development version, you're using development tools. Maven3 (2 worked? cool, but you should be using 3...) is THE dev tool for Java stuff, ant used to work, gufi broke it. It was an autogenerated build script anyway, and the last generation was not a functional one.

Gufi and I are working on this, intermittently. He put in some UI commits last night, I've not tried them yet, could be good, could be bad.

Fred.

Author:  Fred [ Thu Oct 27, 2011 11:34 am ]
Post subject:  Re: How to run OpenLogViewer from source

BUMP! I updated the first post :-)

Author:  Fred [ Mon Feb 06, 2012 5:15 pm ]
Post subject:  Re: How to run OpenLogViewer from source

Bump again, I updated the first post again, to remove ant! Now totally unsupported. Use a release version or maven 3.

Fred.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/