okay, have friend developing online game , needs java run.
done on windows .bat file , has .jar file.
now, when open on mac, .jar not work.
if use have this...
code:
[color="green"]1. open terminal 2. type "cd (drag file here)" 3. enter text "java -xmx512m gui" , press enter. 4. open.[/color]
what add .command file or other type of file you. have double-click on , open on own.
believe if put .command file folder, automatically have directory changed.
need know how make run client having automatically enter "java -xmx512m gui".
how can this?
thanks!
you correct on first part, don't need first command changing directories. need this, in text file command extension:
code:
#!/bin/bash java -xmx512m gui & exit
i think that'll work, , close terminal window you. don't forget give start.command (or whatever) executable permission:
code:
chmod +x (drag file terminal window)
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment