I created new project in libgdx without Android, specified for Eclipse. I added testcar.png to assests in core project, refreshed core and desktop projects,
new Texture(Gdx.files.absolute("C:\\TestGame\\desktop\\bin\\testcar.png"));
new Texture(Gdx.files.internal("testcar.png"));
gives
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException:
Couldn't load file: C:/TestGame/desktop/bin/testcar.png at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:148) at com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:98) at com.badlogic.gdx.graphics.Texture.(Texture.java:100) at com.badlogic.gdx.graphics.Texture.(Texture.java:92) at com.mygdx.screens.MainMenuScreen.show(MainMenuScreen.java:33)
but both those constructors work with jpg or gif(same folder as png) without any problem.
What i do wrong ? Is it bug?