이 Path for image file in Eclipse src folder, on a Mac 질문에 유사하고 난 경로
import org.eclipse.swt.graphics.Image;
public class Images {
static Image ICON_Search = new Image(App2.display, "src//search.jpg");
static Image ICON_RightArrow = new Image(App2.display, "src//right2.gif");
static Image ICON_LeftArrow = new Image(App2.display, "src//left4.gif");
static Image Background_White=new Image(App2.display,"src//whitebg.png");
}
내 모든 이미지
이 project.This의 src 폴더에있는 Windows에서 잘 작동하지만 난로 내보낼 때 사용하고 jar 파일을 MAC OS에서 실행하면 File not found 예외가 발생합니다.
내 보낸 jar 파일에 .jpg 및 .gif 파일이 포함되어 있습니까? – codeMan
@codeMan 예. 확인했습니다. – user3873909