I am really stumped. I'm just an old C X11/Motif programmer trying to write a little Java program. After a week of reading the Oracle Java Documentati ...
I am really stumped. I'm just an old C X11/Motif programmer trying to write a little Java program. After a week of reading the Oracle Java Documentati ...
I am trying to play a .wav file but having trouble doing so with a relative path function. If I run the code above in IntelliJ, I receive the error ...
Inside my resources folder I have a folder called init. I want to copy that folder and everything inside of it to the outside of the jar in a folder c ...
Yesterday I finally finished my JavaFX application which perfectly ran in IDE, but when I tried to convert it to a .jar file and then run it... it did ...
I've created a jar-File with maven. When i open this jar i can find the following content: When i'm running this code snippet in Eclipse, content o ...
I want to create Object Class with draw methode from an image resource ask in a View of an Android application. I have 3 java files : Balle.java : ...
Application: Spring Boot, Image: OpenJDK 8, PaaS: Openshift, Package: jar, Error: No such file error. java.nio.file.NoSuchFileException File Location: ...
I want to load a font in a SWT. My ttf file is in the resources/fonts directory of my Maven project. I try to load it like this: URL fontURL = MyClas ...
I’m developing a application where I need to load a schema file (xsd) as resource from the jar file, but the file path of getClass().getResource(“..”) ...
As the title says, I've been trying to get images into my JOption Message dialogs. I've gotten them to show when running it in eclipse, but when I exp ...
I have the following error in my Spring Boot Application: The application runs without errors in IntelliJ. After packaging to .jar or .war its unab ...
I hope someone can help me here, becouse I'm fighting with a problem for some time. In my main class I use this command: The problem I've got is th ...
Trying to run a file as a part of an assignment. File was given with the following lines However getResource returns null. The file it is trying to ...
I am trying to load some data into an AWS lambda and am using getClass().getResource() to do so. This returns a nice URL that in logs seemingly prints ...
when i run this line: URL myurl = getClass().getResource("/bla.xml"); I got myurl is null if I try to debug in runtime this value "getClass().getR ...
I'm working on a event-calender in a mulit-level website for bands and choirs. Each band has his own page (made by Collections). A sub-document is use ...
In my Eclipse project I have a "src" folder that's linked from a one drive folder. I have some other text files in the linked folder that I want to lo ...
I am trying to get to a file located under resources and get null: Even if the file is directly under resource or under one of the folders under i ...
I am a newb so please don't hit me too hard. I have been trying to figure this out for like 2 days now reading posts and blogs and I keep getting a Nu ...
This may have been asked a lot but for some reason, my getResource method could not find the file in my resource folder. The file is in programfolder/ ...