DarkoT Active Member Licensed User Longtime User Feb 23, 2022 #1 Hi, maybe will be this stupid question - but - someone says that is no stupid questions, just stupid answares... It's posible to start B4J UI app with arguments from command line? If yes - how can pass parameters in debug mode (from B4J IDE).. Thanks...
Hi, maybe will be this stupid question - but - someone says that is no stupid questions, just stupid answares... It's posible to start B4J UI app with arguments from command line? If yes - how can pass parameters in debug mode (from B4J IDE).. Thanks...
DonManfred Expert Licensed User Longtime User Feb 23, 2022 #2 DarkoT said: It's posible to start B4J UI app with arguments from command line Click to expand... Use JShell to start any program. Even with Parameters. Upvote 0
DarkoT said: It's posible to start B4J UI app with arguments from command line Click to expand... Use JShell to start any program. Even with Parameters.
DarkoT Active Member Licensed User Longtime User Feb 23, 2022 #3 DonManfred said: Use JShell to start any program. Even with Parameters. Click to expand... No, no... I want to pass paramether from another application INTO b4j application (ERP will start my utility app written in B4J and pass some link, B4J App need to open this link and save content from the link to file)... How can I test B4J App in debug with arguments... In visual studio (I basicaly switch from VS to B4J with almoust all of my projects) is simple: Upvote 0
DonManfred said: Use JShell to start any program. Even with Parameters. Click to expand... No, no... I want to pass paramether from another application INTO b4j application (ERP will start my utility app written in B4J and pass some link, B4J App need to open this link and save content from the link to file)... How can I test B4J App in debug with arguments... In visual studio (I basicaly switch from VS to B4J with almoust all of my projects) is simple:
agraham Expert Licensed User Longtime User Feb 23, 2022 #4 non-ui app debug with arg hello ; Can i run on debug mode with args. if yes; how can I declare args. www.b4x.com Upvote 0
non-ui app debug with arg hello ; Can i run on debug mode with args. if yes; how can I declare args. www.b4x.com
DonManfred Expert Licensed User Longtime User Feb 23, 2022 #5 DarkoT said: No, no... I want to pass paramether from another application INTO b4j application Click to expand... java -jar JarExample.jar "arg 1" arg2@ Upvote 0
DarkoT said: No, no... I want to pass paramether from another application INTO b4j application Click to expand... java -jar JarExample.jar "arg 1" arg2@
DarkoT Active Member Licensed User Longtime User Feb 23, 2022 #6 DonManfred said: java -jar JarExample.jar "arg 1" arg2@ Click to expand... Okeyyy, that's it... In debug mode? I assume, that I can also start debug proces from IDE with parameters: Code: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #CommandLineArgs: Darko Test Uiii #End Region Upvote 0
DonManfred said: java -jar JarExample.jar "arg 1" arg2@ Click to expand... Okeyyy, that's it... In debug mode? I assume, that I can also start debug proces from IDE with parameters: Code: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #CommandLineArgs: Darko Test Uiii #End Region
DonManfred Expert Licensed User Longtime User Feb 23, 2022 #7 DarkoT said: In debug mode? Click to expand... no, thats for release. To debug you need to use #CommandLineArgs You you wanted to start a app from another app. You can NOT run them in debug in this case! To debug you NEED to USE the IDE. Upvote 0
DarkoT said: In debug mode? Click to expand... no, thats for release. To debug you need to use #CommandLineArgs You you wanted to start a app from another app. You can NOT run them in debug in this case! To debug you NEED to USE the IDE.
DarkoT Active Member Licensed User Longtime User Feb 23, 2022 #8 DonManfred said: no, thats for release. To debug you need to use #CommandLineArgs You you wanted to start a app from another app. You can NOT run them in debug in this case! To debug you NEED to USE the IDE. Click to expand... If I do this: Code: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #CommandLineArgs: Darko Test Uiii #End Region the system will not run/work in debug... Upvote 0
DonManfred said: no, thats for release. To debug you need to use #CommandLineArgs You you wanted to start a app from another app. You can NOT run them in debug in this case! To debug you NEED to USE the IDE. Click to expand... If I do this: Code: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #CommandLineArgs: Darko Test Uiii #End Region the system will not run/work in debug...
B Brian Dean Well-Known Member Licensed User Longtime User Feb 23, 2022 #9 . . . the system will not run/work in debug... Click to expand... This works for me ... B4X: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #CommandLineArgs: Darko Test Uiii #End Region Private Sub AppStart (Form1 As Form, Args() As String) Log(Args(0) & Args(1) & Args(2)) ... ... ... . . . . in Debug and Release. Maybe I misunderstand what you are trying to do. Upvote 0
. . . the system will not run/work in debug... Click to expand... This works for me ... B4X: Copy #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #CommandLineArgs: Darko Test Uiii #End Region Private Sub AppStart (Form1 As Form, Args() As String) Log(Args(0) & Args(1) & Args(2)) ... ... ... . . . . in Debug and Release. Maybe I misunderstand what you are trying to do.
DonManfred Expert Licensed User Longtime User Feb 23, 2022 #10 DarkoT said: the system will not run/work in debug... Click to expand... Do you get any error in the log? NOT RUN ist a bad request for help. Upvote 0
DarkoT said: the system will not run/work in debug... Click to expand... Do you get any error in the log? NOT RUN ist a bad request for help.
DarkoT Active Member Licensed User Longtime User Feb 24, 2022 #11 DonManfred said: Do you get any error in the log? NOT RUN ist a bad request for help. Click to expand... No, nothing... The system waits and wil not start... If you want to check - I cann give you full project (is very small) Upvote 0
DonManfred said: Do you get any error in the log? NOT RUN ist a bad request for help. Click to expand... No, nothing... The system waits and wil not start... If you want to check - I cann give you full project (is very small)
E emexes Expert Licensed User Longtime User Feb 24, 2022 #12 DarkoT said: It's posible to start B4J UI app with arguments from command line? Click to expand... Another way might be to run your app via a script/batch file, which can write its arguments and/or various environment variables into a plain text file which your app can read from instead of from the command line. Upvote 0
DarkoT said: It's posible to start B4J UI app with arguments from command line? Click to expand... Another way might be to run your app via a script/batch file, which can write its arguments and/or various environment variables into a plain text file which your app can read from instead of from the command line.