Great video! Btw, a really nice way to show off the usefulness of being able to install multiple JDKs is to use some new code feature that only exists in that version (eg. "record") and then add "//JAVA 15" to the file. If you run it you will see that Jbang will automatically download Java 15 for you before running the code. It makes it really easy to share little snippets of code or small tools without having to worry that the other person has the correct Java version installed.
@digiwizkid4 жыл бұрын
A nice introduction to JBang, please do a simple automation job example using it. Thanks
@DanielPersson4 жыл бұрын
Hi Digiwizkid. Thank you for watching my videos. There is a lot of different automation jobs you could setup but I don't have anything I want to automate with jbang at the moment but if you have a more specific example I might look into it if it's an interesting problem that more people might be interested so see a solution about. Best regards Daniel
@digiwizkid4 жыл бұрын
Hi! Thanks for responding. I was thinking about automating android apps, something like this kzbin.info/www/bejne/eqbCkH2cjdamd9U I do understand the complexity involved in this example, but even achieving a similar simpler task would be great. Regards, Digiwizkid
@DanielPersson4 жыл бұрын
Hi again Digiwizkid. I watched that video and I really like the way he approach it. Played a game 3 years ago on my gaming channel and when I had a puzzle that was so tedious that I did not want to think about the solution I created a program to find all the solutions to that puzzle.. Pretty sure I made a video about it as well but I can't find it now. So the prospect of playing games or solving puzzles with code is a really alluring one so I will look into creating that kind of videos in the future. Not sure what jBang will add to that equation but using java is a given :) Any suggestion on games I can try to solve with code? Best regards Daniel
@LeandroCoutinho4 жыл бұрын
Amazing video! Thanks a lot for doing it! =)
@ЛеонидГ-я1я3 жыл бұрын
Very helpful video. Thank you! But the only thing I cannot understand. How vscode knows how to find dependencies? Deps in comments is not standard. And I couldn't see any .pom .groovy here. Was there some special plugin?
@DanielPersson3 жыл бұрын
Hi Леонид Thank you for watching my videos. Very astute of you; there is special tooling involved here. I run all commands using JBang, which reads those comments, applies missing dependencies, and handles the builds. Unfortunately, VSCode does not handle any of the dependencies and can't really display them either. So for actual java development where you need to keep track of your dependency, I recommend using IntelliJ. I hope this helps. Best regards Daniel
@sharifyy2 жыл бұрын
Nice video. Thanks for sharing. How to set port for rest server?
@DanielPersson2 жыл бұрын
Hi Mohamad Thank you for watching my videos. You should be able to change the port using the "-Dquarkus.http.port=8888" according to the documentation. Or you could use the same variable in resources/application.properties. I've not played around more with quarkus so I can't say for sure that this works. I hope this helps. Best regards Daniel
@MaxRydahlAndersen4 жыл бұрын
Thanks for spreading the info! Good walkthrough, but doing ./hello.java should actually also work in a bash like env like mingw on windows - if it does not that is a bug - I spent way too many nights checking that worked. If you can reproduce do please open a bug for what you use and I'll get it fixed.