Parent root= FXMLLoader.load(getClass().getResource("sample.fxml")); l’erreur vient d’ici     
Parent root= FXMLLoader.load(getClass().getResource("../sample.fxml")); et 
Parent root= FXMLLoader.load(getClass().getResource("./sample.fxml")); Mais ca ne marche pas
            Asked
            
        
        
            Active
            
        
            Viewed 23 times
        
    -2
            
            
         
    
    
        invzbl3
        
- 5,872
- 9
- 36
- 76
 
    
    
        SANFO Nemma
        
- 1
- 1
- 
                    Based on the limited information provided in your question, I've closed it as a duplicate. If after reading the duplicate in its entirety you feel your question is not a duplicate, then please [edit] your question to provide more information, including the error you're getting and a [mre] demonstrating said error. I also recommend reading https://stackoverflow.com/editing-help to help with formatting your questions in the future. – Slaw Aug 18 '23 at 20:37
- 
                    Additionally, please note that https://stackoverflow.com/ is an English-only site. – Slaw Aug 18 '23 at 20:38
- 
                    It is always wrong to use `..` in a `getResource` argument. The `..` syntax does not work with the [`jar:` protocol](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/JarURLConnection.html). Java will use the jar protocol to access resources in [jar files](https://docs.oracle.com/en/java/javase/20/docs/specs/jar/jar.html), a standard distribution method for Java application components. – jewelsea Aug 18 '23 at 20:51