Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find or load main class com.salesforce.op.cli.CLI #191

Closed
PoojaG20 opened this issue Dec 10, 2018 · 3 comments
Closed

Error: Could not find or load main class com.salesforce.op.cli.CLI #191

PoojaG20 opened this issue Dec 10, 2018 · 3 comments

Comments

@PoojaG20
Copy link

PoojaG20 commented Dec 10, 2018

I am working on windows...... for building I used in Windows command prompt -
gradlew.bat cli:shadowJar
then for alias i used-
DOSKEY transmogrifai=java -cp $OP_HOME/cli/build/libs/* com.salesforce.op.cli.CLI

But when i am trying to

generate using transmogrifai

I am getting error as -
Error: Could not find or load main class com.salesforce.op.cli.CLI

Any help will be appreciated and please let me know if i did anything wrong

@tovbinm
Copy link
Collaborator

tovbinm commented Dec 11, 2018

For windows solution read this thread - #182

@PoojaG20
Copy link
Author

I followed that thread only and getting error what he was getting as -

transmogrifai gen --input "path\TransmogrifAI\test-data\PassengerDataAll.csv" --id passengerId --response survived --schema "path\TransmogrifAI\test-data\PassengerDataAll.avsc" Titanic

transmogrifai: TransmogrifAI CLI
Usage: transmogrifai [gen] [options] ...

--help

Command: gen [options] name
Generate a new TransmogrifAI project
name Name for the TransmogrifAI project (should be in CamelCase) [required]
--input Input file for the TransmogrifAI project [required]
--id Name for the ID field [required]
--response Feature name to predict [required]
--answers answers to generator questions [optional]
--overwrite allowed to overwrite existing project directory
--schema Avro schema to use for objects; required unless you specify --auto
--auto Automatic detection of data schema (you need to provide a name);
need this one or a schema file. Experimental feature.
wrong arguments

Though i have defined schema then also getting this error

@tovbinm
Copy link
Collaborator

tovbinm commented Dec 11, 2018

Hmm, we are using scopt to parse command line arguments into our process. It's possible that there is some kind of a problem with it when used on windows. Unfortunately I dont have a windows machine to reproduce it.

Perhaps instead of using codegen you can start from an existing Helloworld project - https://docs.transmogrif.ai/en/stable/examples/Titanic-Binary-Classification.html?

@tovbinm tovbinm closed this as completed Dec 18, 2018
@tovbinm tovbinm mentioned this issue Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants