Forum Discussion

davidnewcomb's avatar
davidnewcomb
Occasional Contributor
14 years ago

[loadui 2.0.0] source distributable is incomplete

There have been 2 big problems with trying to build LoadUI.

Missing package: com.eviware.loadui.config
A third of the projects fail to compile

Missing jar: javafx-common.jar
I know that javafx-common.jar is not distributed due to licence reasons but I've downloaded JavaFX runtime and sdk and neither of them contain the specified jar.

Dependencies fail for loadui-cssbox-browser on groupId=cssbox and artifactId=cssbox
Dependencies fail for loadui-cssbox-browser on groupId=cssbox and artifactId=jStyleParser

Is there a list of project dependency that LoadUI requires? Where is it?

8 Replies

  • davidnewcomb's avatar
    davidnewcomb
    Occasional Contributor
    It seems the cssbox dependencies haven't been updated.
    Edit loadui-project-2.0.0\loadui-cssbox-browser\pom.xml
    Maybe not the best way of doing it, but it works now. Obviously you'll have to change the path!

    <dependency>
    <groupId>cssbox</groupId>
    <artifactId>cssbox</artifactId>
    <version>3.4</version>
    <scope>system</scope>
    <systemPath>D:/eclipse/workspaces/java/loadui-project-2.0.0/loadui-cssbox-browser/src/main/lib/CSSBox.jar</systemPath>
    </dependency>
    <dependency>
    <groupId>cssbox</groupId>
    <artifactId>jStyleParser</artifactId>
    <version>1.5-cssboxdep</version>
    <scope>system</scope>
    <systemPath>D:/eclipse/workspaces/java/loadui-project-2.0.0/loadui-cssbox-browser/src/main/lib/jStyleParser_SNAPSHOT.jar</systemPath>
    </dependency>
  • davidnewcomb's avatar
    davidnewcomb
    Occasional Contributor
    All projects build except the most important one! loadui-base
    It still complains that the config package is missing.

    import com.eviware.loadui.config

    Any ideas?
  • davidnewcomb's avatar
    davidnewcomb
    Occasional Contributor
    com.eviware.loadui.config doesn't appear to be in SVN trunk or in the downloadable source.

    Go to http://loadui.org/maven-site-nightly/xr ... onfig.html and replaced AddonItemConfig with the name of the Java class that was missing from the last compile. Then I stripped out all the line numbers and placed them in loadui-project-2.0.0\loadui-base\src\main\java\com\eviware\loadui\config.

    Do that 25 times.

    The missing configuration files any they are generated from maven but in the absence of any documentation it was simpler to download them all.
    Now everything compile.


    I has taken me all day to sort this out. The technical overview at http://www.loadui.org/Developers-Corner ... rview.html is hopelessly inadequate.

  • Hi,

    The com.eviware.loadui.config package contains XmlBeans generated classes. The source for these are in the loadui-model-xmlbeans module, but are not .java files (the source code is the .xsd file). Running mvn install for the entire project, or for loadui-model-xmlbeans module should build these class files using the XmlBeans Maven plugin, resulting in the required jar file.

    Regards,
    Dain
    SmartBear Software
  • archenroot's avatar
    archenroot
    Occasional Contributor
    Thanks Dain,
    the "com.eviware.loadui.config" package is created as you mentioned.

    But org.fit.cssbox.css and javafx-common.jar is also still gone.

    The CSSbox files I found https://code.google.com/p/swingbox-java ... x%2Flayout, so think they should work, will package them and import to local maven.

    Regarding the JavaFX-common.jar file I am still little bit confused as soon as in the pom file there is path like :{JAVAFX_HOME}/lib/desktop/javafx-common.jar. I am on Gentoo linux box and don't have such a folder at all, this is some default or custom created folder under the fx? Finally I found the file at http://www.java2s.com/Code/Jar/j/Downlo ... monjar.htm, so will try to use it.

    David, how did you exactly changed your pom?

    Ladislav
  • Hi!

    I just wanted to let you know that in LoadUI 2.5+, this is not an issue anymore.

    Regards

    Henrik O
    SmartBear Software
  • archenroot's avatar
    archenroot
    Occasional Contributor
    Thanks Henrik, I was working with 2.0.3 SNAPSHOT, will update to the last trunk or branch.
    Ladislav