B4J Question [SOLVED]! ABMaterial for dummies blank template non working (so no hello world )

Gnappo jr

Active Member
Licensed User
Longtime User
ITALIANO
Nel tutorial nel filmato dello stimato e apprezzato Mashiane ,
https://www.b4x.com/android/forum/threads/abmaterial-for-dummies-beginner-lessons.88346/#post-578902
alla fine viene mostrato che, nella catella TEMPLATE avviando il programma Template.b4j si ottiene il tanto desiderato [blank template]
Purtoppo facendo lo stesso identico procedimento con la versione [ABMaterial4.30.zip] appena scaricata non ottengo nulla, allego anche la schermata dei messaggi log.

Le lezioni del tutorial e la DEMO di ABMaterial invece funzionano tutti.
Dov'è il problema?
Prego i vari esperti di dare un suggerimento concreto evitando inutilità come vedere filmetti relativi a piccoli passi o risposte lapalissiane come leggi bene il tutorial.

GRAZIE PER L'ATTENZIONE E PER EVENTUALI RISPOSTE


ENGLISH
In the tutorial in the movie of the esteemed and appreciated Mashiane,
https://www.b4x.com/android/forum/threads/abmaterial-for-dummies-beginner-lessons.88346/#post-578902
at the end it is shown that, in the TEMPLATE folder, starting the Template.b4j program, you get the much desired [blank template]
Unfortunately doing the same identical procedure with the version [ABMaterial4.30.zip] just downloaded I don't get anything, I also attach the screen of the log messages.

The tutorial lessons and the ABMaterial DEMO instead all work.
Where is the problem?
I ask the various experts to give a concrete suggestion avoiding uselessness like seeing films related to small steps or self-explanatory answers as you read the tutorial well.

THANKS FOR YOUR ATTENTION AND FOR ANY FEEDBACK
 
Last edited:

OliverA

Expert
Licensed User
Longtime User
Where is your www directory, and what is in the www directory? For example:
When you copy the Template directory to another directory (let's say FirstApp), then the files in that directory should be
The Objects folder should contain
04/23/2020 04:09 PM <DIR> .
04/23/2020 04:09 PM <DIR> ..
04/15/2019 10:43 AM <DIR> www
The www folder should have
The css folder will have a lot of files
And so on. Without the www folder in the right place (for development, it should be in the Objects folder of your project), nothing will work (and this will produce the log messages that you are seeing.

Clarification: When you copy the Template directory, you need to copy ALL the files in the directory (including the Objects folder and all folders below it). Then you'll have the necessary files in place to start playing with ABM.
 
Upvote 0

Gnappo jr

Active Member
Licensed User
Longtime User

ITALIANO
Grazie amico del tuo interessamento:
i file e le directory sono esattamente come tu hai indicato e la strutture e i nomi files sono uguali!
Ho scaricato il software ABMaterial4.30.zip
https://www.dropbox.com/s/lnu67inqrb8x7ue/ABMaterial4.30.zip?dl=1
e l'ho scompattato in una cartella [AB] come mostrato in figura
.

Dentro la cartella template c'è template.b4j che eseguo, i file object e www etc. ecc. sono ovviamente presenti perchè non sposto nulla.
Anzi se importo About.bas della lezione 1 del tutorial quello funziona, quindi è palese che qualcosa è sbagliato nella cartella template originale.

ENGLISH
Thank you friend for your interest:
the files and directories are exactly as you indicated and the structures and file names are the same!
I downloaded the ABMaterial4.30.zip software
https://www.dropbox.com/s/lnu67inqrb8x7ue/ABMaterial4.30.zip?dl=1
and unpacked it in a folder [AB] as shown in the figure.

Inside the template folder there is template.b4j that I run, the object files and www etc. etc. they are obviously present because I don't move anything.
In fact, if I import About.bas of lesson 1 of the tutorial that works, then it is clear that something is wrong in the original template folder.
 
Last edited:
Upvote 0

Gnappo jr

Active Member
Licensed User
Longtime User
ITALIANO
Non ricordo se ho sbagliato nel selezionare tra Tutorial o Domanda, se sto sbagliando spiegatemelo altrimenti tra poco ci vuole un avvocato! Spero di essere nel therad giusto. Desidererei che qualcuno che a differenza di me ha capito come si parte con ABMaterial verificasse ciò che asserisco, poi non disturbo più promesso!

1)- scaricare e unzippare ABMaterial4.30.zip
https://www.dropbox.com/s/lnu67inqrb8x7ue/ABMaterial4.30.zip?dl=1
2) -aprire la cartella Template e lanciare Template.b4j

Dovrebbe apparire un template vuoto! Invece ottengo solo cerchi che girano. Sono io che sono di coccio o qualcun'altro?

ENGLISH
I don't remember if I was wrong to select between Tutorial or Question, if I'm wrong explain it to me otherwise I need a lawyer! I hope to be in the right therad. I would like someone who unlike me to understand how to start with ABMaterial to verify what I am claiming, then I won't bother you anymore!

1) - download and unzip ABMaterial4.30.zip https://www.dropbox.com/s/lnu67inqrb8x7ue/ABMaterial4.30.zip?dl=1
2) -open the Template folder and launch Template.b4j

An empty template should appear instead I just get circles that spin. Am I a crock or someone else?
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
I just downloaded ABM via the link you provided and ran the Template project both in Debug and Release and found out that the integrated viewer only works properly with Firefox (I'm on version 75). When using Chrome (Version 81.0.4044.122 (Official Build) (64-bit)) I get the spinning circles and when using Edge (the non-Chromium based one) then nothing is pulled up (all the devices are blank). Interesting. Other info about my setup:

Java used:
a) C:\Program Files\Amazon Corretto\jdk1.8.0_252\bin\javac.exe
b) C:\OpenJDK\jdk-11.0.1\bin\javac.exe

B4J version: 7.80 (looks like I'm behind)

Windows: 10 Pro 1909 (64 bit)
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Update: Going straight to
The same thing occurs: Firefox OK, but both Edge and Chrome are spinning.

Using ABM 4.51:
Both integrated viewer and direct localhost access work for both Firefox and Chrome. The integrated viewer does NOT work with Edge, but the localhost access DOES work with Edge.
 
Upvote 0

Gnappo jr

Active Member
Licensed User
Longtime User
The rotating circles also appear to me, they are the result of the index.html page you see them only with that also without ABMaterial.
The goal is to see an empty template
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Ok. How to fix this. Looks like the Template's www folder may have some oddball files. So what I did is copy the Demo's www directory and overwrote the Template's www directory. Windows told me that 651 would be overwritten (of some 1300+). After that, everything seems to work.

Update: see below fix for proper fix
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Ignore the above fix. Proper fix:
Delete www folder in template (under Objects) and replace with www folder found in Library. That seems to fix it (and you're not using a bunch of stuff that's for the Demo).
 
Upvote 0

Gnappo jr

Active Member
Licensed User
Longtime User
Ignore the above fix. Proper fix:
Delete www folder in template (under Objects) and replace with www folder found in Library. That seems to fix it (and you're not using a bunch of stuff that's for the Demo).
Thanks OliverA for your valuable suggestions, unfortunately I still get circles that run but I will make further attempts. I am using B4J 7.80
Could you insert in response a screen shot of what you get and if I don't ask too much of the b4j execution log?
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
unfortunately I still get circles that run but I will make further attempts.

Ok. Maybe I have it figured out now. What version of ABMaterial do you have selected in you Libraries Manager of the B4J IDE? If the version does not match the version of the template used (For example the Template from 4.30 does not work when using ABMaterial (version 4.51)). It looks like you have an ABMaterial library older than 4.30 installed in your additional libraries folder (at least that is where it should be). Delete it out and replace it with the ABMaterial4.30.jar and ABMaterial4.30.xml file. Again, make sure that in the Libraries Manager, the version of the selected ABMaterial library is 4.30. As to the Template folder, start with the one in your zip file (in case you changed it as I suggested in my previous posts).
 
Upvote 0

Gnappo jr

Active Member
Licensed User
Longtime User
ITALIANO
RISOLTO! GRAZIE GRAZIE GRAZIE GRAZIE
OliverA sei una una persona veramente capace e gentile, ha trovato un problema veramente nascosto, hai scavato a fondo non fermandoti all'apparenze, vivissimi complimenti, sarà d'aiuto a tanti.
Non solo ora funziona TEMPLATE, ma funziona anche CHAT e il resto! Come se con un colpo solo avessi fatto strike !
Eppure il compilatore non avvisa di avere una libreria vecchi o mancante, come può non arrendersi uno sviluppatore difronte a questo? OliverA Senza il tuo intervento averi mollato tutto e mi sarei precluso cio che questo ABMaterial potrebbe essere.
Allego per completezza alcune immagini con le quali il prossimo che cadrà nella buca ne possa trovare giovamento.

ENGLISH
RESOLVED! THANK YOU THANK YOU THANK YOU THANK YOU
OliverA you are a truly capable and kind person, she has found a truly hidden problem, you have dug deeply, not stopping at appearances, very warm compliments, she will help many.
Not only does TEMPLATE work now, but CHAT and the rest also works! As if with one shot I had made strike !
Yet the compiler does not warn of having an old or missing library, how can a developer not give up on this? OliverA Without your intervention I would have given up everything and I would have precluded what this ABMaterial could be.

For completeness, I am attaching some images with which the neighbor who will fall into the hole can benefit from it.
 

Attachments

  • Cattura3.PNG
    41.7 KB · Views: 233
  • Cattura4.PNG
    94.3 KB · Views: 239
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…