Questions tagged [application-resource]

A resource is any non-executable data that is logically deployed with an app.

.net:

Resource files are files that are part of an application but are not compiled, for example icon files or audio files. Since these files are not part of the compilation process, you can change them without having to recompile your binaries.

31 questions
3
votes
2 answers

Path for image loading

I want to add an image to a frame but I am not able to understand where I should keep the image file and how should I give the path of the image? I have placed an image in My Document folder and given that path but it gave an error message. I have…
Eljay
  • 941
  • 5
  • 15
  • 30
2
votes
1 answer

does not work in js file while work perfectly in jsp file

does not work in js file while it works perfectly in jsp file. I need to display alerts in font other than english for which i am making use of the applicationResource.properties file. It is working perfectly in jsp file but does not work with js…
sTg
  • 4,313
  • 16
  • 68
  • 115
2
votes
3 answers

Find all resource with specific extension from jar programmatically

I have a function which gets object of some type as it parameter. I have to get all the resource files having extension .yml from that location. How to do it?
Mohamed Jameel
  • 602
  • 5
  • 21
2
votes
1 answer

How to register custom application resources in application.ini in Zend Framework 1.11.x

I have created custom aplication resource: class Custom_Entitymanager extends Zend_Application_Resource_ResourceAbstract{ //... public function init (){ //... $em = \Doctrine\ORM\EntityManager::create($options['connection'], …
pixel
  • 24,905
  • 36
  • 149
  • 251
2
votes
3 answers

C#: Reference Application Resource File

If I have a File Default.html in my project How can I read it in code? I need the path One Possible Solution ./Controls/MarkdownEditor/Templates/Default.html works too. Also I set "Copy to output directory" to "Copy if newer"
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
2
votes
2 answers

How to read data from XML resource in Windows Store (Metro Style) app?

I have a windows store app. I have a XML file containing data. I need to add this file as resource of my app. I need to read data to XDocument from this file. 1) What build action I should set when add XML file to project? (I think this is…
Eugene Maksimov
  • 1,504
  • 17
  • 36
1
vote
1 answer

How to add src files to jar?

I have built a Java application that reads data from a txt file located in the src folder. The path I have specified in the program is /src/data.txt and it works when I run it from netbeans. However when I tried to open the jar file, nothing opens.…
1
vote
1 answer

making WPF dll, where to put Application.Resources?

I like to change Windows WPF app into .dll library. In windows App.xaml directory I have defined "Application.Resources".
esispaned
  • 283
  • 5
  • 20
1
vote
2 answers

loading texture from folder

I'm having a problem loading a JPEG onto a sphere. Currently, the only way I have gotten this to work is to have the image in the same package as the class loading it. The problem is, I don't want to have 500+ textures all under one package mixed…
user868935
1
vote
2 answers

Moving App.xaml Styles to Resource Dictionary

I have a custom control that uses styles that are in a resource dictionary that is in linked in the app.xaml. If I take the link off and add the link to the page that contains the control it doesn't work. Why is that? Why would my control (a dll)…
Barry Franklin
  • 1,781
  • 1
  • 27
  • 45
1
vote
1 answer

How do I define xaml content (stackpanel with content) as an application resource?

I'm sure this question is elementary understanding of Silverlight and has probably been asked several times before, but I'm having trouble finding search terms for what I'm looking for. In several views I have to implement something visual to warn…
0
votes
3 answers

Read contents of jar file given specific path

I have a jar file named "san.jar" with various folders like "classes", "resources", etc., Say for e.g i have a folder structure like "resources/assets/images" under which there are various images which I do not have any information about them like…
Santhosh Raj
  • 153
  • 3
  • 13
0
votes
1 answer

Image not found when running as Jar

I want to ask about a problem in my project: I have a class that extends JFrame, and I want to change the Java icon on that frame to another icon using this code: setIconImage(new ImageIcon(getClass().getResource("icon.PNG")).getImage()); I'm using…
ZeeDroid
  • 145
  • 1
  • 11
0
votes
1 answer

trying to read rtf file from Jar to JEditorPane; works in Netbeans, not from Jar

sorry if this is obvious, but I've been looking for days and I can't seem to find the answer. Here is the situation. I am trying to read from an rtf file located within a jar file and then display it in a JEditorPane. This is working from the…
0
votes
2 answers

application doesn't update language after changing the phone's language

i have created a simple xamarin.forms app in order to learn how to make my app multilingual. i found this tutorial https://www.c-sharpcorner.com/article/support-multiple-languages-in-xamarin-forms-application/ and applied it. the thing is, when i…
rana hd
  • 355
  • 3
  • 18
1
2 3