User Profile

Collapse

Profile Sidebar

Collapse
herenbdy
herenbdy
Last Activity: Mar 26 '08, 10:20 PM
Joined: Mar 2 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • herenbdy
    replied to I started this class 5 days ago
    in Java
    The import command allows you to load other classes into your code so that you can use their methods, for example:

    Code:
    import java.applet.Applet;
    This code finds the Applet class int the JRE library, and imports it. This allows you to make an Applet object, extend the Applet class, use Applet methods, etc.
    See more | Go to post

    Leave a comment:


  • herenbdy
    replied to Proper way to load files within a jar
    in Java
    Addendum:
    Jar woes once more.

    This time images will not load when the game is run from a Jar, neither in Applet nor Application form (It however works perfectly fine in Eclipse). The entire screen is just black, however the size of the window is correct so clearly some part of the code is working. I figured that the images or xml files were not being loaded, however the Java console does not give me any errors at all (normally...
    See more | Go to post

    Leave a comment:


  • herenbdy
    replied to Proper way to load files within a jar
    in Java
    Nevermind, moving my library and config folders into the "/bin" folder makes the game function both within Eclipse and within a Jar, slightly annoying but it works, thanks for the help!
    See more | Go to post

    Leave a comment:


  • herenbdy
    replied to Proper way to load files within a jar
    in Java
    3rd Edit: Eureka! The JAR functions now, however it required me placing the library and config folders inside the same folder as my source code. However, this looks absolutely ugly in the Eclipse file explorer (as it treats all folders inside the source folder as packages). Is there a way to work around this?
    See more | Go to post

    Leave a comment:


  • herenbdy
    started a topic Proper way to load files within a jar
    in Java

    Proper way to load files within a jar

    I've been working on a Java based game in order to learn Java, but the game is functional only within my IDE (Eclipse).

    This image shows the file structure of my project:

    Jar and HTML file: http://files.herenbdy.com/Game.zip

    All the XML files I use are within the config folder, and all images within library. The applet is inside the main package, Main.java.

    First problem: I found out that...
    See more | Go to post
No activity results to display
Show More
Working...