Results 1 to 4 of 4
  1. #1
    Crisanto is offline Member
    Join Date
    Oct 2008
    Rep Power

    Default Problem in setting Eclipse

    I always get this error when I run my java program. Anyone can help me please?:

    Caused by: java.util.MissingResourceException: Can't find bundle for base name com.prpddmi.glinterface.GLinterface, locale en_US
    at java.util.ResourceBundle.throwMissingResourceExcep tion(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at com.prpddmi.glinterface.glinterface.GLInterface.<c linit>(
    Exception in thread "main"

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    Can you explain what you are doing, what program you are executing and how?
    What source is at line 27 in
    Are you missing a properties file that the app needs?

  3. #3
    Crisanto is offline Member
    Join Date
    Oct 2008
    Rep Power


    Hello Norm,

    Here is the line 27 of the source: public static void main(String[] args) throws RemoteException {

    I have also the properties file that define the forname, database location. But it always sending error at line 27.

    It never get to this code

    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.text.DecimalFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.ResourceBundle;

    public class GLInterface {
    public GLInterface() {
    try {
    // jbInit();
    } catch (Exception ex) {
    static Connection csConn;

    private static ResourceBundle resBundle = ResourceBundle

    static String delimiter = resBundle.getString("Delimiter");

    public static void main(String[] args) throws RemoteException {

    // define date format for timestamping the output file
    String output;
    String protectDate = null;
    // @SuppressWarnings("unused")
    SimpleDateFormat batchFormatter;
    SimpleDateFormat entryFormatter;
    SimpleDateFormat effectiveFormatter;
    SimpleDateFormat timeStampFormatter;

    timeStampFormatter = new SimpleDateFormat(resBundle
    batchFormatter = new SimpleDateFormat(resBundle.getString("BatchDate")) ;
    entryFormatter = new SimpleDateFormat(resBundle.getString("EntryDate")) ;
    effectiveFormatter = new SimpleDateFormat(resBundle

    output = timeStampFormatter.format(new Date());

    PrintWriter write = null;
    try {
    //TODO: write a check to see if the file already exists
    write = new PrintWriter(new FileWriter(resBundle

    + output + ".txt", true));
    } catch (IOException ex) {
    System.out.println("Error: " + ex.toString() + " "
    + ex.getMessage());

    // set up 3G ODBC link
    String csdata = resBundle.getString("3GConnection");

    try {
    // begin creation of JDBC ODBC bridge

    // set connection, include username, password if necessary
    csConn = DriverManager.getConnection(csdata, resBundle
    .getString("csadmin"), resBundle.getString("3gtest"));

    Thank for your help

  4. #4
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Rep Power

    Default is not found in the package com.prpddmi.glInterface,check if it is there

Similar Threads

  1. Problem in setting icon for JFrame!
    By pranav13 in forum AWT / Swing
    Replies: 8
    Last Post: 11-04-2008, 05:24 AM
  2. Eclipse AST problem
    By java_neophyte in forum Eclipse
    Replies: 0
    Last Post: 10-04-2008, 11:49 AM
  3. Setting up CVS using Eclipse???
    By JavaInLove in forum Eclipse
    Replies: 1
    Last Post: 07-18-2008, 02:03 PM
  4. Setting up class path for Eclipse
    By tsantana in forum Eclipse
    Replies: 1
    Last Post: 04-07-2008, 07:05 PM
  5. Problem Setting offscreen background
    By D34N0 in forum Java Applets
    Replies: 1
    Last Post: 07-14-2007, 11:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts