Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Java Program not working.  (Read 3587 times)

0 Members and 1 Guest are viewing this topic.

the webcam guy

    Topic Starter


    Beginner

    • Experience: Familiar
    • OS: Windows 7
    Java Program not working.
    « on: November 08, 2008, 09:27:13 PM »
    Having trouble with this freeware program I came across. I unzipped it and the first time I double clicked it, it worked. Every other time it did nothing at all.  I installed all the java stuff on my Windows XP computer that I thought could run it. I thought maybe it needed a class of some kind so I tried dragging the "animelamp executable file" into the Java bin's "javac" to make a class file. That didn't work. I have no clue how to get this program to work.

    [Saving space - attachment deleted by admin]

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Java Program not working.
    « Reply #1 on: November 08, 2008, 09:47:05 PM »
    try the batch file.
    I was trying to dereference Null Pointers before it was cool.

    the webcam guy

      Topic Starter


      Beginner

      • Experience: Familiar
      • OS: Windows 7
      Re: Java Program not working.
      « Reply #2 on: November 08, 2008, 09:48:26 PM »
      try the batch file.
      Command prompt comes up for a second, then closes a second later. Nothing happens.

      Broni


        Mastermind
      • Kraków my love :)
      • Thanked: 614
        • Computer Help Forum
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 8
      Re: Java Program not working.
      « Reply #3 on: November 08, 2008, 09:55:22 PM »
      What program is it?
      What did you double click? I don't see any exe file.

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Java Program not working.
      « Reply #4 on: November 08, 2008, 09:59:45 PM »
      It's a java program, which usually runs via .class files- here they are packaged in JAR files. which one has the main class is a puzzle in and of itself.


      webcam guy- right click the batch file and select edit. What is inside?
      I was trying to dereference Null Pointers before it was cool.

      the webcam guy

        Topic Starter


        Beginner

        • Experience: Familiar
        • OS: Windows 7
        Re: Java Program not working.
        « Reply #5 on: November 08, 2008, 10:03:33 PM »
        What program is it?
        What did you double click? I don't see any exe file.
        It is animelamp.
        Double clicked .bat like BC said.

        webcam guy- right click the batch file and select edit. What is inside?
        @echo off

        set PATH=%PATH%;.

        start javaw -jar animelamp.jar > animelamp.log

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Java Program not working.
        « Reply #6 on: November 08, 2008, 10:11:20 PM »
        sounds like there could be a class missing in there. Have you tried reinstalling/re-unzipping the program from the original archive?
        I was trying to dereference Null Pointers before it was cool.

        the webcam guy

          Topic Starter


          Beginner

          • Experience: Familiar
          • OS: Windows 7
          Re: Java Program not working.
          « Reply #7 on: November 08, 2008, 10:22:29 PM »
          sounds like there could be a class missing in there. Have you tried reinstalling/re-unzipping the program from the original archive?
          I've unzipped it a few times and re tried running the .bat. It just comes up with the command prompt for a second and then goes away.


          « Last Edit: November 09, 2008, 08:21:00 AM by patio »

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Java Program not working.
          « Reply #8 on: November 09, 2008, 08:21:39 AM »
          Did you know there is a data-mining link in your image above ? ?
          " Anyone who goes to a psychiatrist should have his head examined. "

          the webcam guy

            Topic Starter


            Beginner

            • Experience: Familiar
            • OS: Windows 7
            Re: Java Program not working.
            « Reply #9 on: November 10, 2008, 12:02:31 AM »
            Did you know there is a data-mining link in your image above ? ?
            Imageshack automatically puts that link in there.

            patio

            • Moderator


            • Genius
            • Maud' Dib
            • Thanked: 1769
              • Yes
            • Experience: Beginner
            • OS: Windows 7
            Re: Java Program not working.
            « Reply #10 on: November 10, 2008, 08:20:58 AM »
            When did they start doing this ? ?
            " Anyone who goes to a psychiatrist should have his head examined. "

            Kip



              Apprentice

              Thanked: 21
              • Yes
              • Yes
              • Yes
            • Experience: Experienced
            • OS: Linux variant
            Re: Java Program not working.
            « Reply #11 on: November 10, 2008, 04:32:29 PM »
            ImageShack does not do that to me.
            Happiness is not getting what you want, it is wanting what you get.

            the webcam guy

              Topic Starter


              Beginner

              • Experience: Familiar
              • OS: Windows 7
              Re: Java Program not working.
              « Reply #12 on: November 13, 2008, 12:16:48 AM »
              ImageShack does not do that to me.
              It's when you use their "Hotlink for forums(1)" link.
              See:



              patio

              • Moderator


              • Genius
              • Maud' Dib
              • Thanked: 1769
                • Yes
              • Experience: Beginner
              • OS: Windows 7
              Re: Java Program not working.
              « Reply #13 on: November 13, 2008, 07:15:05 AM »
              Then use the direct link instead...
              " Anyone who goes to a psychiatrist should have his head examined. "

              the webcam guy

                Topic Starter


                Beginner

                • Experience: Familiar
                • OS: Windows 7
                Re: Java Program not working.
                « Reply #14 on: November 13, 2008, 03:45:04 PM »
                Then use the direct link instead...
                I tried that, but nothing showed up in the preview.
                See: