B4J Question [RPi][ABMaterial] can't get the server to run manually

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

The last few steps of this Odyssey of mine called Pi Server...

So I got to the point were everything is working...
Normal webpages are served by Apache, and WebApps are redirected to the ABM running server... IF, AND ONLY IF, I'm running the ABM webapp from the IDE, Bridge connected!!

I jut can't get the dahm .jar to run!

I have tried copying it to several folders in the pi, including the user "pi" root folder, and then trying to run it using sudo java -jar MyWebApp.jar

The command line seems to be busy for a few seconds and then comes to life again...
There are no visual signs that the server has started, no log in the console, nothing!

So... any thoughts???
 

Cableguy

Expert
Licensed User
Longtime User
I just keep re-running the Demo ABMaterial 1.05, in hope I get to find where the compiler is copying the demo.jar file to, BUT it just seems to NOT EXIST in the Raspi...
Can this be???
I ran 2 times the search feature os SCP on the entire file system of the pi and no sign of the Demo.jar file!!!!
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Seems like my PI just went corrupt over night, so I'll be picking up from my last backup... should be operational in a couple of hours, then I'll return to this, but if my memory serves me well, it something like 1.8.0_65.

I had tried several times copying the Jar file to a location in the pi and then run it, but NOTHING happened... nothing was shown in the command line.
 
Last edited:
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)Java(TM) SE Runtime Environment (build 1.8.0_65-b17)java version "1.8.0_65"
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
as I have stated, I am running th ABM 1.05 Demo unchanged, Bridge connected... all works OK...
BUT, if I try stand alone, doing sudo java -jar Demo.jar there's nothing outputted!!! not a single line!
command line just freezes for a minute (the cursor goes under the current command line, in disable state) and then comes alive again with a new blank command line
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
the Bridge.jar is one, and works perfect!
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
what's puzzling me too is that, when I run it from the IDE with Bridge, I can't find the Demo.jar anywhere on the PI!!
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I do have the asyncfile in temp... How do I run it manually?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
So no need for the jar extension in the filename!?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
same result as with Demo.jar....

The cursor goes below the command line, stays there for about 30sec and then a new command line is available...
Nothing is outputted to the console... my head is starting to give in!
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Hi EREL...
It's me... again...

But this time to report SUCCESS!!!
I've been making a newbie mistake, and was compiling in DEBUG mode!!!!
Of course, the server only ran when connected through B4J-Bridge.
This came to me when I tried to run a on-going project directly from the device, without the IDE...
On the device, we get a nice "trying to connect to debugger" message... but with B4J we don't... So maybe a wish to be made.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…