Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Project Classpath problems
Eclipse Project Classpath problems [message #133711] Wed, 01 February 2006 05:06 Go to next message
Eclipse UserFriend
Originally posted by: rjmig88.hotmail.com

Hi,

I am fairly new to eclipse and I am having an annoying time fixing an
annoying habit of eclipse. When I run my java app from eclipse it seems to
set the classpath to the project folder and not to project folder/bin
(where my .class files are at). This is very annoying because any image
files I reference (located in my project's folder/bin/images/) in my app
doesn't show up when the app is launched from eclipse. Just bringing up
the console and running java MyProgram works like it should, so it is an
eclipse problem. How do I fix this? I've tried setting the project paths
to everything I could think of but when I run it from Eclipse it doesn't
work.

Thank you.
Re: Eclipse Project Classpath problems [message #133768 is a reply to message #133711] Wed, 01 February 2006 06:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osadeh.gmail.com

Hi,
Eclipse has several 'classpaths'. One for compiling and one for
execution. The former (aka 'Build Path') is configured in the Project
Properties dialog box, in the Java Build Path node, while the latter in
the Run/Debug configuration editor. By default the execution classpath
is the build path of the project (which is not necessarily the project
folder)), but you can add entries as you wish.

HTH,
Oren


Randy wrote:
> Hi,
>
> I am fairly new to eclipse and I am having an annoying time fixing an
> annoying habit of eclipse. When I run my java app from eclipse it seems
> to set the classpath to the project folder and not to project folder/bin
> (where my .class files are at). This is very annoying because any image
> files I reference (located in my project's folder/bin/images/) in my app
> doesn't show up when the app is launched from eclipse. Just bringing up
> the console and running java MyProgram works like it should, so it is an
> eclipse problem. How do I fix this? I've tried setting the project paths
> to everything I could think of but when I run it from Eclipse it doesn't
> work.
>
> Thank you.
>
Re: Eclipse Project Classpath problems [message #134366 is a reply to message #133768] Fri, 03 February 2006 00:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rjmig88.hotmail.com

I am not getting it to work correctly. No matter where or how I set the
buildpath it doesn't work.

This is how I have it layed out:
my classes then a folder called images.

"images/thisiswhereallmyimagesareat.jpg" for all the images in my java
code.
Running it on windows command prompt cmd.exe and linux's bash terminal
everything works fine. the images are displayed properly. when run on my
windows machine under eclipse i need to add
bin/images/thisiswhereallmyimagesareat.jpg in my code to get them to
display on eclipse. now of course i could just leave it like that but its
very annoying to keep having to do this because i am switching back
constantly with linux and my windows machine because im testing to be sure
everything is compatible and it is getting very annoying using eclipse so
I think I may have to find another IDE.

I've tried:
Editing anything even remotely related to calling java's utilities in the
project options.
Ive tried editing everything in the run options.
It is not changing the very annoying behavior. It keeps calling the JVM
from the project folder, NOT the bin folder where i have my .class files
at.
Re: Eclipse Project Classpath problems [message #134706 is a reply to message #134366] Fri, 03 February 2006 17:31 Go to previous message
Eclipse UserFriend
Originally posted by: rjmig88.hotmail.com

Bleh Ill just put my compiled program in the project's base folder. Now
its all messy instead of having my redistribution in a nice packaged
folder =/
Previous Topic:Bluetooth in Eclipse?
Next Topic:Using BPEL plugins
Goto Forum:
  


Current Time: Wed Jan 15 08:46:54 GMT 2025

Powered by FUDForum. Page generated in 0.06801 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top