News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Paulo Garcia

JavaCPC on Mac from Command Line

Started by Paulo Garcia, 23:05, 09 July 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paulo Garcia

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






Zoe Robinson

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?

Singaja

Isn't a (ba)sh script enough to include cd dir prior to your execution line with args?

Morn

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

Devilmarkus

Quote from: Paulo Garcia on 23:05, 09 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....

Quote from: Morn on 23:05, 09 July 15
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

Morn

#5
Quote from: Devilmarkus on 17:16, 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



Paulo Garcia

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

Devilmarkus

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

Paulo Garcia

Works perfectly!


Thanks!

Powered by SMFPacks Menu Editor Mod