tag:blogger.com,1999:blog-694855878384792308.post5844263159957579534..comments2024-03-21T06:26:49.387-07:00Comments on Java67: How to Run a JAR file from Command Prompt - Windows and UNIX [Example]javin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-694855878384792308.post-67848558987201789542014-07-30T04:54:22.431-07:002014-07-30T04:54:22.431-07:00Make a batch file like this ...
@echo off
c:\Wind...Make a batch file like this ...<br /><br />@echo off<br />c:\Windows\System32\java.exe -jar %1<br /><br />(or whatever path contains your current updated java.exe)<br /><br />name it JavaRun.bat<br />and put it of course in System32 <br />then just type at the command line "JavaRun (name of your jar file)" and it executes<br />That's itAnonymoushttps://www.blogger.com/profile/17416229391368838428noreply@blogger.com