Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java Card Development Kit 24 HelloWorld Debug Fails

Reid CarlisleMay 8 2024 — edited Jun 27 2024

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.

  1. installed JDK (JDK17, tried both oracle and openjdk v17), eclipse (4.31.0, 20240307-1437), ant (v1.10.12) and openssl (3.0.2)
  2. installed JCDK Tools 24
  3. installed Oracle JC Simulator 24
  4. environment variables set and verified
  5. created config and created vm image per oracle instructions - for simulator
  6. starting with HelloWorld, build.sh and run.sh work fine.
  7. in eclipse, build works and deliverables built
  8. 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!!!

This post has been answered by patrick.vh-Oracle on May 24 2024
Jump to Answer

Comments

Hiroshi Tonegawa May 31 2024

追加情報です。

リスナーからエラーメッセージでておりました。ただどうしたら良いのかわかりません。

そのlog(TNSLSNR.log)を添付しました。ここから原因、また対処法など解析できませんでしょうか?

大変困っております。よろしくお願いいたします。

TNSLSNR_496.log

1 - 1

Post Details

Added on May 8 2024
12 comments
534 views