Visit the LQ Articles and Editorials section
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 10-01-2004, 12:06 AM   #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 10-01-2004, 12:15 AM   #2
Senior Member
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 135Reputation: 135
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 04:56 AM
Animated GIF program lamiczka Linux - Software 5 02-04-2005 07:41 AM
compile java program under mandrake 10.1 wakemeup Linux - Laptop and Netbook 2 11-30-2004 09:56 AM
I need a program to combine text with gif files stephenoregan4 Linux - Software 1 02-16-2004 10:29 AM
Compile linux program for windows Mor_Petrus Programming 3 04-08-2003 12:11 PM

All times are GMT -5. The time now is 09:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration