{"id":15069645,"url":"https://github.com/wolven531/javafun","last_synced_at":"2026-01-03T14:05:51.201Z","repository":{"id":84114045,"uuid":"150524667","full_name":"Wolven531/JavaFun","owner":"Wolven531","description":"This repository is for messing around with Java","archived":false,"fork":false,"pushed_at":"2018-10-24T03:38:23.000Z","size":1164,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T09:14:46.131Z","etag":null,"topics":["hobby","hobby-project","java","javase","learning","learning-by-doing","learning-java"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Wolven531.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}},"created_at":"2018-09-27T03:38:43.000Z","updated_at":"2023-02-18T16:39:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6e45d4c-a4ee-4452-a6d5-9853b0423da9","html_url":"https://github.com/Wolven531/JavaFun","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/Wolven531%2FJavaFun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolven531%2FJavaFun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolven531%2FJavaFun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wolven531%2FJavaFun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wolven531","download_url":"https://codeload.github.com/Wolven531/JavaFun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847060,"owners_count":20357317,"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":["hobby","hobby-project","java","javase","learning","learning-by-doing","learning-java"],"created_at":"2024-09-25T01:43:46.337Z","updated_at":"2026-01-03T14:05:51.195Z","avatar_url":"https://github.com/Wolven531.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaFun\n\nThis repository is for messing around with Java\n\n## Reference Materials\n\n* [System properties](https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html)\n* [String Formatting](https://dzone.com/articles/java-string-format-examples)\n* [Try with resources](https://www.baeldung.com/java-try-with-resources)\n* [Maven in 5 minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)\n* [How to create runnable JAR file](https://www.baeldung.com/executable-jar-with-maven)\n* [Build a runnable JAR in 5 minutes](https://cwiki.apache.org/confluence/display/MAVEN/Tutorial%3A+Build+a+JAR+file+with+Maven+in+5+minutes)\n  * This is the only runnable JAR related resource that actually worked for me (includes command line example of running JAR)\n* [Download page for dos2unix](http://dos2unix.sourceforge.net)\n* [Download page for Mockito JAR 2.0.2 beta](https://mvnrepository.com/artifact/org.mockito/mockito-all/2.0.2-beta)\n* [Chocolatey install instructions](https://chocolatey.org/docs/installation)\n\n## Useful Tips\n\n* Install Chocolatey\n\n```PowerShell\nSet-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\n```\n\n* Install JDK\n\n```PowerShell\nchoco install jdk8 -params 'installdir=C:\\\\java8' -y\n```\n\n* Install Maven\n\n```PowerShell\nchoco install maven -y\n```\n\n* Install netbeans\n\n```PowerShell\nchoco install netbeans -y\n```\n\n* Line endings fix\n\n```PowerShell\nGet-ChildItem -Path . -Filter '*.*' -Recurse | ForEach-Object { dos2unix.exe $_.FullName }\n```\n\n* Generate JDK 8 project using Maven\n\n```PowerShell\ncmd /c mvn archetype:generate -DarchetypeArtifactId=\"archetype-quickstart-jdk8\" -DarchetypeGroupId=\"com.github.ngeor\"\n```\n\n* List contents of JAR (**J**-ava **AR**-chive file)\n\n```PowerShell\njar tf .\\target\\javafun-1.0-SNAPSHOT.jar\n```\n\n* Run project using command line (from repository root)\n\n```Cmd\nrunProgram.cmd\n```\n\n* Make PowerShell scripts runnable\n\n```PowerShell\nSet-ExecutionPolicy Bypass -Scope LocalMachine\n```\n\n* Run project using PowerShell (from repository root)\n\n```PowerShell\nSet-ExecutionPolicy Bypass -Scope Process -Force; ./runProgram.ps1\n```\n\n* Quick and dirty environment setup (using Chocolatey)\n\n```PowerShell\nchoco install copyq git maven jdk11 netbeans -y\n```\n\n* Maven commands\n  * `mvn clean` - Delete `./target` directory (previous builds)\n  * `mvn install` - Create `./target` directory (new build)\n  * `mvn clean install` - Delete AND create `./target` directory (💯 new build)\n  * `mvn compile` - ???\n  * `mvn assembly:single` - ???\n  * `mvn jar:jar` - ???\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolven531%2Fjavafun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolven531%2Fjavafun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolven531%2Fjavafun/lists"}