Comments (5)
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.
Hi @cwiechmann, I downloaded from here and it says latest release. Though, I can double check tomorrow morning...
Thanks, Luiz
from apim-cli.
Hmm, perhaps you have downloaded the source-release-package instead of the distribution package. I'm waiting for your feedback.
from apim-cli.
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.
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)
- a change in application quota is not detected HOT 2
- Read Time out on API Creation HOT 3
- Nullpoint Exception when downloading API Spec via apim CLI HOT 2
- updateonly option HOT 1
- Application download fails if multiple SharePermissions are assigned HOT 2
- nullpointer exception occuring while try to import an api HOT 2
- Support 7.7 May 2023 release HOT 2
- Inbound Security - Query String Pass Through
- Can't overwrite API HOT 1
- apim-cli failure with ChangePasswordAtFirstLogin option in API Manager HOT 5
- overrideSpecBasePath not working HOT 7
- Existing Client Applications are lost HOT 2
- breaking changes with ovverideSpecBasePath = true HOT 6
- Null pointer when converting OData -> Open API HOT 2
- Change the parsing logic which converts OData spec -> Open API to make the * appended to extendible paths configurable
- No change is returning RC 0 instead of RC 10 HOT 3
- question regarding system quota on all api HOT 1
- Backend basepath issue HOT 5
- Regression in host HOT 36
- regression on the -stage environment property file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apim-cli.