Skip to content

Cannot using SCT CLI

0

Hi teams, I'm planning to use AWS SCT CLI to try to do some automation tasks. However when i download the .jar file and run as instructed there is always an error "Error: An unexpected error occurred while trying to open file AWSSchemaConversionToolBatch.jar"

I've Installed the java from: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html

and installed the SCT from: https://docs.aws.amazon.com/SchemaConversionTool/latest/userguide/CHAP_Installing.html#CHAP_Installing.Procedure

I'm curently using Fedora 42. The error as in the image below. Please help me. Thanks

Enter image description here

1 Answer
0

When encountering the "Unexpected error" while trying to run the AWS Schema Conversion Tool CLI, there's a specific solution you can try. This error often occurs due to signature file size limitations in Java.

Try running the command with an additional Java parameter:

java -Djdk.jar.maxSignatureFileSize=20000000 -jar AWSSchemaConversionToolBatch.jar

This parameter increases the maximum allowed signature file size, which often resolves this particular issue with the AWS SCT CLI jar file.

If you continue to experience problems, ensure that:

  1. You've installed Amazon Corretto 11 correctly
  2. You're using the latest version of AWS SCT
  3. You have the necessary permissions to execute the jar file

The CLI can be used in interactive mode for learning or in script mode for automating conversions, which aligns with your goal of automation tasks.
Sources
CLI Reference for AWS Schema Conversion Tool - AWS Schema Conversion Tool

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.