Open
Description
I have searched long and far to find out about the Uber JAR file used to generate the class definitions so that I can update picklist ValueSets via the Metadata API. The QuickStart for the Metadata API was using v30.0 with a slew of outdated JAR dependencies and classpath magic (had errors like "Could not find or load main class ?classpath") so I've had to find my way here. After a few more errors, including a JRE path overriding my JDK path, I ultimately had it working using Java 17.
tl;dr Pls update docs either here or on all the QuickStart pages that need the classes from the WSDL files.
Quick Walkthrough to Generate JAR Files
- Download your WSDL files from your Salesforce Org..
- Download the Uber JAR file; you can select ".." at the top to choose a different version if needed.
- Run the command below in PowerShell (Windows 11):
java -jar force-wsc-5x.0.0-uber.jar .\pathTo\metadata.wsdl .\outputPath\metadata.jar
- Profit; you have JARs 🤓
Metadata
Metadata
Assignees
Labels
No labels