Skip to content
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

How do I properly set the property ProjectName for a JNI program? #1513

Closed
X1nLi opened this issue Sep 18, 2024 · 1 comment
Closed

How do I properly set the property ProjectName for a JNI program? #1513

X1nLi opened this issue Sep 18, 2024 · 1 comment

Comments

@X1nLi
Copy link

X1nLi commented Sep 18, 2024

My project is using C++ to call JAVA code via JNI and there is no static main method in the code. When using the debugging watch function, the program reminds me that I need to specify the projectName in launch.json, but I don't know where this ProjectName comes from?

Environment
  • Operating System: Ubuntu
  • JDK version: openjdk version "17.0.12"

this is my launch.json:

            "type": "java",
            "name": "mydebug",
            "request": "attach",
            "hostName": "localhost",
            "port": 8002
@testforstephen
Copy link
Contributor

You can use Java Projects view to find out what Java project your source file is located.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants