Giter Club home page Giter Club logo

Comments (5)

cwiechmann avatar cwiechmann commented on August 20, 2024

Hi @lacg, Thanks for the feedback!

I assume you have not downloaded the latest release, but instead cloned the project and called the script like so:

[axway@api-env apim-cli]$ ./modules/apim-cli/assembly/scripts/apim.sh
/usr/bin/java

Error: Could not find or load main class com.axway.apim.cli.APIManagerCLI

Please download the latest release package from here: https://github.com/Axway-API-Management-Plus/apim-cli/releases I have tested this with a fresh installation and it's working as expected.

from apim-cli.

lacg avatar lacg commented on August 20, 2024

Hi @cwiechmann, I downloaded from here and it says latest release. Though, I can double check tomorrow morning...
Thanks, Luiz

from apim-cli.

cwiechmann avatar cwiechmann commented on August 20, 2024

Hmm, perhaps you have downloaded the source-release-package instead of the distribution package. I'm waiting for your feedback.

from apim-cli.

lacg avatar lacg commented on August 20, 2024

Yeah, I downloaded the 1.2.1 latest release!
I had cloned earlier on, but I couldn't make it work and I realized it was not the right way (and the folder was not easy to find (/modules/apim-cli/assembly/scripts/). Thus I used the tar file for the Mac and the Zip file for the Windows and both have the 1.2.1 name on the folder with /scripts on the subfolder, so it is not the wrong version and the wrong script.
Don't get me wrong, if JAVA_HOME is well defined, it should work just fine. If no JAVA_HOME is defined, it was also supposed to work and I have no idea why it is not on Windows (on Linux/Mac, it will depend on how the OS treats the relative path/working directory). I had issues before with certain versions of bash/zsh not changing the working directory with cd .. (most does though)
To solve this, or we could change the pwd variable manually (there is no perfect way on doing this 100% of the time on all shells) or use absolute paths (a problem with longer paths and class paths character limits). In the end, no solution will be perfect... :( As the jar files are not that much, I went with the absolute path... but that is no way THE only solution.

from apim-cli.

cwiechmann avatar cwiechmann commented on August 20, 2024

Based on my understanding I think it's okay to close this issue. Let me know, if there is anything else I can do.

from apim-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.