Linked Questions

6 votes
4 answers
14k views

I've got a Java question that I've been having a trouble with: what is a good way to indicate relative file paths. Let me be more specific. I want to be able to say to always look for configuration ...
Alex Baranosky's user avatar
6 votes
2 answers
21k views

I have been browsing Stackoverflow all day looking for how to do this and I have not been successful yet I am packaging a quick game I made into a executable jar but I didnt reference the images ...
Mintybacon's user avatar
2 votes
5 answers
10k views

My Project Setup I have the following project setup: \program.jar \images\logo.png In my code, I reference the image with the relative URL "images/logo.png". Problem If I run this program ...
JesperGJensen's user avatar
9 votes
3 answers
1k views

I'm trying to add my java project in android studio. I got many references & added my Project in Android studio. Now i am unable to add the assets to my projects. So please help me to solve it ...
Arulnadhan's user avatar
0 votes
2 answers
2k views

I've done my research, but I just really can't get it to work. I'm using Spring Boot with Maven. Thymeleaf and jquery for my frontend. My directory: project-system/ ├── mvnw ├── mvnw.cmd ├── pom.xml ...
Rigo Sarmiento's user avatar
0 votes
1 answer
2k views

I am working on a project wherein I have to call my shell script stored at the location where my java files reside.I am currently calling the shell script by giving a hard-coded (absolute) path.I want ...
Umang Mukesh Mehta's user avatar
0 votes
1 answer
617 views

I am creating a simple REST service, which owns only REST resource (java class with Jersey annotations). This REST resource needs several Java objects to work. These Java objects are very big, a few ...
Ensom Hodder's user avatar
  • 1,548
1 vote
1 answer
329 views

I am working with a library as a JAR where i have added strings and sending the context of main Application to fetch string to register GCM. This is my method in the JAR file:- void registerGCM(...
Prabhjot Singh's user avatar
0 votes
0 answers
173 views

I am working on spring ,I want to read file name from a jar file,But I am getting FileNotFoundException. Any one help me, please check my code below. ClassPathResource classPathResource = new ...
Bhanuprasad's user avatar
0 votes
3 answers
90 views

The following line of code: SoyFileSet sfs = sfsBuilder.add(this.getClass().getResource("templates/mail.soy")).build(); works when run outside of a Jar but fails with a null pointer exception. ...
Jeff's user avatar
  • 1,601
1 vote
0 answers
49 views

My automation script is failing in a Java project, as it has another java project as a library imported, in which I am reading a file named 'browserstack.parallel.conf.json' in the 'res' folder using ...
abhishek narayan's user avatar