JavaFX for VSCODE ( UNDER 2 MINUTES !! )

Поделиться
HTML-код
  • Опубликовано: 15 окт 2024
  • JavaFX SDK : openjfx.io/
    The last line : "vmArgs": "--module-path \"Your Path To The lib Folder" --add-modules javafx.controls,javafx.fxml"

Комментарии • 64

  • @HarshJadon9
    @HarshJadon9 Год назад +7

    Great help, thx man ❤
    Few things i wanna add,
    update to latest java SE and JDK and restart once, then follow the video.

  • @Airstrike_lol
    @Airstrike_lol 2 месяца назад +1

    you cannot imagine how thankful i am of you, watched so many 15 min+ tutorials for absolutly NOTHING and you made a 2 minute video and it worked instantly, instant like, youre awesome thank you!!!!!!!!!!!!!!!!!

    • @net0x206
      @net0x206  2 месяца назад

      @@Airstrike_lol So glad it worked for you!

  • @GlebRodin
    @GlebRodin Год назад +9

    You are awesome. Thank you so much for the video! I went through almost 10 tutorials about 5-10 minutes each and no luck. I really appreciate it. I need this thing running for my college project!

    • @net0x206
      @net0x206  Год назад

      Ha, same exact thing for me, glad i could help !

  • @dyahmustikasari-f4f
    @dyahmustikasari-f4f 8 месяцев назад +1

    Thank you so...much, it's only takes 2 minutes, but so useful for me. I confused first cause it didn't work, but then I found what wrong is, the double backslash on the path to the lib folder. Great.

  • @SpyerOff
    @SpyerOff Год назад +20

    Not working for me, says javafx missing components

    • @jacobh1833
      @jacobh1833 6 месяцев назад +1

      Try:
      "vmArgs": "--module-path \"LIB PATH\" --add-modules javafx.controls,javafx.fxml",
      You must include the \" around the path, which for all the videos and threads I saw don't. Maybe it's a VS thing that changed quietly.
      Additionally, each java file you add or make you must edit the launch.json to include that path.

    • @SpyerOff
      @SpyerOff 6 месяцев назад

      @@jacobh1833 Nice thx man

    • @salaisoumya9005
      @salaisoumya9005 6 месяцев назад

      @@jacobh1833 thank you sir , I too got same error !!.. you save my day

    • @mohamedferoz
      @mohamedferoz 3 часа назад

      Just create a javafx project instead of a java project, this solved the issue for me.

  • @aarushraj8934
    @aarushraj8934 8 месяцев назад +3

    Error occurred during initialization of boot layer
    java.nio.file.InvalidPathException: Illegal char at index 95: C:sersarushownloadspenjfx-21.0.2_windows-x64_bin-sdk (1)avafx-sdk-21.0.2ib --enable-preview -XX:+ShowCodeDetailsInExceptionMessages -cp C:\\Users\\Aarush\\AppData\\Roaming\\Code\\User\\workspaceStorage\\22490aef2b6d66ff556f31983bddfc39\
    edhat.java\\jdt_ws\\JavaFX_1dcb2023\\bin. This error is showing in the terminal

    • @kelex5630
      @kelex5630 Месяц назад

      I got this same error at first. Make sure the path in the "vmArgs" is in this format \"C:\\user\\test\\jdk\\lib\". The \ before both of the quotation marks " escapes the character so it won't cause a syntax error. So it should be something like this: "vmArgs": "--module-path \"C:\\user\\test\\jdk\\lib\" --add-modules javafx.controls,javafx.fxml"

  • @MTMByt
    @MTMByt Год назад +4

    This video is amazing. I've been looking for so long and this was the only thing that worked. You should make more tutorials.

  • @mohammadabualadous5678
    @mohammadabualadous5678 5 месяцев назад +1

    I have been trying to do this for DAYS! You helped me do it in 2 minutes. Thank you so much!

    • @net0x206
      @net0x206  5 месяцев назад

      Nice man! Glad it worked for you

  • @zapking8209
    @zapking8209 9 месяцев назад +1

    Thank you so much, I needed to download this to cram for a java placement test I'm taking in a week and this was the only tutorial I found that worked

    • @net0x206
      @net0x206  9 месяцев назад +1

      So glad i could help !

  • @PraiseKolawole-j3s
    @PraiseKolawole-j3s 4 дня назад

    Finally I found one that works, thanks a lot man

  • @AnthonySu-x9f
    @AnthonySu-x9f 23 дня назад +1

    I watch like three 30 mins tutorial and didn't help, but this save my ass. Thank you!

  • @Влад-л2к1й
    @Влад-л2к1й Год назад +2

    Велике дякую, добра людина.

  • @iannmy5593
    @iannmy5593 10 месяцев назад +1

    TY SO MUCH YOU ARE A LIFESAVER! I HOPE EVERYTHING GOOD HAPPENS IN YOUR LIFE! YOURE THE BESTTT

    • @net0x206
      @net0x206  10 месяцев назад

      haha, so glad it helped !

  • @Ahmet-x8l8c
    @Ahmet-x8l8c 3 месяца назад

    Not all heroes wear capes....
    ps: I was gonna say, one thing you could do to be perfect is adding that command line but apparently you did that too, i am speechless.

  • @thesmart4128
    @thesmart4128 9 месяцев назад +1

    Works perfectly

  • @henintsoapaulmanitraja9779
    @henintsoapaulmanitraja9779 Год назад +1

    Thank you very much for the tuto! It was really helpful and straigthforward👍

  • @divanostaccionato1931
    @divanostaccionato1931 7 месяцев назад +1

    this was really useful thanks :)

    • @net0x206
      @net0x206  7 месяцев назад

      Glad it worked for you !

  • @net0x206
    @net0x206  Год назад

    Please understand that i'm in no shape or form equipped to trouble shoot if you have a problem with this solution. I'm just showing what worked for me as you can see in the video

  • @biasnielsen9222
    @biasnielsen9222 Год назад +1

    10/10 mate!

    • @net0x206
      @net0x206  Год назад +1

      Glad i could help !

  • @ZbagdoesMC
    @ZbagdoesMC 11 месяцев назад

    code you provided doesnt work even after you change the path

  • @shoyur
    @shoyur 2 года назад +1

    Can you help me ? Each time i open the project from another folder or another computer, it creates a new configuration object in the launch.json, but without the "vmArgs" so i get an error and need ot add the line, every time, its a real problem if i give my project to someone else.. thank you so much !

    • @net0x206
      @net0x206  2 года назад

      if you open the project on another computer the path to the FX/lib fodler will be different i asume so you need to change it anyway, but you can send the .JSON at tell them to add that line according to ther file structure. I don't know another solution to that problem

    • @shoyur
      @shoyur 2 года назад

      @@net0x206 no, the path is the same because i have out this :
      "vmArgs": "--module-path ${workspaceFolder}/lib/JavaFx/lib --add-modules javafx.controls,javafx.fxml"

    • @shoyur
      @shoyur 2 года назад

      because i edit them at home, and then at work, and also i need to share them for review and suggestions, so each time its a new computer, it thinks its a new root folder or something, EVEN if i have put ${workspaceFolder}/lib/JavaFx/lib as the path. For example, right now it has :
      "configurations": [
      {
      "type": "java",
      "name": "Launch App",
      "request": "launch",
      "mainClass": "App",
      "projectName": "Labo1_bf8fbf9",
      "vmArgs": "--module-path ${workspaceFolder}/lib/JavaFx/lib --add-modules javafx.controls,javafx.fxml"
      }
      ]
      but if i move that project elsewhere, this object will be remade bellow copied as a second object but with a different random name beside Labo1_... but without the vmArgs so it crashes... :(

    • @shoyur
      @shoyur 2 года назад

      Thank you !

  • @shekharchaurasiya5236
    @shekharchaurasiya5236 2 месяца назад

    Thank you brother.

  • @hungvu8633
    @hungvu8633 Год назад

    help me this error with ?
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

  • @sooskar
    @sooskar 5 месяцев назад

    hey i dont know if this is a mac problem but i get this error code: Error occurred during initialization of boot layer
    java.lang.module.FindException: Module javafx.controls not found

  • @Flambrew
    @Flambrew Год назад

    I keep getting this error
    Graphics Device initialization failed for : d3d, sw
    Error initializing QuantumRenderer: no suitable pipeline found

    • @net0x206
      @net0x206  Год назад

      I don't know about that error. Sounds like a windows problem

  • @Hikyu
    @Hikyu 2 года назад +2

    Greatest chad

  • @danielsegura1568
    @danielsegura1568 9 месяцев назад

    how can you get the java projects dropdown to show up in vs code?

    • @danielsegura1568
      @danielsegura1568 9 месяцев назад

      nevermind found it in the search util ctrl+shift+f

    • @danielsegura1568
      @danielsegura1568 9 месяцев назад

      Thanks for the vid helped me a lot!

  • @dmj2_
    @dmj2_ 10 месяцев назад +1

    thank you for making this

  • @jusepie5713
    @jusepie5713 Год назад

    can you create a video that shows how to connect scene builder to VScode please

  • @Xxxxxxxxxxyyx
    @Xxxxxxxxxxyyx Год назад +2

    danke dir

  • @naaboom8276
    @naaboom8276 День назад

    didn't work for me unfortanutely

  • @csubh
    @csubh Год назад +1

    loveu man

  • @joel.forteza
    @joel.forteza 16 дней назад

    how do you have that great desk????

    • @net0x206
      @net0x206  16 дней назад

      @@joel.forteza its an app called rocket dock

  • @sharjeelraza5928
    @sharjeelraza5928 Год назад

    for some reason it output nothing

  • @Rat__
    @Rat__ Год назад +1

    Godsent

  • @lauris5275
    @lauris5275 11 месяцев назад

    I can build simple java app, but Im too dumb and cant set up my station.

  • @sdgagas
    @sdgagas Год назад

    чео ты решил мою проблему которую я решал 3 дня
    ебать ты лучшый

  • @sahltyy
    @sahltyy 11 месяцев назад

    pray for me yall

  • @Dany-oj5ve
    @Dany-oj5ve 4 месяца назад

    Didn't help