I tried watching many videos but still I can't import java.sql classes. I have edde them in my libraries too. I still can not figure out what have I done wrong. Please help me I still haven't created the database though
            Asked
            
        
        
            Active
            
        
            Viewed 637 times
        
    0
            
            
        - 
                    1I think you need a `requires java.sql` in your module definition. Can you post your module definition? https://stackoverflow.com/a/53005490/14955 – Thilo Apr 04 '19 at 10:36
- 
                    `java.sql` has got nothing to do with the mysql connector - the former is a runtime class and the latter a JDBC driver – specializt Apr 04 '19 at 10:36
- 
                    1@Thilo Bro You're a life saver. It worked. Thank you very much. – Ruvindra Yohan Apr 04 '19 at 10:42
- 
                    @specializt MySQL Connector/J depends on java.sql though... – Mark Rotteveel Apr 04 '19 at 11:06
- 
                    Do you have a `module-info.java` in your `src` folder? – Mark Rotteveel Apr 04 '19 at 11:07
- 
                    @MarkRotteveel yes. Now I edited it as Thilo suggested now it’s okay – Ruvindra Yohan Apr 04 '19 at 11:09
- 
                    Possible duplicate of [Java 9 migration issue - package com.mymodule is declared in unnamed module , module 'newmodule' does not read it](https://stackoverflow.com/questions/51888216/java-9-migration-issue-package-com-mymodule-is-declared-in-unnamed-module-mo) – Andrey Apr 04 '19 at 12:52



 
    