B4J Question Start at startup raspberry

jayel

Active Member
Licensed User
Longtime User
Hello,

I want to start my abmaterial app on startup of my raspberry.
Is there a way of doing this?
Put the command in rc.local?

Any help?

John
 

jayel

Active Member
Licensed User
Longtime User
Sorry but not working as expected.
Maybe ABmaterial problem afterall.
I does start automatic on startup but I keep getting the material waiting circle.
When I kill the service on the raspberry and run it with the sh command It does the job !
 
Upvote 0

jayel

Active Member
Licensed User
Longtime User
My directorystructure :
upload_2016-12-8_16-40-5.png


is this right ?

because in my console I see :
upload_2016-12-8_16-40-48.png


??
 
Upvote 0

jayel

Active Member
Licensed User
Longtime User
upload_2016-12-8_16-48-35.png

upload_2016-12-8_16-48-59.png


These files are all copied, I tok a copy from my local www folder and copied it over, css is also copied, above 2 screenshots
 
Upvote 0

jayel

Active Member
Licensed User
Longtime User
Even when I set chmod 777 on kraanserver dir and all its subdirs it doesn't work....

I connected B4J with the bridge and run via B4J the solution and everything works smooth !
What am i doing wrong here?
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Just a check if the KraanServer is running from a Raspberry Pi Terminal:
Login to the Raspberry Pi, open a terminal, set the kraanserver folder and start KraanServer.jar: (based on Post #9 folderinfo)
  • cd home/pi/kraanserver
  • sudo java -jar KraanServer.jar
Please ensure to use the right case to start the KraanServer!
 
Upvote 0

PCastagnetti

Member
Licensed User
Longtime User
I'm sorry I did not read all the posts.
I saw that the owner of some files is pi .
This can be a problem if pi did not have root rights.

you should apply the change (WinSCP -> Advanced button) that you can see in the screeshot to make sure that the files are copied as root
 

Attachments

  • WinSCP.png
    WinSCP.png
    42.6 KB · Views: 210
Upvote 0

jayel

Active Member
Licensed User
Longtime User
Even in rc.local it didn't work.
I erased all the files ans setup up the raspberry again.
Then I copied the files needed the run the webapp and put in rc.local the sh file.
Now everything run s OK !

Thanks everywone.

Another great help from this forum, tumbs up !
 
Upvote 0
Top