Wednesday, March 4, 2026
HomeiOS Developmentjava - Can't get sources

java – Can’t get sources


I need to get the picture from the sources folder, however once I get it, the Enter Stream is all null and there’s a message “sources cannont be nested in directories in Codename One! Invalid useful resource: : /sources/0.png”

new DataInputStream(Show.getInstance().getResourceAsStream(FilePack.class, "/sources/0.png"));
The trail of the sources folder is widespread/src/sources and of the Predominant class with 0.png is widespread/src/major/sport/Predominant.java

Is there any technique to repair it?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments