Skip to content

Using vpl-junit-0.8.jar with Kotlin classes fails with java.lang.NoClassDefFoundError #2

@frankneumann

Description

@frankneumann

Hi,

I would like to use vpl-junit-0.8.jar with Kotlin classes as the latest VPL version included support for Kotlin.

When I evaluate the unit tests, I get the following error:

java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
--|>
<|--
at: FractionKt.invert(Fraction.kt)

which means that the Kotlin STD Lib is missing, although I included it in class path:

search for Kotlin standard library and include it in class path

kotlin_std_lib=/opt/kotlin/lib/kotlin-stdlib.jar
if [ -f $kotlin_std_lib ] ; then
CLASSPATH=$CLASSPATH:$kotlin_std_lib
fi

and

cat common_script.sh > vpl_execution
echo "export CLASSPATH=$CLASSPATH" >> vpl_execution
echo "timeout $vpl_junit_timeout java -jar $vpl_junit_version $@" >> vpl_execution
chmod +x vpl_execution

I attached all files.

Any hint on that very welcome.

Downloads.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions