B4J Question Can't Find Library for ImageView (AKA Cannot Get ServerExample to Run)

cklester

Well-Known Member
Licensed User
Running the ServerExample app, and in the log it shows:

B4X:
Unknown type: label
Are you missing a library reference?
Unknown type: imageview
Are you missing a library reference?

The build dialog shows:

B4X:
B4J Version: 8.80
Parsing code.    Error
Error parsing program.
Error description: Unknown type: imageview
Are you missing a library reference?
Error occurred on line: 397 (BBCodeParser)
Dim iv As ImageView

Yes, I'm missing a library reference. But I don't know which one!

I've tried all the XUI modules: XUI Views, XUI2D, and jXUI.

There is no Library available when searching for "image."

Where is this ImageView type defined?
 

Daestrum

Expert
Licensed User
Longtime User
I think the server example is a non-ui app, therefore you do not get access to any controls.

It just uses java not JavaFX (which is where the controls are).
 
Last edited:
Upvote 0

cklester

Well-Known Member
Licensed User
I think the server example is a non-ui app, therefore you do not get access to any controls.

It just uses java not JavaFX (which is where the controls are).

I think the use of an ImageView is for manipulating images for display on web pages, but I'm not 100% sure.

Anyway, it is part of the example source code for a B4J server, so I just need to know where to get the ImageView class.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Not sure what you downloaded - but the ServerExample.zip on the page you referenced does not contain 'imageview' in any of the source code files.
 
Upvote 0

cklester

Well-Known Member
Licensed User
Apparently, it's occurring in BBCodeParser.

I had to add jExcel and Encryption to the project. Do either of those require BBCodeParser or an ImageView?
 
Upvote 0

cklester

Well-Known Member
Licensed User
So, I started fresh.

Upon opening the project in B4J, I get an error about missing jcustomtoast.

I add Library BCToast. (I hope that is appropriate.)

Attempt running project.

I get the following error in the "Compile & Rapid Debug (Build: Default)" dialog:

B4X:
B4J Version: 8.80
Parsing code.    Error
Error parsing program.
Error description: HttpUtils2Service is declared twice. You should either remove the library reference or the code module.

I remove the HttpUtils2Service module from Modules.

Attempt running project.

I get the following error in the "Compile & Rapid Debug (Build: Default)" dialog:

B4X:
B4J Version: 8.80
Parsing code.    Error
Error parsing program.
Error description: HttpJob is declared twice. You should either remove the library reference or the code module.

I remove the HttpJob module from Modules.

Attempt running the project.

I get the following error in the "Compile & Rapid Debug (Build: Default)" dialog:

B4X:
B4J Version: 8.80
Parsing code.    Error
Error parsing program.
Error description: Unknown type: imageview
Are you missing a library reference?
Error occurred on line: 397 (BBCodeParser)
Dim iv As ImageView

And here's where I'm stuck.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
BCToast requires javafx which makes it unusable in the server example.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
The server runs in a command window - at best you can put a message to console out so it shows in the window.
 
Upvote 0
Top