Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default Linking my lib folder with images to the java command

    Hi there,

    I am trying to launch my class files on my linux machine, ubuntu. I can get every thing working correctly expect no images will be displayed!! I have 2 images located in the lib folder. When using eclipse to run and on a windows box these images are displayed. Its just in linux that they dont!

    I am using this command:

    java -classpath ./bin/:./lib/:./lib/mysql-connector-java-5.1.10-bin.jar (programfile)/Login

    I have also trying linking to each image its self, for example: ./lib/image.png

    Any ideas why my images are not being displayed??

  2. #2
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default

    found out what the problem was. It was due to using windows \ instead of linux /

Similar Threads

  1. Starting Java prog from a different folder
    By entropy in forum New To Java
    Replies: 2
    Last Post: 04-02-2010, 10:39 AM
  2. Create a folder within a java program.
    By yellowfire7 in forum New To Java
    Replies: 2
    Last Post: 10-26-2009, 11:14 PM
  3. HTML linking and java applets
    By Bomber_Will in forum Java Applets
    Replies: 4
    Last Post: 02-08-2009, 08:50 PM
  4. Replies: 2
    Last Post: 11-21-2008, 06:59 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 01:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •