Web Analytics Made Easy -
StatCounter Gaming problems in java - CodingForum

Announcement

Collapse
No announcement yet.

Gaming problems in java

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gaming problems in java

    Hello, I have problem. Because the display of
    Code:
    import com.brackeen.javagamebook.graphics.*;
    is The import com.brackeen cannot be resolved and I would like advice.Thanks.
    Attached Files

  • #2
    An error message would be nice.
    Have you included the com.brackeen.* resource into your project resources during compilation?
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

    Comment


    • #3
      Hello,how can I check and fix it;

      Comment


      • #4
        Originally posted by Fot View Post
        Hello,how can I check and fix it;
        In javac you would ensure that you have enabled the classpath with -cp and added the path to the external jar.
        If you're using an IDE, you'll need to consult the IDE documentation for how to add external resources.
        PHP Code:
        header('HTTP/1.1 420 Enhance Your Calm'); 
        Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

        Comment


        • #5
          I have problem with installaton and set up with apache ant. I am confused .Thanks.

          Only the bin and lib directories are required to run Ant. To install Ant, choose a directory and copy the distribution files there. This directory will be known as ANT_HOME.


          On these systems you will also need to configure more environment space to cater for the environment variables used in the Ant lauch script. To do this, you will need to add or update the following line in the config.sys file

          shell=c:\command.com c:\ /p /e:32768


          Add the bin directory to your path.
          Set the ANT_HOME environment variable to the directory where you installed Ant. On some operating systems, Ant's startup scripts can guess ANT_HOME (Unix dialects and Windows NT/2000), but it is better to not rely on this behavior.
          Optionally, set the JAVA_HOME environment variable (see the Advanced section below). This should be set to the directory where your JDK is installed.


          From manual http://ant.apache.org/manual/index.html

          Comment


          • #6
            I tried this in cmd but cannot set new variable.

            set ANT_HOME=c:\ant
            set JAVA_HOME=c:\jdk-1.7.2
            set PATH=%PATH%;%ANT_HOME%\bin

            Comment


            • #7
              Use the gui to add it into the user variables, not the system ones.
              From run dialog: sysdm.cpl > Advanced > Environment Variables, and either add or modify if it exists the PATH in User Variables.
              I fail to see how this has any relevance on the question at hand.
              PHP Code:
              header('HTTP/1.1 420 Enhance Your Calm'); 
              Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

              Comment


              • #8
                Requires Apache Ant 1.5 to compile. Ant is either directly integrated or available as a plugin for several free/open source editors and IDEs, including jEdit, NetBeans, and Eclipse.

                If use Apache Ant, everything compiles error-free

                Comment


                • #9
                  Thanks a lot , I found it.

                  Comment

                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎