B4J Question Jshell on my mac error

Jack Bodewes

Member
Licensed User
Longtime User
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?
 

billzhan

Active Member
Licensed User
Longtime User
Run your app from terminal so that you can see the error logs
B4X:
# 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.

B4X:
shel2.Initialize("shel2", "java", Array As String("-jar", "/path/to/Updres.jar"))
 
Upvote 0

Jack Bodewes

Member
Licensed User
Longtime User
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

Jack Bodewes

Member
Licensed User
Longtime User
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

Jack Bodewes

Member
Licensed User
Longtime User
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

Jack Bodewes

Member
Licensed User
Longtime User
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

billzhan

Active Member
Licensed User
Longtime User
What're the outputs ( terminal ) :

B4X:
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

Jack Bodewes

Member
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…