Close but no prize! New install of Java Card Development Environment 24 released february 2024 on a new install of Ubuntu 22.04 LTS.
Starting with the HelloWorld sample, command line build and run scripts work; eclipse plugin build work but debug does not work. Assistance from anyone would be greatly appreciated.
- installed JDK (JDK17, tried both oracle and openjdk v17), eclipse (4.31.0, 20240307-1437), ant (v1.10.12) and openssl (3.0.2)
- installed JCDK Tools 24
- installed Oracle JC Simulator 24
- environment variables set and verified
- created config and created vm image per oracle instructions - for simulator
- starting with HelloWorld, build.sh and run.sh work fine.
- in eclipse, build works and deliverables built
- in eclipse (imported the two projects applet and client as well as the run/debug configuration) debug or run fails
Console Log for Debug:
Executing: /home/user/java_card_devkit_simulator-linux/runtime/bin/jcsl -log_level=finest -p=9025 -debug_port=7019
Exception in thread "Thread-130" java.lang.NoClassDefFoundError: com/oracle/javacard/ams/script/ScriptFailedException
at com.oracle.javacard.jcdk.tools.ApduConsole.startApduCommandThread(ApduConsole.java:253)
at com.oracle.javacard.jcdk.tools.ApduConsole.startThreads(ApduConsole.java:283)
at com.oracle.javacard.jcdk.tools.JoTRunner.run(JoTRunner.java:89)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ClassNotFoundException: com.oracle.javacard.ams.script.ScriptFailedException cannot be found by com.oracle.javacard.jcdk.core_1.0.0.202402191450
at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:562)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:557)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:434)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:174)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 4 more
Error Log has:
Error
Wed May 08 09:08:49 EDT 2024
An internal error occurred during: "Launching Debug HelloWorld".
java.lang.RuntimeException: Error starting device.
at com.oracle.javacard.jcdk.launch.AppletLaunchConfigurationDelegate.launch(AppletLaunchConfigurationDelegate.java:126)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:805)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1038)
at org.eclipse.debug.internal.ui.DebugUIPlugin$1.run(DebugUIPlugin.java:1241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Any help would be greatly appreciated!!!