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 #50

Open
ionox0 opened this issue Jun 28, 2019 · 4 comments
Open

Error: Could not find or load main class #50

ionox0 opened this issue Jun 28, 2019 · 4 comments

Comments

@ionox0
Copy link

ionox0 commented Jun 28, 2019

Command used:

./cwlexec /home/johnsoni/Innovation-Pipeline/workflows/QC/qc_workflow_wo_waltz.cwl ~/Innovation-Pipeline/test/workflows/EZ_QC_test.yaml
Error: Could not find or load main class com.ibm.spectrumcomputing.cwl.Application

I've downloaded and extracted the 0.2.2 release, is there any advice on this error?

@ionox0
Copy link
Author

ionox0 commented Jun 28, 2019

Also was able to start the 0.2.0 version, but ran into this error:

./cwlexec /home/johnsoni/Innovation-Pipeline/workflows/QC/qc_workflow_wo_waltz.cwl ~/Innovation-Pipeline/test/workflows/EZ_QC_test.yaml
The field [SchemaType] is required by [type].

This was addressed here:
#32

@mr-c
Copy link

mr-c commented Jun 28, 2019

@ionox0 Are you able to run any simple CWL description with v0.2.2?

You could also try packing your CWL into a single file with cwltool --pack /home/johnsoni/Innovation-Pipeline/workflows/QC/qc_workflow_wo_waltz.cwl > qc_workflow_wo_waltz-packed.cwl. This does $import and $include processing, so that may be easier for cwlexec to ingest until they become more compliant with the entirety of CWL v1.0.

@skeeey
Copy link
Collaborator

skeeey commented Jul 3, 2019

@ionox0, do you set the CWL_EXEC_HOME environment variable? I think you may need to check it, or would you try the below commands, this will print the cwlexec version

CWL_EXEC_HOME=<your cwlexec uncompressed path>
CWL_EXEC_LIBS_PATH="$CWL_EXEC_HOME/libs"
CWL_EXEC_JAR_LIBS=`find $CWL_EXEC_LIBS_PATH -type f | awk '{printf("%s:", $1)}'`
CWL_EXEC_MAIN_CLASS="com.ibm.spectrumcomputing.cwl.Application"

java -classpath $CWL_EXEC_JAR_LIBS $CWL_EXEC_MAIN_CLASS -v

@ionox0
Copy link
Author

ionox0 commented Jul 7, 2019

@mr-c Yes I believe the issue may be due to $import and $include statements. Will get back when I return to this and test with a more standard workflow, thank you!

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

3 participants