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

Not able to run simple cobol app with java #650

Closed
jaysara opened this issue Dec 27, 2023 · 1 comment
Closed

Not able to run simple cobol app with java #650

jaysara opened this issue Dec 27, 2023 · 1 comment
Labels
question Further information is requested

Comments

@jaysara
Copy link

jaysara commented Dec 27, 2023

Background [Optional]

I am triying to run simple cobol-app in the example in java project. I have modified pom.xml as per the instruction. However, I am getting some error related to version mismatch.

23/12/27 16:45:50 INFO DefaultSource: Cobrix 'spark-cobol' build 2.6.9 (2023-10-16T10:52:47) 
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Product$class
	at za.co.absa.cobrix.cobol.parser.recordformats.RecordFormat$FixedLength$.<init>(RecordFormat.scala:22)


Question

Is there any place that I can download a sample java app that represents the use of cobix library. Scala is not setup in my work environment. I have created a sample app with java at https://github.com/jaysara/spark-cobol-jay . The errors that I am getting are in the Readme.md file. Will appreciate any help that you can give.

@jaysara jaysara added the question Further information is requested label Dec 27, 2023
@jaysara
Copy link
Author

jaysara commented Dec 29, 2023

Please close the issue. I was getting in to version mismatch between the spark and scala version. The build file that I downloaded was using 2.11 scala version, while rest of my program was using 2.12.

@jaysara jaysara closed this as completed Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant