hookshy Well-Known Member Licensed User Longtime User Sep 17, 2014 #1 How do I open and kill another .jar file or .exe application ?
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2014 #2 You can use the jShell library to start other processes and then kill them. Upvote 0
hookshy Well-Known Member Licensed User Longtime User Sep 17, 2014 #3 I wonder how can I pass data to another jar app like custom intent in b4a ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2014 #4 Intents are specific to Android. You can use other ways to communicate between two of your apps. You can open a socket in one app and then connect to it from the second app. Upvote 0
Intents are specific to Android. You can use other ways to communicate between two of your apps. You can open a socket in one app and then connect to it from the second app.
hookshy Well-Known Member Licensed User Longtime User Sep 17, 2014 #5 I guess I need a more simpler way ... I need to hide a panel when the apps is started by a certain app ... When the apps starts by dobleclick on the .jar file then ...the panel will hide other wise if is start the app internally I must display a status bar ...inside a pannel Upvote 0
I guess I need a more simpler way ... I need to hide a panel when the apps is started by a certain app ... When the apps starts by dobleclick on the .jar file then ...the panel will hide other wise if is start the app internally I must display a status bar ...inside a pannel
hookshy Well-Known Member Licensed User Longtime User Sep 17, 2014 #6 You can use the jShell library to start other processes and then kill them. Click to expand... I do have some problems starting the apps ...main reasons are: My apps is an .jar archive that has no xxx.xx.main ...java file .. I do not understand arguments I have included #CommandLineArgs: jFx-hmi.test in project Attributes I have copied the corect path to directory ..where my .jar file is found I do not now what "-cp" ??? I did modified original "java" argument to "jar" I did set up my the apps package name "com.myapp" Error: Illegal option: p Code: Copy Dim shl As Shell shl.Initialize("shl", "jar", _ Array As String("-cp", "1.jar", "com.myapp", "jFx-hmi.test")) shl.WorkingDirectory = "D:\basic4java\forum_ex\project" shl.Run(10000) 'set a timeout of 10 seconds Upvote 0
You can use the jShell library to start other processes and then kill them. Click to expand... I do have some problems starting the apps ...main reasons are: My apps is an .jar archive that has no xxx.xx.main ...java file .. I do not understand arguments I have included #CommandLineArgs: jFx-hmi.test in project Attributes I have copied the corect path to directory ..where my .jar file is found I do not now what "-cp" ??? I did modified original "java" argument to "jar" I did set up my the apps package name "com.myapp" Error: Illegal option: p Code: Copy Dim shl As Shell shl.Initialize("shl", "jar", _ Array As String("-cp", "1.jar", "com.myapp", "jFx-hmi.test")) shl.WorkingDirectory = "D:\basic4java\forum_ex\project" shl.Run(10000) 'set a timeout of 10 seconds
Daestrum Expert Licensed User Longtime User Sep 17, 2014 #7 Not having used shell, but I guess -cp is classpath, where the jvm will look for the jar files you tell it to run. Also the second parameter you changed to 'jar' , I think has to be 'java' as that is what runs the jvm. Upvote 0
Not having used shell, but I guess -cp is classpath, where the jvm will look for the jar files you tell it to run. Also the second parameter you changed to 'jar' , I think has to be 'java' as that is what runs the jvm.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2014 #8 See B4J Bridge source code: http://www.b4x.com/android/forum/threads/remote-debugging-with-b4j-bridge.38804/#post-229866 Upvote 0
See B4J Bridge source code: http://www.b4x.com/android/forum/threads/remote-debugging-with-b4j-bridge.38804/#post-229866