GIF gone in program when compile Java in Linux
Previouly i did my Java Programming on windows and the GIF picture interface are there but now when i compile using NetBeans3.6 in Linux, my GIF picture interface are gone.
The code are this in windows Icon homeIcon = new ImageIcon("images/home.gif"); now the picture in Linux are in directory /home/eugene/Accounting system/images I havent change any code for the path inside the program What should I do now with the path name? Anyone knows please help , thank you.......... |
I think that this has more to do with the current directory and relative path thing. First try hard-coding the whole path into your program and see if it works. Check your current directory before running your program.
If it does, then it's obvious that the problem is with the current directory when setting the relative path. |
All times are GMT -5. The time now is 04:16 PM. |