error in running javacodes on linux(mandrake)??

Discussion in 'Linux & BSD' started by @n!e, Jun 19, 2003.

  1. @n!e

    @n!e Guest

    hi,
    i'm new to linux.
    i've try to run my java source code on linux(mandrake) which i've already install the jdk for it. I got error when i run it. Is there any possiblities where i can run the same code on my windows and can't run on linux? May i know why is this occur??
    thanks in advance.:confused:
     
  2. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    What error? What compiler? Info, info, info.
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Java code is able to be executed on Windows and Linux so it should work, specifically what error are you getting?
     
  4. @n!e

    @n!e Guest

    my java error???

    hi,

    But i got the following error:

    Font specified in font.properties not found [--symbol-medium-r normal--*-%d-*-*-p-*-adobe-fontspecific]
    Warning: Cannot convert string "<Key>Home,_Key_Begin"
    to type VirtualBinding
    Warning: Cannot convert string "<Key>F1,_Key_Help" to
    type VirtualBinding
    Warning: Cannot convert string
    "Shift<Key>F10,_Key_Menu" to type VirtualBinding
    Warning: Cannot convert string
    "<Key>F10,Shift_Key_Menu" to type VirtualBinding
    Warning: Cannot convert string
    "<Key>KP_Enter,_Key_Execute" to type VirtualBinding
    Warning: Cannot convert string
    "Alt<Key>Return,Alt_Key_KP_Enter" to type
    VirtualBinding
    Exception in thread "main"
    java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(ImageIcon.java:99)
    at SplashScreen.<init>(MainFrame.java:528)
    at Client.main(Client.java:124)

    can anyone of you tell me what is it?
    Thanks in advance.
    :confused:
     
  5. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    The first one is easy, the font you want to use does not exist. Try using a generic font.

    The ones after that are telling you that for some reason it cannot convert the string "Alt<Key>Return,Alt_Key_KP_Enter" to the type VirtualBinding, i think this has to do with key binding of some sort.
     
  6. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    The NullPointerException is because you are trying to use an uninitialized variable, in this case probably an ImageIcon. You have created a variable for it, but not created an object.
     
  7. @n!e

    @n!e Guest

    hi, thanks. i'l try to fix it ur way.
     
  8. @n!e

    @n!e Guest

    jdk 1.2.2??

    hi, based on my situation, so i realli need to change my current jdk 1.2.2 to 1.4.1??
    What are the consequences if i change/remain?
    Btw, what's the different between sdk and jdk? i'm confused by this two term.
    thanks again.
     
  9. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Well 1.4.1 should be better I guess. Don't know if it affects anything negatively. SDK is Software Development Kit, JDK is (i guess) Java Development Kit. Don't know if there's and difference and if so, what.