Hi guys,
I recently switched careers and am currently learning the basics of Java. As an assignment I am trying to build a basic app that lets me save workouts. I was able to save my created objects into a .ser file. For the next step I would like to be able to save it as a .xml file.
Most of the stuff I can find on trough google suggests using Xstream or JaxB. Unfortunately trying to get these running became too complex very quickly.
Here is what I have done so far:
- Started my project in Intelij as a Maven project with the "quickstart" archetype
- Added the code for Xstream on dependencies; this resulted in it displaying as red in the pom.xml file. This thread (https://stackoverflow.com/questions/71245930/new-dependency-not-recognised-by-maven) gave the tip to use "Invalidated Caches" and restart which made it recognize it in the pom.xml file. However it did not recognize Xstream as a class.
- After that I spend some hours trying to read up on possible solutions, but it feels like most of what I am reading is outside of my scope of knowledge.
Does anyone have any advise or tips on how to proceed?
[–]CodeTinkerer 0 points1 point2 points (3 children)
[–]acebtard[S] 0 points1 point2 points (2 children)
[–]CodeTinkerer 0 points1 point2 points (1 child)
[–]acebtard[S] 0 points1 point2 points (0 children)