typescript - 从 .jar 文件夹添加主类
问题描述
我想创建一个扩展来解析语言(这是用我的语法编写的)并找到它的错误。
所以我在 Server 中创建了我的主类并将其导入到 VSCode 中。如何从客户端访问我的主类?
这是我的launch.json:
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch) with Arguments Prompt",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"mainClass": "",
"args": "${command:SpecifyProgramArgs}"
},
{
"type": "node",
"request": "attach",
"protocol": "legacy",
"name": "Attach",
"port": 9229
},
]
}
我的主类路径--->>>/Desktop/intellijden eclipse-->VScode/vscode-languageserver-java-example/Server/app.class
但我的服务器在 .jar 中。
解决方案
推荐阅读
- objective-c - Objective-C:向现有实体添加新属性或添加新属性后清除核心数据数据库
- javascript - 如何在javascript中继承类并使用静态方法?
- java - 无法使用android java 10中的片段将字符串保存到外部SD卡中的文件
- android - 如何发布 DPC 应用程序?
- node.js - 无法通过 Docker 连接到 Cloud SQL 代理 - 错误:连接 ENOENT
- postgresql - Postgres - 选择日期列值在另一行值范围内的所有行?
- pyspark - Azure 数据块中的自定义 Spark 日志位置配置
- python - 从 Python 代码调用 pytest 时可以共享全局变量吗
- python - 在给定列表中找到第二大的数字[重复]
- python - 如何在ubuntu上更改jupyter笔记本“下载为”路径