Menu

Java newbie, missing .properties file

Help
Erik Godin
2014-08-28
2014-08-28
  • Erik Godin

    Erik Godin - 2014-08-28

    Hi,

    Java newbie here. I did my own research on the subject but can't seem to get beyond the following error message:

    java.util.MissingResourceException: Can't find bundle for base name net/sourceforge/schemaspy/dbTypes/MySQL, locale en_US

    ....
    java.io.FileNotFoundException: MySQL.properties (No such file or directory)

    I downloaded/extracted Mysql J connector. Here's what I tried:

    • When running schemaspy, I used the -dp to provide the path to the folder containing the .jar file for Jconnector
    • When running schemaspy, I used the -dp option to specify the full path to the .jar file
    • Searched for MySQL.properties
    • I unziped the mysqljconnector .jar and searched for MySQL.properties but don't see anything. Full error:


    java.util.MissingResourceException: Can't find bundle for base name net/sourceforge/schemaspy/dbTypes/MySQL, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1539)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1278)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:733)
    at net.sourceforge.schemaspy.Config.getDbProperties(Config.java:1242)
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:137)
    at net.sourceforge.schemaspy.Main.main(Main.java:42)
    java.io.FileNotFoundException: MySQL.properties (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at net.sourceforge.schemaspy.Config.getDbProperties(Config.java:1232)
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:137)
    at net.sourceforge.schemaspy.Main.main(Main.java:42)
    java.io.FileNotFoundException: MySQL (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at net.sourceforge.schemaspy.Config.getDbProperties(Config.java:1227)
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:137)
    at net.sourceforge.schemaspy.Main.main(Main.java:42)

    Thanks in advance for the help!

     
  • Erik Godin

    Erik Godin - 2014-08-28

    Note: i just figured out -dp is the path to the specific driver passed to the .jar file while -cp is what I was actually looking for to define classpath on the fly when launching JVM. I modified my command line to look like the following, however the same error still occurs:

    [root@mgmt1 ~]# java -cp /root/mysql-connector/mysql-connector-java-5.1.32-bin.jar -jar /root/schemaSpy_5.0.0.jar -t MySQL -db cloud -uroot -o /root/schemaspy/
    java.util.MissingResourceException: Can't find bundle for base name net/sourceforge/schemaspy/dbTypes/MySQL, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1539)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1278)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:733)
    at net.sourceforge.schemaspy.Config.getDbProperties(Config.java:1242)
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:137)
    at net.sourceforge.schemaspy.Main.main(Main.java:42)
    java.io.FileNotFoundException: MySQL.properties (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at net.sourceforge.schemaspy.Config.getDbProperties(Config.java:1232)
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:137)
    at net.sourceforge.schemaspy.Main.main(Main.java:42)
    java.io.FileNotFoundException: MySQL (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at net.sourceforge.schemaspy.Config.getDbProperties(Config.java:1227)
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:137)
    at net.sourceforge.schemaspy.Main.main(Main.java:42)
    [root@mgmt1 ~]#

     

Log in to post a comment.