Android Question Raspberry Pi Web Application

Buks

Member
Licensed User
Running the Web App Hello World! on a Raspberry Pi gives the error in the web browser:
HTTP ERROR 404
Problem accessing /. Reason:
Not Found
Powered by Jetty:// 9.4.z-SNAPSHOT
 

OliverA

Expert
Licensed User
Wherever your WebAppHelloWorld.jar file is located, there also must be a www directory with the three files (b4j_ws.js, index.css and index.html) inside of it. Without the www directory, you'll get the above error and without the 3 files, the example will not run as expected. In the example .zip file, the www folder is located under the Objects folder.
 

Buks

Member
Licensed User
I am deploying the example from b4j-bridge. Where would the folders then be located?
 

Cableguy

Expert
Licensed User
Please note that this thread was started in the wrong forum. It should have been started in b4J and not B4a.
 

OliverA

Expert
Licensed User
It should have been started in b4J and not B4a.
Hopefully the PTB can move it.
Where would the folders then be located?
The b4j-bridge.jar on the Pi box should (when executed) create a tempjars folder. It is within that folder that you need to place the www folder and its contents.
 

techknight

Well-Known Member
Licensed User
B4J-Bridge has an FTP mode. For this very reason. that will allow you to connect up and transfer stuff like that over through an FTP client.
 
Top