{"id":16784861,"url":"https://github.com/rattermeyer/jps","last_synced_at":"2025-03-16T22:47:53.585Z","repository":{"id":65051770,"uuid":"181621087","full_name":"rattermeyer/jps","owner":"rattermeyer","description":"java process scanner","archived":false,"fork":false,"pushed_at":"2023-01-09T07:05:14.000Z","size":4502,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T09:12:24.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rattermeyer.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}},"created_at":"2019-04-16T05:33:01.000Z","updated_at":"2023-01-09T07:05:25.000Z","dependencies_parsed_at":"2023-02-08T09:16:22.087Z","dependency_job_id":null,"html_url":"https://github.com/rattermeyer/jps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rattermeyer%2Fjps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rattermeyer%2Fjps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rattermeyer%2Fjps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rattermeyer%2Fjps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rattermeyer","download_url":"https://codeload.github.com/rattermeyer/jps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945527,"owners_count":20372894,"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-10-13T08:07:27.092Z","updated_at":"2025-03-16T22:47:53.555Z","avatar_url":"https://github.com/rattermeyer.png","language":"Go","readme":"# Java Scanner\n\nThe Java Scanner scans for java installations and running java processes on the current \nhost and creates a csv file with information about the JRE/JDK instances, that have been found.\n\nThe information helps to determine, if a license is required for the used version, due to the changed Oracle\nlicense terms.\n\nThe java scanner is implemented in golang.\n\n\n# compile\n\nTo compile, just execute\n\n    go build .\n\n## Running the scanner\n\n### getting command line help\nTo get help, run the application via _go_:\n\n    ./java-scanner scan -h\n\nOr run binary via:\n\n    ./java-scanner scan --help\n\nto print out the configuration options:\n\n```\nscan processes and report found java processes\n\nUsage:\n  java-scanner scan [flags]\n\nFlags:\n  -j, --append-to-findings-json                  append findings to findings.json file\n  -h, --help                                     help for scan\n  -c, --scan-current-path                        Activate scanning of current path\n  -f, --scan-file-system                         Activate running processes scanning\n  -E, --scan-file-system-exclude-paths strings   A list of paths, that should be excluded from the search\n  -R, --scan-file-system-root-paths strings      A list of root paths, where the file system scan has to start (default [/usr/lib/jvm])\n  -a, --scan-linux-alternatives                  Activate linux-alternatives scanning\n  -p, --scan-running-processes                   Activate running processes scanning\n  -r, --scan-windows-registry                    Activate windows registry scanning\n\n```\n\n### searching running java processes\nvia:\n\n    ./java-scanner scan -p\n\n### searching via 'linux: alternatives list --java\"\nvia\n\n    ./java-scanner scan -a\n\n### Searching in file system\n\n**Executing search in default file system root path below _/usr/lib/jvm_**\n\n    ./java-scanner scan -f\n\n**Executing search in given file system root paths:**\n\nBy using flag _scan-file-system-root-paths_:\n\n    ./java-scanner scan -f --scan-file-system-root-paths \"/home/vagrant/.sdkman,/usr/lib/jvm\"\n\nOr by using shorthand notation:\n\n    ./java-scanner scan -f -R \"/home/vagrant/.sdkman,/usr/lib/jvm\"\n\n**Exclude directories from search**\n\nBy using flag _scan-file-system-exclude-paths_ / _-E_:\n\n    ./java-scanner scan -f -R \"/home/vagrant/\" -E /home/vagrant/.sdkman/,/home/vagrant/.jdks/\n\n### Scan in windows registry for JavaHome keys\nTo search the windows registry for JavaHome Keys below the Path \"HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\", just run\n\n    ./java-scanner scan -r\n\n### Scan for java binary in  current path\nTo search for a java binary that is located via the current path, just run\n\n    ./java-scanner scan -c\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frattermeyer%2Fjps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frattermeyer%2Fjps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frattermeyer%2Fjps/lists"}