B4J Question version 3.0 Beta 7. (SOLVED)

BeneBarros

Active Member
Licensed User
Longtime User
an error is occurring in version 3.0 Beta 7.
the system does not find an image, but she's in the folder.
see attached image

in version 2.80 runs normally
 

Attachments

  • logoinnp.jpg
    logoinnp.jpg
    233.5 KB · Views: 238

BeneBarros

Active Member
Licensed User
Longtime User
Please open the jar file with 7zip or a similar tool and check whether the file is in the Files folder.
The image exists in jar file and it is used in all forms of the same project without returning error.
the image is part of the header of all forms and as few in this subroutine that generates the error.
B4X:
    Dim ImageFiles() As String=Array As String("CkFalse.png", "CkTrue.png", "logoinn.png", "TxtSepar.png")
    CopyAssetsToTemp(ImageFiles)   
...
...
Private Sub CopyAssetsToTemp(Filenames() As String)
    Dim i As Int
    For i=0 To Filenames.Length-1
        If Not(File.Exists(tpPath, Filenames(i))) Then
            File.Copy(File.DirAssets, Filenames(i), tpPath, Filenames(i))
        End If
    Next
End sub

Thanks for listening
 

Attachments

  • logoinni.jpg
    logoinni.jpg
    150 KB · Views: 212
Upvote 0

BeneBarros

Active Member
Licensed User
Longtime User
The name of the file in the jar is logoInn.png not logoinn.png.
in the "Files" folder was correct, and when compiling put wrong in jar file.

the mistake was in fxml files

already corrected and running satisfactorily
Thank you for your help ...
 
Upvote 0
Top