Author Topic: JavaCPC on Mac from Command Line  (Read 1845 times)

0 Members and 1 Guest are viewing this topic.

Offline Paulo Garcia

  • CPC464
  • **
  • Posts: 25
  • Country: ca
  • The ninja also loves the CPC464 :)
    • Vintage Is The New Old
  • Liked: 15
  • Likes Given: 10
JavaCPC on Mac from Command Line
« on: 01:05, 10 July 15 »
Hi,


to make easier the development, I am trying to run JavaCPC from command line on my mac, passing the DSK file using the following command:
 java -jar  /Applications/Emulators/JavaCPC_Desktop_2.9l/JavaCPC.jar --cpctype CPC464 --df0 ./animation.dsk --bootdrive df0 --desktop off
which actually works. However, since I am not in the JavaCPC folder, it insists to launch the Updater and download everything in the current folder. So I wonder if there is a way to avoid that other than run the command from the JavaCPC folder?


Thanks






Offline Zoe Robinson

  • Supporter
  • 6128 Plus
  • *
  • Posts: 684
  • Country: gb
  • I become a minor egg
    • ZoeRobinson.com
  • Liked: 689
  • Likes Given: 703
Re: JavaCPC on Mac from Command Line
« Reply #1 on: 11:12, 10 July 15 »
I've not tried this and haven't the time to right now but would a solution not be to create a script that jumps to the JavaCPC folder and runs the program from there?

Offline Singaja

  • CPC6128
  • ****
  • Posts: 168
  • Country: pl
  • Liked: 113
  • Likes Given: 522
Re: JavaCPC on Mac from Command Line
« Reply #2 on: 11:45, 10 July 15 »
Isn't a (ba)sh script enough to include cd dir prior to your execution line with args?

Offline Morn

  • 464 Plus
  • *****
  • Posts: 346
  • Country: de
  • Liked: 94
  • Likes Given: 59
Re: JavaCPC on Mac from Command Line
« Reply #3 on: 12:13, 10 July 15 »
Maybe you could just remove Update.jar, then it shouldn't be able to update.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC on Mac from Command Line
« Reply #4 on: 19:16, 10 July 15 »
to make easier the development, I am trying to run JavaCPC from command line on my mac, passing the DSK file using the following command:
 java -jar  /Applications/Emulators/JavaCPC_Desktop_2.9l/JavaCPC.jar --cpctype CPC464 --df0 ./animation.dsk --bootdrive df0 --desktop off
which actually works. However, since I am not in the JavaCPC folder, it insists to launch the Updater and download everything in the current folder. So I wonder if there is a way to avoid that other than run the command from the JavaCPC folder?

I`ll add parameter --noupdate or --nocheck to avoid that in next release....

Maybe you could just remove Update.jar, then it shouldn't be able to update.

The update.jar is also inside JavaCPC.jar, so deleting it causes nothing, because JavaCPC checks this file on every startup ;)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Morn

  • 464 Plus
  • *****
  • Posts: 346
  • Country: de
  • Liked: 94
  • Likes Given: 59
Re: JavaCPC on Mac from Command Line
« Reply #5 on: 19:45, 10 July 15 »
The update.jar is also inside JavaCPC.jar, so deleting it causes nothing, because JavaCPC checks this file on every startup ;)
So in other words, JavaCPC is an unstoppable force of evil that will stop at nothing to enslave humanity?

Well, I for one welcome our new byte-compiled overlords.  :D


« Last Edit: 19:47, 10 July 15 by Morn »

Offline Paulo Garcia

  • CPC464
  • **
  • Posts: 25
  • Country: ca
  • The ninja also loves the CPC464 :)
    • Vintage Is The New Old
  • Liked: 15
  • Likes Given: 10
Re: JavaCPC on Mac from Command Line
« Reply #6 on: 02:33, 11 July 15 »
The --update flag is probably a good idea.


I am actually changing to the installation folder to avoid the update for now, but it complicates a bit since I have to pass the full path of the DSK as well.


Thanks

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC on Mac from Command Line
« Reply #7 on: 17:54, 11 July 15 »
I rolled out update 2.9m
Please let JavaCPC check for updates...
(I removed the check for Update.jar, users can do this manually now in help menu, when something goes weird)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Paulo Garcia

  • CPC464
  • **
  • Posts: 25
  • Country: ca
  • The ninja also loves the CPC464 :)
    • Vintage Is The New Old
  • Liked: 15
  • Likes Given: 10
Re: JavaCPC on Mac from Command Line
« Reply #8 on: 22:37, 11 July 15 »
Works perfectly!


Thanks!