Jack Bodewes Member Licensed User Longtime User Jul 30, 2016 #1 Have two app created in Windows 10 Reserveren.jar Updres.jar In my windows everything works very well. I copied these two file to my Mac. I doubleclick My mouse and both apps. Works fine. Now I want to Updres.jar Jshell in Reserveren.jar with: shel2.Initialize("shel2", "java", Array As String("-jar", "Updres.jar")) shel2.WorkingDirectory = File.DirApp shel2.Run(10000) Error: Notification of java newer version download. I did. Java Version 8 Update 101. Restart mac. The same error message. Balloon icon says "Anywhere Software.b4a.keywords.command. Now I'm already a week on it and have all read the forum. Maybe quite simple but I do not see it. Can someone help me?
Have two app created in Windows 10 Reserveren.jar Updres.jar In my windows everything works very well. I copied these two file to my Mac. I doubleclick My mouse and both apps. Works fine. Now I want to Updres.jar Jshell in Reserveren.jar with: shel2.Initialize("shel2", "java", Array As String("-jar", "Updres.jar")) shel2.WorkingDirectory = File.DirApp shel2.Run(10000) Error: Notification of java newer version download. I did. Java Version 8 Update 101. Restart mac. The same error message. Balloon icon says "Anywhere Software.b4a.keywords.command. Now I'm already a week on it and have all read the forum. Maybe quite simple but I do not see it. Can someone help me?
B billzhan Active Member Licensed User Longtime User Jul 31, 2016 #2 Run your app from terminal so that you can see the error logs Code: Copy # cd to Reserveren.jar path cd /path/to java -jar Reserveren.jar This may be caused by 'Updres.jar' path is not found. This may be solved by providing the absolute path. Code: Copy shel2.Initialize("shel2", "java", Array As String("-jar", "/path/to/Updres.jar")) Upvote 0
Run your app from terminal so that you can see the error logs Code: Copy # cd to Reserveren.jar path cd /path/to java -jar Reserveren.jar This may be caused by 'Updres.jar' path is not found. This may be solved by providing the absolute path. Code: Copy shel2.Initialize("shel2", "java", Array As String("-jar", "/path/to/Updres.jar"))
Jack Bodewes Member Licensed User Longtime User Jul 31, 2016 #3 Thank you for the quick response billzhan. I tried to start it in the terminal. No respons. Have now tried: shel2.Initialize("shel2", "java", Array As String("-jar", File.DirApp&"/Updres.jar")) File.DirApp displays the correct path. And I still get the same error. Upvote 0
Thank you for the quick response billzhan. I tried to start it in the terminal. No respons. Have now tried: shel2.Initialize("shel2", "java", Array As String("-jar", File.DirApp&"/Updres.jar")) File.DirApp displays the correct path. And I still get the same error.
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2016 #4 Try to use the full path to java. Maybe the default Java is set incorrectly. Upvote 0
Jack Bodewes Member Licensed User Longtime User Jul 31, 2016 #5 No. I have the same problem. Upvote 0
Jack Bodewes Member Licensed User Longtime User Jul 31, 2016 #6 Could it be possible that my mac is not good. Macbook Air OS X version 10.8.5 1.3 GHz Intel Core i5 Memory 4GB DDR3 1600 MHz Upvote 0
Could it be possible that my mac is not good. Macbook Air OS X version 10.8.5 1.3 GHz Intel Core i5 Memory 4GB DDR3 1600 MHz
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2016 #7 What happens when you run "java -jar Updres.jar" from the terminal? Note that you should use File.Combine (File.DirApp, "Updres.jar") Upvote 0
What happens when you run "java -jar Updres.jar" from the terminal? Note that you should use File.Combine (File.DirApp, "Updres.jar")
Jack Bodewes Member Licensed User Longtime User Jul 31, 2016 #8 Terminal: # cd Documenten # cd Faunatuurlijk # cd Reserveren # cd Objects # java -jar Updres.jar And nothing happened. and if I do the following without # java -jar Updres.jar Unable to access jarfile Updres.jar shel2.Initialize("shel2", "java", Array As String("-jar", File.Combine (File.DirApp, "Updres.jar") )) And still have the same problem. Upvote 0
Terminal: # cd Documenten # cd Faunatuurlijk # cd Reserveren # cd Objects # java -jar Updres.jar And nothing happened. and if I do the following without # java -jar Updres.jar Unable to access jarfile Updres.jar shel2.Initialize("shel2", "java", Array As String("-jar", File.Combine (File.DirApp, "Updres.jar") )) And still have the same problem.
Jack Bodewes Member Licensed User Longtime User Jul 31, 2016 #9 Terminal: # cd Documenten # cd Faunatuurlijk # cd Reserveren # cd Objects I tried it again open java -jar Updres.jar The files /User/jackbodewes/java and /User/jackbodewes/Updres.jar do not exist. Upvote 0
Terminal: # cd Documenten # cd Faunatuurlijk # cd Reserveren # cd Objects I tried it again open java -jar Updres.jar The files /User/jackbodewes/java and /User/jackbodewes/Updres.jar do not exist.
B billzhan Active Member Licensed User Longtime User Jul 31, 2016 #10 What're the outputs ( terminal ) : Code: Copy java -version id -F pwd # given that the path is ~/Documenten/Faunatuurlijk/Reserveren/Objects ls -l ~/Documenten/Faunatuurlijk/Reserveren/Objects ls -l ~/Documenten/Faunatuurlijk/Reserveren/Objects/Updres.jar ls -l ~/Documenten/Faunatuurlijk/Reserveren/Objects/Reserveren.jar Upvote 0
What're the outputs ( terminal ) : Code: Copy java -version id -F pwd # given that the path is ~/Documenten/Faunatuurlijk/Reserveren/Objects ls -l ~/Documenten/Faunatuurlijk/Reserveren/Objects ls -l ~/Documenten/Faunatuurlijk/Reserveren/Objects/Updres.jar ls -l ~/Documenten/Faunatuurlijk/Reserveren/Objects/Reserveren.jar
B billzhan Active Member Licensed User Longtime User Jul 31, 2016 #12 Java 8u40+ is needed for B4J 4.20. You don't have Java8 installed/set Upvote 0
Jack Bodewes Member Licensed User Longtime User Jul 31, 2016 #13 Yes we did it. You were right with the Java version 1.6.0.65 But I had to reinstall the entire SDK and not just install the java update 1.8. Thank you very much billzhan and Erel. Upvote 0
Yes we did it. You were right with the Java version 1.6.0.65 But I had to reinstall the entire SDK and not just install the java update 1.8. Thank you very much billzhan and Erel.