-
Notifications
You must be signed in to change notification settings - Fork 70
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
java项目,主方法运行报错 #133
Comments
启动配置里面 vmArgs 两边加一下双引号试试 |
看起来是 Java Debug 插件可能是有些老旧了,试一下新版本的 Java Debug。我自己用的是 0.57.2024041008,可以找个高版本的试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
说明: java项目run主方法, 报does not export sun.security.action to unnamed module, 在本地 vscode里面可以正常运行
环境:
jdk: 17
nodejs: v18.19.0
启动配置:
![image](https://private-user-images.githubusercontent.com/1064193/397915370-a940f5c1-8382-4ac3-9fa2-3b48b5bd2b2f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzIzNjcsIm5iZiI6MTczODkzMjA2NywicGF0aCI6Ii8xMDY0MTkzLzM5NzkxNTM3MC1hOTQwZjVjMS04MzgyLTRhYzMtOWZhMi0zYjQ4YjViZDJiMmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTI0MTA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmEyOTllY2UyNzFhNzM1ZTg3YWMyYmUwYjkyOTZlMGE4YjI2M2RjYjkzNDNiNDk4ZjM2NTNhYjg2ZDRiNDk1ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.uVwYRtLfOD6hfzh5PBJ5TBeeg3iEz0HbdQoQYKBwchM)
安装的扩展:
![image](https://private-user-images.githubusercontent.com/1064193/397915124-2906bbe5-311c-4442-999c-69971d09b69b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzIzNjcsIm5iZiI6MTczODkzMjA2NywicGF0aCI6Ii8xMDY0MTkzLzM5NzkxNTEyNC0yOTA2YmJlNS0zMTFjLTQ0NDItOTk5Yy02OTk3MWQwOWI2OWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTI0MTA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWViMDIwOWRmZmY4YWVlZTMxOTU5MThmM2U5NTY2YjkyY2E2MmVlYTVkNDlkNDBmYWYxMTU1ZjRjZjZiOTkwNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.bzT-81p5xJy0U-BMUwBETV3vTjZilHvbYV1GUUPAugI)
运行错误:
[Error - 4:35:00 PM] 2024年12月21日 下午4:35:00 [error response][launch]: class com.microsoft.java.debug.core.adapter.AdapterUtils (in unnamed module @0x328bf1e1) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x328bf1e1
class com.microsoft.java.debug.core.adapter.AdapterUtils (in unnamed module @0x328bf1e1) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x328bf1e1
java.lang.IllegalAccessError: class com.microsoft.java.debug.core.adapter.AdapterUtils (in unnamed module @0x328bf1e1) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x328bf1e1
at com.microsoft.java.debug.core.adapter.AdapterUtils.getTmpDir(AdapterUtils.java:356)
at com.microsoft.java.debug.core.adapter.AdapterUtils.createTempFile(AdapterUtils.java:375)
at com.microsoft.java.debug.core.adapter.AdapterUtils.generateArgfile(AdapterUtils.java:345)
at com.microsoft.java.debug.core.adapter.handler.LaunchRequestHandler.handleLaunchCommand(LaunchRequestHandler.java:131)
at com.microsoft.java.debug.core.adapter.handler.LaunchRequestHandler.handle(LaunchRequestHandler.java:80)
at com.microsoft.java.debug.core.adapter.DebugAdapter.lambda$dispatchRequest$0(DebugAdapter.java:85)
at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
at com.microsoft.java.debug.core.adapter.DebugAdapter.dispatchRequest(DebugAdapter.java:84)
at com.microsoft.java.debug.core.adapter.ProtocolServer.dispatchRequest(ProtocolServer.java:118)
at com.microsoft.java.debug.core.protocol.AbstractProtocolServer.lambda$new$0(AbstractProtocolServer.java:78)
at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:60)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:200)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:252)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:61)
at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:52)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered: