The following code can be compiled successfully in a small project but fail in a major, with B4J 3.71! However, I have tried to load the same lib in both projects with bad results!
Sub DecreseImage
Dim im As Image
im.Initialize("E:\Server\AppServer\Objects\www\dataloader","2015.jpg")'
Dim can As Canvas
can.Initialize("")
Dim jo As JavaObject
jo=can
jo.RunMethod("setWidth",Array(1000.0))
jo.runmethod("setHeight",Array(800.0))
can.DrawImage(im,0.0, 0.0, 400.0, 300.0)
Dim out As OutputStream = File.OpenOutput("E:\Server\AppServer\Objects\www\dataloader", "2015Grab.jpg", True)
can.snapshot.WriteToStream(out)
out.Close
End Sub
Following error in major project:
B4J version: 3.71
Parsing code. (0.06s)
Compiling code. (1.16s)
Compiling layouts code. (0.01s)
Compiling generated Java code. Error
B4J line: 195
jo=can
javac 1.7.0_40
src\b4j\example\main.java:419: error: cannot access Canvas
_jo.setObject((java.lang.Object)(_can.getObject()));
^
class file for javafx.scene.canvas.Canvas not found
.........and like this in the other .................
B4J version: 3.71
Parsing code. (0.00s)
Compiling code. (0.05s)
Compiling layouts code. (0.00s)
Compiling generated Java code. (0.34s)
Compiling debugger engine code. (0.26s)
Running application. (0.00s)
Completed successfully.
Any comments about that?
Sub DecreseImage
Dim im As Image
im.Initialize("E:\Server\AppServer\Objects\www\dataloader","2015.jpg")'
Dim can As Canvas
can.Initialize("")
Dim jo As JavaObject
jo=can
jo.RunMethod("setWidth",Array(1000.0))
jo.runmethod("setHeight",Array(800.0))
can.DrawImage(im,0.0, 0.0, 400.0, 300.0)
Dim out As OutputStream = File.OpenOutput("E:\Server\AppServer\Objects\www\dataloader", "2015Grab.jpg", True)
can.snapshot.WriteToStream(out)
out.Close
End Sub
Following error in major project:
B4J version: 3.71
Parsing code. (0.06s)
Compiling code. (1.16s)
Compiling layouts code. (0.01s)
Compiling generated Java code. Error
B4J line: 195
jo=can
javac 1.7.0_40
src\b4j\example\main.java:419: error: cannot access Canvas
_jo.setObject((java.lang.Object)(_can.getObject()));
^
class file for javafx.scene.canvas.Canvas not found
.........and like this in the other .................
B4J version: 3.71
Parsing code. (0.00s)
Compiling code. (0.05s)
Compiling layouts code. (0.00s)
Compiling generated Java code. (0.34s)
Compiling debugger engine code. (0.26s)
Running application. (0.00s)
Completed successfully.
Any comments about that?