Closed DAYS2 closed 2 years ago
I had the same issues with building RiseV2G with java version > 8. So I made a pull request for building RiseV2G on java 11 and higher see #76.
For the error on the java 8 compiled jar, the issue is that you are missing the .properties
file. The first line after java -jar
notes that with FileNotFoundException
. An example .properties
file is in the repository.
Regarding your comments on the .properties file he cannot find, how can I solve it that he can find it?
If I understand you correctly, it should in my project list, which it is.=!
The photo's below show that the file is in the project.
/ / / /
It should be available during runtime, in the same folder as the jar. In your example you copied the jar to your desktop, so the .properties
file should also be on your desktop.
Thank you for that.
I was in the assumption that after a build everything is included in the jar file and are able to start the jar file. Is my conclusion correct, that I have to copy the project map to my raspberry and start it the same way?
Sorry for my question, new to this java
It should be available during runtime, in the same folder as the jar. In your example you copied the jar to your desktop, so the
.properties
file should also be on your desktop.
Okay, thanks for the clarification. I'm new to this and java. I thought after the build, everything would be included in the jar.
After a few modification i was able to build it properly and make it work between laptop and raspberry
Hi there, this is an assignment for my internship and i'm new to java. Does anybody know how and what I have to add in order for a proper build en working of the application? What creative solution am I missing? I've been working on it for a while to make it work.
I hope somebody can help me with this
In order to compile and build V2G-RISE with mvn clean install, the proper java JDK need to be included in the project of Eclipse. This would be JDK 8. This is because V2G-RISE is build on JDK8.
When you have JDK 8 in the Eclipse V2G RISE project, but you have a higher version of JAVA installed on your computer, it will not compile and build. The reason for this is that it is not able to find the package javax.xml.bind annotation. I encountered this because I had java 17 on my laptop.
Result
This is because after java 8 some packages are removes or deprecated as one calls it After searching on the web, I found that you are able to overcome this by adding some properties and dependencies.
This is what I found and added to the POM.xl file in the Parent section.
this needed to be added at properties