{"id":19682399,"url":"https://github.com/sublimelinter/sublimelinter-javac","last_synced_at":"2025-10-25T07:44:19.659Z","repository":{"id":12829424,"uuid":"15504760","full_name":"SublimeLinter/SublimeLinter-javac","owner":"SublimeLinter","description":"SublimeLinter 3 plugin for Java, using javac -Xlint.","archived":false,"fork":false,"pushed_at":"2025-04-24T10:17:56.000Z","size":23,"stargazers_count":39,"open_issues_count":0,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-24T11:27:58.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SublimeLinter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-12-29T06:34:20.000Z","updated_at":"2025-04-24T10:17:49.000Z","dependencies_parsed_at":"2025-04-24T11:23:49.380Z","dependency_job_id":"91c204bf-75d7-4502-91e1-e25ad0ea4e1c","html_url":"https://github.com/SublimeLinter/SublimeLinter-javac","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-javac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-javac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-javac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-javac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SublimeLinter","download_url":"https://codeload.github.com/SublimeLinter/SublimeLinter-javac/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251444056,"owners_count":21590405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:10:36.619Z","updated_at":"2025-10-25T07:44:14.629Z","avatar_url":"https://github.com/SublimeLinter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SublimeLinter-javac\n=========================\n\n[![Build Status](https://travis-ci.org/SublimeLinter/SublimeLinter-javac.svg?branch=master)](https://travis-ci.org/SublimeLinter/SublimeLinter-javac)\n\nThis linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [javac](http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javac.html).\nIt will be used with files that have the \"Java\" syntax.\n\nPlease note that because `javac` requires a complete directory context in order to work, this linter plugin currently will only lint a file **when it has been saved**.\n\n\n## Installation\nSublimeLinter must be installed in order to use this plugin. \n\nPlease use [Package Control](https://packagecontrol.io) to install the linter plugin.\n\nBefore using this plugin, ensure that `javac` (JDK 1.7+) is installed on your system.\n`javac` is part of the `java` developer SDK, which can be downloaded [here](http://www.oracle.com/technetwork/java/javase/downloads/index.html).\n\nPlease make sure that the path to `javac` is available to SublimeLinter.\nThe docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable).\n\n\n## Settings\n- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html\n- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html\n\nAdditional SublimeLinter-javac settings:\n\n|Setting|Description|\n|:------|:----------|\n|lint|A comma-delimited list of rules to apply.|\n\nValid rule names are: all, cast, classfile, deprecation, dep-ann, divzero, empty, fallthrough, finally, options, overrides, path, processing, rawtypes, serial, static, try, unchecked, varargs, -cast, -classfile, -deprecation, -dep-ann, -divzero, -empty, -fallthrough, -finally, -options, -overrides, -path, -processing, -rawtypes, -serial, -static, -try, -unchecked, -varargs, none.\n\nFor example, to ignore deprecation warnings for all files in a project, you would add this to the linter settings:\n\n```\n\"javac\": {\n    \"lint\": \"all,-deprecation\"\n}\n```\n\n### Passing options to `javac`\n\nIn order to configure `javac` options like the class path, source path, or file encoding,\nthe `args` setting can be used.\n\n|Setting|Description|\n|:------|:----------|\n|`args`|An array of strings, alternating between an option and the corresponding value.|\n\nA full list of available options is given [here][1].\n\nFor example, the following configuration defines the source file encoding,\nincludes the two libraries `lib/some_lib.jar` and `lib/some_other_lib.jar`\nin the classpath,\nand defines `src/` as the project's source path:\n\n```\n\"args\": [\n    \"-encoding\", \"UTF8\",\n    \"-cp\", \"${folder}/lib/some_lib.jar:${folder}/lib/some_other_lib.jar\",\n    \"-sourcepath\", \"${folder}/src/\"\n]\n```\n\nNote that options and their values must be separate elements in the array\n(i.e. `\"args\": [\"-sourcepath\", \"/path/to/src\"]` does work, while\n`\"args\": [\"-sourcepath /path/to/src\"]` does not work).\n\n#### Classpath\n\n|Setting|Description|\n|:------|:----------|\n|`classpath`|Elements for the classpath. Accepts a list.|\n\nTo configure classpaths with a lot of elements, the `classpath` setting may\nbe used alternatively or in addition to `args`.\n\nIf *`-sourcepath` is unspecified* (in `args`), `-classpath` can also be used to configure source paths.\n\nThe above example would look like this:\n\n```\n\"args\": [\"-encoding\", \"UTF8\"],\n\"classpath\": [\n    \"${folder}/lib/some_lib.jar\",\n    \"${folder}/lib/some_other_lib.jar\",\n    \"${folder}/src/\", // sourcepath elements go here, too\n]\n```\n\n\n#### Project-specific options\n\nSettings like the class path often only apply to one specific project.\nThe general SublimeLinter documentation also [explains][3] how to specify\nproject-specific settings in the `sublime-project` file.\n\nFor the example above, such a project file could look like this:\n```\n{\n    \"folders\":\n    [\n        {\n            \"path\": \".\"\n        }\n    ],\n    \"settings\":\n    {\n        \"SublimeLinter.linters.javac.lint\": \"all\",\n        \"SublimeLinter.linters.javac.args\": [\"-encoding\", \"UTF8\"],\n        \"SublimeLinter.linters.javac.classpath\": [\n            \"${folder}/lib/some_lib.jar\",\n            \"${folder}/lib/some_other_lib.jar\",\n            \"${folder}/src/\",\n        ]\n    }\n}\n```\n\n\n[1]:http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html\n[2]:http://sublimelinter.com/en/latest/settings.html#settings\n[3]:http://sublimelinter.com/en/latest/settings.html#project-settings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimelinter%2Fsublimelinter-javac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsublimelinter%2Fsublimelinter-javac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimelinter%2Fsublimelinter-javac/lists"}