Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Compiling Jar with dependencies

  1. #1
    Join Date
    Oct 2016
    Posts
    5

    Default Compiling Jar with dependencies

    Instead of running code from the code box in the "User defined Java Class" I am trying to compile it into a Jar, and run the jar file from the "User defined Java Class". I do this because my Java projects are too big, and in order to increase modularity. However, there are some problems with dependencies. Some methods are not available in the libraries, whereas there are some which are available in multiple libraries.

    Zip file of the project I am trying to compile: https://files.fm/u/75uf8gqs
    Screenshot of the Gradle file I am using: [IMAGE]https://imgur.com/a/56ZJ6c7[/IMAGE]
    Screenshot of some methods it cannot detect: [IMAGE]https://imgur.com/a/56ZJ6c7[/IMAGE]
    Screenshot of some methods that are available in multiple libraries: [IMAGE]https://imgur.com/bO7PfLB[/IMAGE]

    EDIT: Manually adding ALL of the Jars from \data-integration\lib\ does not work either.
    Last edited by ultralooter; 11-12-2018 at 07:44 AM.

  2. #2
    Join Date
    Aug 2016
    Posts
    239

    Default

    Sorry to hear you got problems with the dependencies. I have compiled and used jars in UDJC, but not with dependencies. There are different ways of compiling the jars, is it possible for you to compile the jar so that it includes these dependencies? Putting the jars in the lib folder is definitly a step in the right direction, so good thing you tried that.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2017 Pentaho Corporation. All Rights Reserved.