Skip to content

How to get debugging for Java to work? #313

@clankill3r

Description

@clankill3r

My folder structure is like this:

- sublime_debug_test
    - src 
        - crap
            - Crap.java 
    - crap.sublime-project

My settings look like this:

{
	"folders":
	[
		{
			"path": ".",
		}
	],
	
	"debugger_configurations":
	[
		{
			"type": "java",
			"name": "Crap",
			"request": "launch",
			"mainClass": "crap.Crap",
			"modulePaths": ["src"],
			"args": "-ea"
		},
	],
}

jdtls is running:

the declared package "crap" does not match the expected package ""

Image

When I run I get:

Error: Could not find or load main class Crap
Caused by: java.lang.ClassNotFoundException: Crap

I tried a dozen off small variations and at this point I'm just lost.
I hope someone can give some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions