Android Question ScrollView2D compile problem

johnaaronrose

Active Member
Licensed User
Longtime User
I have an old project with the line "Dim sv2dPhoto As ScrollView2D" which the compiler objects to with the following:

B4A Version: 14.00
Parsing code. Error
Error parsing program.
Error description: Unknown type: scrollview2d
Are you missing a library reference?
Error occurred on line: 23 (B4XViewPage)
Dim sv2dPhoto As ScrollView2D

Tip: press Ctrl + R to export IDE state for AI assistants.

I have ScrollView2D.jar & ScrollView2D.xml in my Additional Libraries. What do I do?
 

DonManfred

Expert
Licensed User
Longtime User
I downloaded library and the example.

I DOES COMPILE.

Upload a small project showing the issue. Make SURE your REALLY have the jar and xml in the ADDITIONAL LIBRARY folder. Also make sure you have ticked the library in the library tab.
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
zip file of project attached. I'm rather rusty on B4A so I 'm not sure about the library being ticked in the library tab. The jar & xml files definitely are in the Additional Libraries folder.
 

Attachments

  • JewishWorld.zip
    38.9 KB · Views: 25
Upvote 0

teddybear

Well-Known Member
Licensed User
As DonManfred said, it works.
How your Library Manager and make sure it is checked.
603dcd66-5e99-4ac7-8358-b9c37916cd61.png
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I don't see ScrollView2D as an entry in the Libraries: please see attached screenshots. One is from B4A showing Libraries where sv2d files should be an another is showing Libraries ticked. Other is from Nautilus File Manager showing ScrollView2D.jar & ScrollView2D.xml: they are both from 2022. Is it because these files are so old?
 

Attachments

  • Screenshot from 2026-09-06 10-45-21.png
    Screenshot from 2026-09-06 10-45-21.png
    133.9 KB · Views: 43
  • Screenshot from 2026-09-06 10-48-13.png
    Screenshot from 2026-09-06 10-48-13.png
    135.5 KB · Views: 44
  • Screenshot from 2026-09-06 10-51-13.png
    Screenshot from 2026-09-06 10-51-13.png
    137.2 KB · Views: 40
Upvote 0

teddybear

Well-Known Member
Licensed User
What is your Paths configuration? From your pic #2, it seems to be in Home/B4X_Projects

5c3a6f56-c9c1-4827-9f93-66cd0553f80e.png
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I have my Projects in /home/john/B4XProjects wher the Aiitional Libraries also reside. 've just changed the Additional Libraries location as per the attached screenshot to conform with the recommended structure i.e. all jar & xml files in a sub-folder of B4A. Still same problem on compilation.
 

Attachments

  • Screenshot from 2026-09-06 12-40-16.png
    Screenshot from 2026-09-06 12-40-16.png
    10.1 KB · Views: 33
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
Show the full path where the ScrollView2D.jar is located.
john@Desktop:~$ ls B4X_Projects/AdditionalLibraries/B4A
AcceleratedSurface.jar Dialogs.xml MLfiles.jar Reflection.jar TouchImageView.xml
AcceleratedSurface.xml GPStoOSGB.jar MLfiles.xml Reflection.xml VBWifi.jar
AnswerCall.jar GPStoOSGB.xml Net.jar ScrollView2D.jar VBWifi.xml
AnswerCall.xml jcifs-1.3.17.jar Net.xml ScrollView2D.xml WebViewExtras.jar
ByteConverter.jar jcifs.jar OSMDroid.jar StringFunctions.jar WebViewExtras.xml
ByteConverter.xml Licensing.jar OSMDroid.xml StringFunctions.xml
Dialogs.jar Licensing.xml packager.json TouchImageView.jar
 
Upvote 0

teddybear

Well-Known Member
Licensed User
john@Desktop:~$ ls B4X_Projects/AdditionalLibraries/B4A
AcceleratedSurface.jar Dialogs.xml MLfiles.jar Reflection.jar TouchImageView.xml
AcceleratedSurface.xml GPStoOSGB.jar MLfiles.xml Reflection.xml VBWifi.jar
AnswerCall.jar GPStoOSGB.xml Net.jar ScrollView2D.jar VBWifi.xml
AnswerCall.xml jcifs-1.3.17.jar Net.xml ScrollView2D.xml WebViewExtras.jar
ByteConverter.jar jcifs.jar OSMDroid.jar StringFunctions.jar WebViewExtras.xml
ByteConverter.xml Licensing.jar OSMDroid.xml StringFunctions.xml
Dialogs.jar Licensing.xml packager.json TouchImageView.jar
You are using a Linux shared directory mapped to drive Z: as your additional library folder.
As shown in your previous screenshot, only the internal libraries are visible in your libraries manager panel, indicating that this additional libraries does not work.
What is your samba shared directory on linux ?
List the contents of drive Z: using the dir /s Z: on your Windows PC.
I guess it is B4X_Projects. then the Additional Path should be Z:\AdditionalLibraries.
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
You are using a Linux shared directory mapped to drive Z: as your additional library folder.
As shown in your previous screenshot, only the internal libraries are visible in your libraries manager panel, indicating that this additional libraries does not work.
What is your samba shared directory on linux ?
List the contents of drive Z: using the dir /s Z: on your Windows PC.
I guess it is B4X_Projects. then the Additional Path should be Z:\AdditionalLibraries.
I don't have a Windows PC. I only have Ubuntu PCs (desktop and laptops) and Android mobile devices and I am not using Samba. I am running B4A under Wine on my Ubuntu desktop PC. I've just changed the B4X_Projects name to B4XPages as recommended in the Booklet entitled B4X Cross Platform Projects v2.2. So the Additional Libraries are now in /home/john/B4XPages/AdditionalLibraries/B4A and each project is in /home/john/B4XPages.

One thing that I have noticed is that in C: there is a folder named "Additional Libraries" (i.e. with a space between the 2 words) which I did not create directly though I suspect it might have been created by the script that I used to install B4A. Screenshot attached showing expanded C:.

PS I'm now trying to reorganise another B4A project using the Booklets on B4X but running into difficulties, probably because I am not a professional developer.
 

Attachments

  • Screenshot from 2026-09-08 08-13-56.png
    Screenshot from 2026-09-08 08-13-56.png
    47.9 KB · Views: 21
Last edited:
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
The "Path Configuration" in my app has "Z:\home\john\B4XPages\AdditionalLibraries" (as per attached screenshot) and the "C:\Additional Libraries" folder has no files in itself or its B4A, B4i, B4J sub-folders.
 

Attachments

  • Screenshot from 2026-09-08 09-52-46.png
    Screenshot from 2026-09-08 09-52-46.png
    127.2 KB · Views: 28
Upvote 0

teddybear

Well-Known Member
Licensed User
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
1. Copy those additional libraries to C:\Additional Libraries.
2.Why is the path https://www.b4x.com/android/forum/threads/linux-b4x-wine-installer.171136/?

In this picture, its path is Home/B4XPages
1. I don't know how to copy in Wine. If I use Nautilus File Manager in Ubuntu, I don't know how to find "C:\Additional Libraries".
2. I've just looked at the Install script for B4A etc in https://www.b4x.com/android/forum/threads/linux-b4x-wine-installer.171136/ and it sets up the path for "Z:\home\john\B4XPages\AdditionalLibraries"
 
Upvote 0

teddybear

Well-Known Member
Licensed User
john@Desktop:~$ ls B4X_Projects/AdditionalLibraries/B4A
AcceleratedSurface.jar Dialogs.xml MLfiles.jar Reflection.jar TouchImageView.xml
AcceleratedSurface.xml GPStoOSGB.jar MLfiles.xml Reflection.xml VBWifi.jar
AnswerCall.jar GPStoOSGB.xml Net.jar ScrollView2D.jar VBWifi.xml
AnswerCall.xml jcifs-1.3.17.jar Net.xml ScrollView2D.xml WebViewExtras.jar
ByteConverter.jar jcifs.jar OSMDroid.jar StringFunctions.jar WebViewExtras.xml
ByteConverter.xml Licensing.jar OSMDroid.xml StringFunctions.xml
Dialogs.jar Licensing.xml packager.json TouchImageView.jar
This is what you did in terminal mode.
You can run other commands in this mode as well.
B4X:
cd
pwd
ls -la
Then show the results
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I am a Linux person. So I know about those commands. Going a step further:
john@Desktop:~$ ls -la .wine_b4x
total 10408
drwxrwxr-x 4 john john 4096 Sep 6 10:42 .
drwxrwxr-x 53 john john 4096 Sep 8 07:43 ..
drwxrwxr-x 2 john john 4096 Sep 5 08:30 dosdevices
drwxrwxr-x 11 john john 4096 Sep 5 06:25 drive_c
-rw-rw-r-- 1 john john 10536476 Sep 5 08:49 system.reg
-rw-rw-r-- 1 john john 12 Sep 5 06:20 .update-timestamp
-rw-rw-r-- 1 john john 4026 Sep 5 08:31 userdef.reg
-rw-rw-r-- 1 john john 88060 Sep 6 10:42 user.reg
-rw-rw-r-- 1 john john 131 Sep 5 06:24 winetricks.log

But I don't know much about Wine. So I didn't know how to show the folder for C:\ from my Linux Terminal or to put it another way where C:\ is in terms of my Linux/Ubuntu directory structure.

I just noticed the drive_c directory in the .wine_b4x and that that contains the 'Additional Libraries'. So I have now copied the jar & xml files from '\home\john\B4XPages\AdditionalLibraries' to the appropriate directory in drive_c (i.e. "C:\Additional Libraries\B4A" in Windows'/Wine's terms).

I changed to 'Configure Paths' window entry for "Additional Libraries" to "C:\Additional Libraries" just now but still getting same problem with "Dim sv2dPhoto As ScrollView2D" even though the ScrollView2D jar & xml files are in "C:\Additional Libraries\B4A" (i.e. .wine_b4x/drive_c/'Additional Libraries'/B4A" on Linux).
 

Attachments

  • Screenshot from 2026-09-09 08-24-53.png
    Screenshot from 2026-09-09 08-24-53.png
    3.7 KB · Views: 4
Last edited:
Upvote 0
Top