On 3 Feb, 23:18, stinkinric...@googlemail.com wrote:
> ahh your joking!! I just posted a massive post and it didn't show up.
> I clicked "reply to author" and I think it went to Andy. Would you
> mind posting it for me please?? sorry! (thanks!)
Here you go:
On 3 Feb, 16:05, "Andy Dingley" <ding...@codesmiths.com> wrote:
> On 3 Feb, 13:33, stinkinric...@googlemail.com wrote:
>
> > Hello! I've created a jar file, works fine on my pc (in any directory)
> > but won't work on anyone elses computer.
>
> As a wild guess, it's not the JAR that's at fault. Instead it probably
> has a dependency on something that your PC has installed on the
> classpath, but their's doesn't.
woooooww, sorry guys, why didn't I get an email telling me I had
replies!? (I'm new to this forum) (sorry, group)
anyway, I'm pretty sure I have the right manistest thing. This is what
I have:
Main-Class: ShutTheBox
in file name "yo" (yes! It has the extra line underneath it!) I had
loads of trouble creating a jar because I didn't think i needed to
include all the ShutTheBox$1.class files! I didn't know what they
were! I have them up to $10. I think theyre somthing to do with my
inner class actionListener things. But I include all of them now, and
the 6 gif files I need.
(ohh, rant about google pages, it looses all the $'s so I can't upload
an applet version there!)
Anyway, it works fine on my computer in any directory, with no other
files in the directory. I open the jar file using 7zip and all
the .class files and gifs are there. And there is a folder called
META-
INF with the manifest in it.
I use textpad to compile it and the command line jar cmf manifest
hello.jar *.class *.gif to create it. Works fine.
Do you recon it's the actuall class? I've uploaded an applet version
to
http://www.txfiles.co.uk/rich/ShutTheBox.html. My mate couldn't get
it working on there but, again, it work fine on my pc
thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!