Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6833007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:55:39+00:00 2026-05-26T22:55:39+00:00

I exported a project that reads 2 configuration files. However, when I execute the

  • 0

I exported a project that reads 2 configuration files. However, when I execute the jar, it gets this error:

    Error: java.io.FileNotFoundException: config/dbConnection.config (No such file or directory)
    Error: java.io.FileNotFoundException: config/test.config (No such file or directory)
    com.smart.ets.services.ServiceException: com.smart.ets.services.ConfigErrorException
        at com.smart.ets.services.TransactionServiceImpl.getConfigData(TransactionServiceImpl.java:30)
        at com.smart.ets.controllers.Simulator.getTransactionSimulationResults(Simulator.java:41)
        at com.smart.ets.controllers.Simulator.main(Simulator.java:26)
    Caused by: com.smart.ets.services.ConfigErrorException
        ... 3 more
    mickey91@mickey-espiritu:~/Documents/Dropbox$ java -jar ETS.jar
    Error: java.io.FileNotFoundException: config/dbConnection.config (No such file or directory)
    Error: java.io.FileNotFoundException: config/test.config (No such file or directory)
    com.smart.ets.services.ServiceException: com.smart.ets.services.ConfigErrorException
        at com.smart.ets.services.TransactionServiceImpl.getConfigData(TransactionServiceImpl.java:30)
        at com.smart.ets.controllers.Simulator.getTransactionSimulationResults(Simulator.java:41)
        at com.smart.ets.controllers.Simulator.main(Simulator.java:26)
    Caused by: com.sm

art.ets.services.ConfigErrorException
    ... 3 more

Any way to fix this? It works if I run the project(not the jar file of the project)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:55:40+00:00Added an answer on May 26, 2026 at 10:55 pm

    You neglect to mention how you’re accessing the files, but from the error it looks like you’re trying to access them as files–but they’re not, they’re resources on the classpath.

    As such, you should be using getResourceAsStream. The name of the resource would be the package-relative path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have exported a project to a runnable JAR in eclipse. There are a
There is Google App Engine Java project A that is based on a large
I have exported my project as a jar file earlier today and it is
Currently, in my eclipse project, I have a file that I write to. However,
I have three java projects that are being included in the main project. 2
I'm trying to tweak a project template file exported by Visual Studio's Export Template
I have exported a COM+ application proxy, which generates MSI and CAB files, and
I have this exported file of some weird (standard for this industry!) format, which
We have some stuff that may be exported into various formats. Currently we have
I have a project that has to export images to PDF. Images and text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.