Page 1 of 1

How to run OpenLogViewer from source

Posted: Sat Feb 19, 2011 9:37 pm
by Fred
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: Select all

mvn -DskipTests
Easy.

Re: How to run DataReader from source

Posted: Sat Feb 19, 2011 11:50 pm
by dandruczyk
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$

Re: How to run DataReader from source

Posted: Sun Feb 20, 2011 3:25 am
by Fred
Nor me, but he's fixing it now :-)

Re: How to run DataReader from source

Posted: Wed Feb 23, 2011 6:40 am
by Fred
This app is working and working pretty well as of commit hash 92f70870748ca215c0bdd055ed39cc58bb4ba1b1

Fred.

Re: How to run DataReader from source

Posted: Wed Jun 08, 2011 1:00 am
by gearhead
Ok, does not run for me either. If I install maven2, it does, but not just ant.

Code: Select all

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: Select all

~/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

Re: How to run DataReader from source

Posted: Wed Jun 08, 2011 1:20 am
by gearhead
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

Re: How to run DataReader from source

Posted: Wed Jun 08, 2011 11:10 am
by Fred
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.

Re: How to run OpenLogViewer from source

Posted: Thu Oct 27, 2011 11:34 am
by Fred
BUMP! I updated the first post :-)

Re: How to run OpenLogViewer from source

Posted: Mon Feb 06, 2012 5:15 pm
by Fred
Bump again, I updated the first post again, to remove ant! Now totally unsupported. Use a release version or maven 3.

Fred.