[TIMOB-25824] CLI: SDK requires Java to run apps
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | cb-tooling |
Reporter | Hans Knöchel |
Assignee | Chris Barber |
Created | 2018-02-28T17:08:05.000+0000 |
Updated | 2021-07-26T13:25:33.000+0000 |
Description
Doing a fresh installation of the appc-cli, I noticed that we still use the "resizer.jar" to resize app images. I would rather like to use a node-library that doesn't require Java to be installed.
Error:
[ERROR] Error: Command failed: java -jar "/Users/hansknoechel/Library/Application Support/Titanium/mobilesdk/osx/7.1.0.v20180227113527/node_modules/node-appc/tools/resizer/resizer.jar" "/Users/hansknoechel/Documents/dev/test_replaykit/DefaultIcon.png" "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Small.png" 29 29 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Small@2x.png" 58 58 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Small@3x.png" 87 87 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Small-40.png" 40 40 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Small-40@2x.png" 80 80 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Small-40@3x.png" 120 120 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-60@2x.png" 120 120 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-60@3x.png" 180 180 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-76.png" 76 76 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-76@2x.png" 152 152 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-83.5@2x.png" 167 167 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/AppIcon.appiconset/appicon-Marketing.png" 1024 1024 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/LaunchLogo.imageset/LaunchLogo~iphone.png" 320 320 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/LaunchLogo.imageset/LaunchLogo@2x~iphone.png" 374 374 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/LaunchLogo.imageset/LaunchLogo@3x~iphone.png" 621 621 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/LaunchLogo.imageset/LaunchLogo~ipad.png" 384 384 "/Users/hansknoechel/Documents/dev/test_replaykit/build/iphone/Assets.xcassets/LaunchLogo.imageset/LaunchLogo@2x~ipad.png" 1024 1024
There seems to be a couple Node.js-based solutions these days. Here are two of them: Sharp https://www.npmjs.com/package/sharp Includes native C++ bindings, but it does support prebuilds, so it will work for current Node.js releases (not future ones). Jimp https://www.npmjs.com/package/jimp Pure JavaScript implementation, but may have poor performance compared to the existing resizer.jar or Sharp, especially if resizing many files.
Hello. I am getting the same. Did you find any workaround? For some reason if I run the app from appcelerator studio, it works, but if I use the terminal, I got exactly the same issue reported. Thanks,
[~antonioduran] if you try to run the java command it states directly what is the error you get? It's most likely an issue with the Java version used