Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-30-2004, 11:06 PM   #1
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
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..........
Old 09-30-2004, 11:15 PM   #2
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile and run a java program in linux !!!! jmax24 Programming 7 08-06-2010 03:56 AM
Animated GIF program lamiczka Linux - Software 5 02-04-2005 06:41 AM
compile java program under mandrake 10.1 wakemeup Linux - Laptop and Netbook 2 11-30-2004 08:56 AM
I need a program to combine text with gif files stephenoregan4 Linux - Software 1 02-16-2004 09:29 AM
Compile linux program for windows Mor_Petrus Programming 3 04-08-2003 11:11 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration