Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Opening .bat files
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vansmith" data-source="post: 1078958" data-attributes="member: 71075"><p>Hold on, we're going to start over. First off, if Jar Launcher works for you, go with it. It may not work because it looks as if you're passing parameters to the jar file. Otherwise, let's start again.</p><p></p><p>First, open up an editor and paste in the following:[code]#!/bin/sh</p><p>java -Xmx1000m -cp .;<location>/Theme.jar Bot 0 0 lowmem members 32[/code]Replace <location> with the location of the jar. So, using your example, if the jar file was in /Users/Name/Desktop/SilGar\ v3.6/FILES, make sure the contents of this file read as such:[code]#!/bin/sh</p><p>java -Xmx1000m -cp .;/Users/Name/Desktop/SilGar\ v3.6/FILES/Theme.jar Bot 0 0 lowmem members 32[/code]Save that with the extension <em>.sh</em>. Make sure to save it as plain text (if you're using TextEdit, go to Format > Make Plain Text before saving). Now, open up a Terminal and type the following:[code]chmod +x <location of sh file>/<sh file>[/code]For example:[code]chmod +x /Users/Name/jar_launcher.sh[/code]Once that is done, your script is ready to execute. If you want to execute it, simply type the directory and name of the script at the Terminal prompt. For example:[code]/Users/Name/jar_launcher.sh[/code]</p></blockquote><p></p>
[QUOTE="vansmith, post: 1078958, member: 71075"] Hold on, we're going to start over. First off, if Jar Launcher works for you, go with it. It may not work because it looks as if you're passing parameters to the jar file. Otherwise, let's start again. First, open up an editor and paste in the following:[code]#!/bin/sh java -Xmx1000m -cp .;<location>/Theme.jar Bot 0 0 lowmem members 32[/code]Replace <location> with the location of the jar. So, using your example, if the jar file was in /Users/Name/Desktop/SilGar\ v3.6/FILES, make sure the contents of this file read as such:[code]#!/bin/sh java -Xmx1000m -cp .;/Users/Name/Desktop/SilGar\ v3.6/FILES/Theme.jar Bot 0 0 lowmem members 32[/code]Save that with the extension [I].sh[/I]. Make sure to save it as plain text (if you're using TextEdit, go to Format > Make Plain Text before saving). Now, open up a Terminal and type the following:[code]chmod +x <location of sh file>/<sh file>[/code]For example:[code]chmod +x /Users/Name/jar_launcher.sh[/code]Once that is done, your script is ready to execute. If you want to execute it, simply type the directory and name of the script at the Terminal prompt. For example:[code]/Users/Name/jar_launcher.sh[/code] [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Opening .bat files
Top