Run my .jar on linux
Joe.Cole
Posted messages
10
Status
Membre
-
missaoui -
missaoui -
Hello,
Actually, I created a project in Eclipse on Windows and I wanted to run it on Linux. I don't know how to do it!
I created my project.jar from Eclipse.
What should I do next?
What command should I type in the console?
Thank you for your help
Actually, I created a project in Eclipse on Windows and I wanted to run it on Linux. I don't know how to do it!
I created my project.jar from Eclipse.
What should I do next?
What command should I type in the console?
Thank you for your help
Configuration: Windows XP Firefox 2.0.0.1
5 réponses
The command is :
Of course, you need to have the JRE installed.
--
“The enemy is stupid: he believes that we are the enemy when in fact it's him!” - Pierre Desproges
java -jar "your_program.jar"
Of course, you need to have the JRE installed.
--
“The enemy is stupid: he believes that we are the enemy when in fact it's him!” - Pierre Desproges
You just need to execute the command:
java -jar filename.jar
Boudjemaa Missaoui
Expert in systems and networks technologies:
Microsoft Windows, VMware, Linux, Profibus/ASI, SCADA
java -jar filename.jar
Boudjemaa Missaoui
Expert in systems and networks technologies:
Microsoft Windows, VMware, Linux, Profibus/ASI, SCADA
Hi,
for your questions about libraries added via Eclipse, they are usually encapsulated in the jar file it seems. However, if your program calls external libraries, then you will need to install Eclipse on Linux.
As for the directory on your Windows machine, a Samba mount on your Linux machine should do the trick.
Run a
--
“The enemy is stupid: he thinks we are the enemy when it is actually him!” - Pierre Desproges
for your questions about libraries added via Eclipse, they are usually encapsulated in the jar file it seems. However, if your program calls external libraries, then you will need to install Eclipse on Linux.
As for the directory on your Windows machine, a Samba mount on your Linux machine should do the trick.
Run a
man javafor more information on this command.
--
“The enemy is stupid: he thinks we are the enemy when it is actually him!” - Pierre Desproges