Re: jar
ivan danicic wrote:
"ivan danicic" <ivan@goaway.spam> wrote in message
news:5_wKh.86648$nW6.83040@fe2.news.blueyonder.co.uk...
Knute Johnson wrote:
ivan danicic wrote:
Knute Johnson wrote:
ivan danicic wrote:
Hello all, I am trying to create an executable jar file from my JOGL
prog.
When trying to run it (example.jar)so: java -jar example.jar I get
error: can't find class ..net/java/jogl/GLEventListener. Any
suggestions or comments gratefully received.
Ivan
Well your program wants GLEventListener, where is it? Is that a class
you wrote? Is it part of example.jar? Is it in some library
somewhere?
Hello, I didn't write it. It's some standard jogl thing so it's
probably
somewhere but the user should not tinker with that.
Ivan
You are not going to get very far without it as you seem to have
discovered.
Hello, I have this
file: /bla/classes/net/java/games/jogl/GLEventListener.class
How can I use this information in view of the error message "can't find
class net/java/jogl/GLEventListener" ?
Ivan
Hello, I have solved this now by putting the line
Class-Path: /bla
into my manifest file.
This works fine except the program needs a data file "flag.bmp". If this
is inthe current directory all goes well, otherwise it can't find it.
If I do
jar cmf manifest example.jar flag.bmp
and then "java -jar example.jar " it says it can't find the main class.
Further suggestions gratefully received.
Ivan
You can probably add the flag.bmp file to the example.jar but you can't
jar a jar and get it to work. As far as I have been able to determine,
if you have an application in a jar you cannot retrieve a resource that
is not also in a jar.
--
Knute Johnson
email s/nospam/knute/