You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/03/11 18:06:14 UTC

[GitHub] [pulsar] evgmitskevich opened a new issue #3799: [java client] main class location problem with pulsar-client-admin 2.3.0

evgmitskevich opened a new issue #3799: [java client] main class location problem with pulsar-client-admin 2.3.0
URL: https://github.com/apache/pulsar/issues/3799
 
 
   **Description**
   In gradle project having these two files 
   `
   package examplepackage;
   
   public class Launcher {
       public static void main(String[] args) {}
   }
   `
   `
   repositories {
       mavenCentral()
   }
   
   dependencies {
       compile group: 'org.apache.pulsar', name: 'pulsar-client-admin', version: '2.3.0'
       testCompile group: 'junit', name: 'junit', version: '4.12'
   }
   `
   there is problem after building jar: `java -cp jar-with-dependencies.jar examplepackage.Launcher` results in `Error: Could not find or load main class samplepackage.Launcher`. 
   
   I guess the reason is in transitive `org.bouncycastle` dependency, because excluding it eliminates the problem.
   
   **Desktop:**
    - OS: Mac OS & Ubuntu
    - pulsar-client-admin version: 2.3.0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services