
Signature
Knute Johnson
email s/nospam/knute/
>>>> Hello all, I am trying to create an executable jar file from my JOGL
>>>> prog.
[quoted text clipped - 12 lines]
> 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
Knute Johnson - 16 Mar 2007 17:39 GMT
>>>>> Hello all, I am trying to create an executable jar file from my JOGL
>>>>> prog.
[quoted text clipped - 18 lines]
> class net/java/jogl/GLEventListener" ?
> Ivan
Your program needs GLEventListener. If that is in a .jar file
somewhere, you need to include that file in your java classpath. The
java classpath for an application in a .jar must be specified in the
manifest file. Read the article I pointed you to it tells you
everything you need to know.

Signature
Knute Johnson
email s/nospam/knute/
ivan danicic - 18 Mar 2007 20:58 GMT
>>>>> Hello all, I am trying to create an executable jar file from my JOGL
>>>>> prog.
[quoted text clipped - 19 lines]
> 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
Knute Johnson - 19 Mar 2007 01:00 GMT
>>>>>> Hello all, I am trying to create an executable jar file from my JOGL
>>>>>> prog.
[quoted text clipped - 31 lines]
> 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.

Signature
Knute Johnson
email s/nospam/knute/
ivan danicic - 19 Mar 2007 13:27 GMT
>>>>>>> Hello all, I am trying to create an executable jar file from my JOGL
>>>>>>> prog.
[quoted text clipped - 20 lines]
> if you have an application in a jar you cannot retrieve a resource that
> is not also in a jar.
Hello, following a JAR tutorial from SUN I did this
jar uf example.jar flag.bmp
and then copying example.jar to another directory D and then cd D,
java -jar example.jar
the flag.bmp was not found, but then extracting the contents of example.jar:
jar xf example.jar (in D)
which put all files in the jar file into D, including flag.bmp so that doing
again java -jar example.jar all went well. Is this how one is supposed to
do it?
Ivan
Knute Johnson - 19 Mar 2007 16:48 GMT
>> 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,
[quoted text clipped - 11 lines]
> do it?
> Ivan
I'd have to see some code and then try it myself.

Signature
Knute Johnson
email s/nospam/knute/