I created a java application and packaged it into a jar file on a Windows platform. Now I want to deploy this jar file on Debian Linux.
Will the same jar file work on Debian Linux?
Is the command used on Windows to execute the jar file from the command line the same for Debain Linux?
i.e.
java -jvm "MyJar.jar"
Will the above command work on Debian Linux?
Yes.
Jar files are portable across platforms, and the syntax of the jar command is the same for both Linux and Windows.
EDIT: Sun Java, . : http://wiki.debian.org/Java/Sun
, . :
1. jar Debian Linux?
. , Java ( )
2. , Windows jar , Debain Linux?
java -jar "MyJar.jar"
, java , , java.
-jvm.
jar, -jar.
Write once run where.
Mac, Linux Windows. JNI, , java -jar "MyJar.jar"
. :
, , JNI
, Linux:
java -jar YourJar.jar
:
java -jvm YourJar.jar
Source: https://habr.com/ru/post/1722204/More articles:Delete an object by key without first extracting it in the application engine (using JDO) - javaHow to think about bitwise operations for simple operations? - cЕсть ли простой способ удалить все значения по умолчанию для базы данных SQL? - sql-serverКак я могу писать веб-страницы, которые являются такими же легкими, как и Google или Yahoo - .netМатрицы преобразования CSS - csscss / images not showing when hosting ASP.NET MVC in IIS on Vista Home Premium - asp.net-mvcExclude SQL statement - sqlJava HTTP AUTH? - javaLINQ dynamic queries - c #X-Sendfile and VERY Big Files on Apache2 - pythonAll Articles