I want to access SQLite DB file in my ECLIPSE RCP application. Where i have to put it in my application?
And also at exporting a product how to define the path of Database file.
You can put the database file in your plugin and access it in the code by getting the plugin's Bundle. Look at the following article for examples on how to access a plugin's files: Getting Access To Files In Eclipse RCP
Related
My VB.Net application is using a data bound MS Access database. This app is going to distributed to multiple co-workers so according to almost every article I've read, I need to include the database in my project so that it will get deployed (copied to the user's local directory) when the Setup.exe is run. When I publish the project, I see both the Database.employ and the DataSet.xsd.employ files in my Application Files that gets created. Yet when I run the Setup.exe I get an error message telling me that it can't find the file. I manually check the Data folder where it's looking and there is nothing in it. It seems that the files I need to get deployed are not getting so.
Everything I've read so far explains how to deploy the database but I haven't been able to find anything about this error I'm receiving or why the files aren't getting copied to the Data folder.
When using ClickOnce to deploy, in order for files to be deployed into the Data directory the Publish Status for the file should be set to Data File on the project properties Publish tab -> Application Files...
I'm developing a web application in which I want to insert users and be able to display files that they upload via a search option. I can get all of the logic that I need sorted and the files uploaded into the correct directory. However, if I insert a new user into the db, the web app cannot find their file in the directory until I restart the server.
How can I make it so that the resources directory of my web app automatically gets refreshed by the server? I'm developing in Java/JSP and using Tomcat as my server.
Thanks!!
I'm guessing you're putting the files into the src/main/resources folder, then it's being packaged into the artifact and then you access them as the classpath resources. Then the next portion of the resources is going to be available after the next packaging.
Instead you should access the Files via usual File System and Absolute or Relative paths.
I'm using logback API for logging in my project but requirement is there will be single logback.xml configuration file for two project and logback.xml should be access from outside of project.
I have placed logback.xml in my project class path and this is working fine. Can any body suggest me how can I access logging configuration file from external folder?
You might find section of the Logback FAQ helpful: Is it possible for multiple JEE applications to share the same configuration file but without stepping on each other's toes?
In short, you can use any configuration file you want (provided that your Java application can access it) using JoranConfigurator.doConfigure("/path/to/your/config/file.xml"). HTH!
I have a new WinForms application that I'm trying to deploy with the ClickOnce method. However, the app.config file that is needed for the application is not included with the installation.
The application is installed properly from the server, and launches the exe, but as soon as I try to login by hitting my WCF Server, I get.
"Could not find the file 'C:\Documents and Settings\Adminstrator\Local Settings\Apps\2.0\7KAA3h20\app.config"
I can manually copy the file from my development machine to this folder and the application works fine.
Any ideas?
The application settings are included in the ClickOnce application as yourappname.exe.config. Are you accessing the app.config through a different mechanism that the global app settings?
Config file is included by default. Are you removing it for some reason?
You can choose files to be deployed on properties page (application files) if you are using Visual Studio.
If file is not in the list, you can add it to project and set build action to "Content" and it will show up in this list.
I have an MVC3 C#.Net web app. I am using the Aspose library to read an Excel file using the WorkBook.LoadData() method. I am able to Load a file from my local machine when running in Visual Studio. I am able to load a file from the web server when running the web site. However, when running the website, I cannot load an Excel file from my local machine. I get the following error
"Unable to open specified Excel Workbook: Could not find a part of the path"
When I grab the path it says it can't fins and use my "Run" command...it finds the file. So, it must be a permissions issue. I am sure there is a simple fix but I don't know what it would be. Any Ideas?
As I suspected, it was a permissions issue. It was not an Aspose issue. I used the MS Interop library to run ImpersonateUser() using a service account that has access to the external machines