Jump to content

phunni

Members
  • Posts

    3200
  • Joined

  • Last visited

Posts posted by phunni

  1. I think I did - but it's all irrelevant now. Thanks anyway.

     

    I've dug out my old compaq ipaq pda and installed linux on it. I can sync with the supplied desktop software (kind of equivalent to the palm desktop thing) on Linux and I think an evolution solution is not far away.

     

    Cheers

  2. Phunni

     

    I've been pretty careful and thorough about this over the last couple of days and I still haven't got it working!  I haven't finished trying but I've got to spend some time preparing for an exam:)

     

    I must be doing something wrong as it appears to be working under Windows/jdk1.3 when I import an unpackaged class.  It's me!

     

    Thanks for bothering I appreciate your efforts.  I'll be back!

     

    Importing an upackaged class would be fine - but uuInOut is in a package - or it's declared to be

  3. Hope this isn't too basic - I'm trying to assume no knowledge

     

    OK - here goes: (deep breath)

     

    There are two steps to putting a class into a package - I'll use the example of a simple HelloWorld class.

     

    1) Create the directory structire for a package - so, if we want org.mandrakeusers.HelloWorld then we create an org directory containing a mandrakeusers directory containing HelloWorld.class

     

    Note: We often use domain names in reverse to guaruntee uniqueness of packages

     

    2) We need to put a package decalration at the very top of our class so:

     

    package org.mandrakeusers;
    
    
    
    public class HelloWorld {
    
    ...
    
    }

     

    Note: package declarations MUST be at the top of the class - only comments can go above

     

    HelloWorld is now in a package. You can have as many classes in one package as you like.

     

    In order to use HelloWorld in aonther class, we have two options:

     

    1) simply refer to it by it's full package name - e.g.:

     org.mandrakeusers.HelloWorld hello = new org.mandrakeusers.HelloWorld();

     

    2) import it and then refer to it without the package structure:

     

    import org.mandrakeusers.HelloWorld;
    
    
    
    public class Whatever{
    
    ...
    
    
    
    HelloWorld hello = new HelloWorld();
    
    
    
    ...
    
    }

     

    Note that you can use wildcards to import packages - although they only import the classes in the specified directory so: import org.mandrakeusers.* will NOT import any classes in org.mandrakusers.otherproject.

     

    In order for the class to be found the org directory - NOT the class file - needs to be directly on the classpath. So if my classpath = /home/user/MyClasses then the structure will be: /home/user/MyClasses/org/mandrakeusers.HelloWorld.class

     

    Final thing to mention is privacy declarations:

     

    private = only visible to this class

    public = visible to all classes

    protected = visible to subclasses and classes in the same package

    default = visible to classes in the same package

     

    I realise that I probably should have put this on the web somewhererr and just linked to it - but, frankly, I couldn't be bothered :)

     

    Any questions - or anything unclear, then let me know

     

    Phew!

  4. The compiler and runtime should be fairly standard, regardless of platform - although there are some differences and it could just be a problem with the linux version. I would suggest that this is a last resort diagnosis though. If you could fnd out if it's ok to show me the source - via private message if you'd prefer - we might be able to figure this out further

  5. I use fluxbox as my window manager and have written a script called autostart.sh which gets run when fluxbox is started.

     

    I tried to use a package that was supposed to randomly set my background based on images in a given directory - this didn't work so I wrote a simple Java class to do the same.

     

    I then wrote a simple shell script to run it and added this to autostart.sh as something to run when fluxbox is started.

     

    Nothing happens. If, however, I run my script in a konsole - all works beautifully. What's going on here?

     

    My script is as follows

     

    export CLASSPATH=$CLASSPATH:~/.fluxbox

    java BackgroundChanger ~/.fluxbox/backgrounds

  6. Hmmmm - I do seem to have those files installed - but I'm still getting problems. Is there anything else that should be installed under ~/.wolf?

     

    I tried to run a local server so that a friend of mine could play a quick game with me - but if I ran the server from Linux, it failed - he would get kicked all the time. When we ran it from Windows (with me playing as a client on Linux) all fine

  7. I recently lost most of the files in my home directory. I already had Return to Castle Wolfensteing installed on my system, but I get complaintswhen connecting to a multiplayer server about files missing in my ~/.wolf directory - especially relating to punkbuster.

     

    Does anything need to be put here, and if so what?

  8. I want to try to make some animated films primarily just using software - i.e. create the images using software - make movies using animations of those images in an acceptable format.

     

    Is there any software for linux that can do this? I have seen film gimp, but I'm not yet sure if this is exactly what I'm looking for - perhaps a few people can help me out there.

  9. I have put the skin in ~/mplayer/Skin as that was where it seemed to look for it. It tries to find the default skin (which isn't there - I had to create the Skin directory). I have a folder called "phony" in my Skin directory that contains the skin - I put this there because that was the logical response to the tutorial.

  10. Woo hoo - compiled and installed!

     

    Now - is there a way of configuring it? I ask for two reasons?

     

    1) It doesn't seem to find my skin - it's in the right place

     

    2) It crashes every time :( when I try to view the test movie - whatever trailer that is - It just crashes. Is there a way to buffer the movie?

  11. Got the following errors during make && make install :

     

    libvo/libvo.a(vo_gif89a.o): In function `config':

    vo_gif89a.o(.text+0x2c0): undefined reference to `EGifOpenFileName'

    vo_gif89a.o(.text+0x313): undefined reference to `MakeMapObject'

    vo_gif89a.o(.text+0x377): undefined reference to `EGifPutScreenDesc'

    libvo/libvo.a(vo_gif89a.o): In function `flip_page':

    vo_gif89a.o(.text+0x510): undefined reference to `QuantizeBuffer'

    vo_gif89a.o(.text+0x5c8): undefined reference to `EGifPutExtension'

    vo_gif89a.o(.text+0x608): undefined reference to `EGifPutImageDesc'

    vo_gif89a.o(.text+0x630): undefined reference to `EGifPutLine'

    libvo/libvo.a(vo_gif89a.o): In function `uninit':

    vo_gif89a.o(.text+0x7a8): undefined reference to `FreeMapObject'

    vo_gif89a.o(.text+0x82b): undefined reference to `EGifPutComment'

    vo_gif89a.o(.text+0x838): undefined reference to `EGifCloseFile'

    collect2: ld returned 1 exit status

    make: *** [mplayer] Error 1

     

    I was logged in as root and am confident that I have all the dependencies. My configure worked fine - any ideas?

  12. Anybody know why I can't enable punkbuster for multiplayer RTCW? I have upgraded to 1.4 GOTY and the installer said it was installing punkbuster. I am quite limited in which games I can join unless I can get this working.

     

    When I click on the punkbuster:Disabled box - I get a dialog asking if I want to enable punkbuster; I click yes but nothing happens - still disabled :(

×
×
  • Create New...