3 ms·
When I say move across systems, I mean from vm to vm not from lin to win. While a .class file will technically run on any jvm. A java application is usually mo
by teknopaul 4y ago
When I say move across systems, I mean from vm to vm not from lin to win.
While a .class file will technically run on any jvm. A java application is usually more complicated and Uber jars don't work if you have stuff in meta-inf e.g. Spring.
I am primarily a java dev and I have no tools or own code that run with java -jar some.jar.
- ElectricalUnion 4y ago> While a .class file will technically run on any jvm. Not really, JDK 11 and further finally started removing deprecated implementation details, so you can't really run any class on any JVM - you ideally lockstep development and production JDK versions. > A java application is usually more complicated and Uber jars don't work if you have stuff in meta-inf e.g. Spring. This is more about the java application being complicated, and messing up with JAR metadata, not about stuff "not working"; in my experience, uber-jars built by Spring Boot "just work". > I am primarily a java dev and I have no tools or own code that run with java -jar some.jar. Most of my deployments were fleets of Spring Boot based services deployed with Containers with `RUN java -jar /app/my-project-name-1.0-RELEASE.jar`