473,545 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Game- Game can't find it's graphics jar file

My name is Nick Soutter, I own a small game development company
(www.aepoxgames.net) making our first game (www.andromedaonline.net) in
java.

I am writing because we are having a very serious problem, and I was hoping
someone might have thoughts.

Our game has 2 main programs- one is an updater, the other is the game
client. The updater (AndromedaOnlin e.jar) checks for updates to the
graphics, sound, client, and of course itself. After applying any updates,
the updater runs the client (AndromedaClien t.jar) for people to play with.

When players install this program on their systems with pre-existing
versions of JAVA, it runs fine. When they try to install it after installing
a fresh, new Java JRE, however, it fails.

I am running Java 1.4.1_05 on my system. This runs fine. After some Alpha
testers reported client problems, we brought up a test computer, installed a
fresh Windows XP, installed Java 1.4.1_05 on the system, then installed the
game. The updater ran fine, but the client failed to run. It threw null
pointer exceptions when it tried to load the graphics from the graphics jar
file (AndromedaGFX.j ar)

Strange as this may sound, this problem SEEMS to only to occur on newly
installed JRE's.

The problem appears to be that the client is not reading graphics from the
associated graphics jar. The updater is small, so we were able to include
its graphics with the updater, instead of in a separate jar, which is
probably why the updater works fine.

If we take the bad Andromeda game folder, copy it to another computer with
Java on it, the game works fine. But copy the folder back to the freshly
installed computer, and it won't work.

We suspected a classpath issue, but there's a classpath info in the client
jar which should prevent this. Further, we've updated all the classpath
information on the new installation, aswel as path, and JAVA_HOME
environmental variables. None of it worked (it is interesting to note that
classpath isn't set on the working machine, it gets that from the client
manifest).

We've had this problem reported on three windows machines and have been
unable to fix it. On at least 5 machines it appears to runs fine. We haven't
a clue what is causing this problem. It does not appear to be the game or
the code, as copying the game folder from a "bad" machine to a "good" one
allows the client within the folder to work.

It's very strange, and ALL of us here are stumped. We go to beta soon, and
obviously this is a serious problem. Again, as strange as it sounds, the
only common thread is new installs of java where none existed. Install java
on your machine (any 1.4.1 or higher), and the client can't load it's own
graphics files (copy of client manifest below).

If you'd like to see the basic files, they can be found at
http://www.aepox.net/andromeda/Downl...omedaBasic.zip. This includes
the updater and client, as well as the libraries. If you run the updater
(AndromedaOnlin e.jar) it will attempt to download the graphics package
(AndromedaGFX.j ar). If you want to download the entire package (graphics and
everything) it's at
http://www.aepox.net/andromeda/Downl...medaOnline.zip

Thank you for your time. Any thoughts as to the cause of this troublesome
problem would be MUCH appreciated.

Nick Soutter

Aepox Games

Manifest-Version: Version 1.0

Specification-Title: Andromeda GameClient Classes

Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;

Main-Class: com.andromeda.g ameclient.PreGa meClient

Implementation-Title: com.andromeda.g ameclient

Specification-Vendor: Aepox Games

Specification-Version: 1.0

Implementation-Version: 40119

Name: com/andromeda/gameclient

Implementation-Vendor: Aepox Games
Jul 17 '05 #1
21 4380
BlackHawke wrote:
Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;


I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software
Jul 17 '05 #2
Ohhhhhhhh....

You're right!!

I gave it a shot, and unfortunately that didn't work.... I'd think that
would have been it... Thank you for the suggestion though, nice catch!!!

So unfortunately, despite fixing that problem, this still doesn't work... :(

any other thoughts?

Nick


"Phyrum Tea" <me@tea.ch> wrote in message
news:40******** **@news.bluewin .ch...
BlackHawke wrote:
Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;


I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software

Jul 17 '05 #3
Ohhhhhhhh....

You're right!!

I gave it a shot, and unfortunately that didn't work.... I'd think that
would have been it... Thank you for the suggestion though, nice catch!!!

So unfortunately, despite fixing that problem, this still doesn't work... :(

any other thoughts?

Nick


"Phyrum Tea" <me@tea.ch> wrote in message
news:40******** **@news.bluewin .ch...
BlackHawke wrote:
Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;


I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software

Jul 17 '05 #4
BlackHawke wrote:
Ohhhhhhhh....

You're right!!

I gave it a shot, and unfortunately that didn't work.... I'd think that
would have been it... Thank you for the suggestion though, nice catch!!!

So unfortunately, despite fixing that problem, this still doesn't work... :(

any other thoughts?
Have you done any bare bones testing? Make the snallest working piece
of code that uses the same mechanisms to load graphics and see if the
problem persists. Keep things as close to real as possible. In other
words, keep graphics file names the same, keep overall directory
structures the same, and so on. If after this the problem goes away,
you can be fairly certain there is something in your code that is
causing the problem.
Nick


"Phyrum Tea" <me@tea.ch> wrote in message
news:40******** **@news.bluewin .ch...
BlackHawke wrote:

Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;


I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software


Jul 17 '05 #5
BlackHawke wrote:
Ohhhhhhhh....

You're right!!

I gave it a shot, and unfortunately that didn't work.... I'd think that
would have been it... Thank you for the suggestion though, nice catch!!!

So unfortunately, despite fixing that problem, this still doesn't work... :(

any other thoughts?
Have you done any bare bones testing? Make the snallest working piece
of code that uses the same mechanisms to load graphics and see if the
problem persists. Keep things as close to real as possible. In other
words, keep graphics file names the same, keep overall directory
structures the same, and so on. If after this the problem goes away,
you can be fairly certain there is something in your code that is
causing the problem.
Nick


"Phyrum Tea" <me@tea.ch> wrote in message
news:40******** **@news.bluewin .ch...
BlackHawke wrote:

Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;


I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software


Jul 17 '05 #6
"BlackHawke " <bl********@leg acygames.net> wrote in message news:<r6******* ***********@new sread2.news.pas .earthlink.net> ...

Show your code that accesses graphics files in question.
Jul 17 '05 #7
"BlackHawke " <bl********@leg acygames.net> wrote in message news:<r6******* ***********@new sread2.news.pas .earthlink.net> ...

Show your code that accesses graphics files in question.
Jul 17 '05 #8
Hi

How does the updater start the game after the update is finished?
Runtime.exec()? direct class-instantiation ?, ... ?

greets,
mike

inexess technology
Software-Development
Jim Sculley wrote:
BlackHawke wrote:
Ohhhhhhhh....

You're right!!

I gave it a shot, and unfortunately that didn't work.... I'd think that
would have been it... Thank you for the suggestion though, nice catch!!!

So unfortunately, despite fixing that problem, this still doesn't
work... :(

any other thoughts?

Have you done any bare bones testing? Make the snallest working piece
of code that uses the same mechanisms to load graphics and see if the
problem persists. Keep things as close to real as possible. In other
words, keep graphics file names the same, keep overall directory
structures the same, and so on. If after this the problem goes away,
you can be fairly certain there is something in your code that is
causing the problem.

Nick


"Phyrum Tea" <me@tea.ch> wrote in message
news:40******** **@news.bluewin .ch...
BlackHawke wrote:
Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;
I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software



Jul 17 '05 #9
Hi

How does the updater start the game after the update is finished?
Runtime.exec()? direct class-instantiation ?, ... ?

greets,
mike

inexess technology
Software-Development
Jim Sculley wrote:
BlackHawke wrote:
Ohhhhhhhh....

You're right!!

I gave it a shot, and unfortunately that didn't work.... I'd think that
would have been it... Thank you for the suggestion though, nice catch!!!

So unfortunately, despite fixing that problem, this still doesn't
work... :(

any other thoughts?

Have you done any bare bones testing? Make the snallest working piece
of code that uses the same mechanisms to load graphics and see if the
problem persists. Keep things as close to real as possible. In other
words, keep graphics file names the same, keep overall directory
structures the same, and so on. If after this the problem goes away,
you can be fairly certain there is something in your code that is
causing the problem.

Nick


"Phyrum Tea" <me@tea.ch> wrote in message
news:40******** **@news.bluewin .ch...
BlackHawke wrote:
Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;
I don't know if it's a problem but your class-path does not meet the
manifest specification for jar files.

You may try to replace the semicolons with a space.

http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

Best regards

Phyrum Tea
--
Firstname/Lastname: Phyrum Tea, me@tea.ch
http://www.tea.ch/ - Crossword Puzzle Software



Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4485
by: Shawn | last post by:
I am getting the following error with a Java Applet being served out by IIS over HTTPS/SSL using a Verisign certificate: java.lang.NoClassDefFoundError: javax/help/HelpSetException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at...
1
10664
by: CM | last post by:
Hi, when i want connect me in my BD with a JSP (with this simple code), this exception is throw. Thank's for ur help Mathieu CODE of my JSP ---------------------
0
3573
by: anaik100 | last post by:
am trying to run a java db2 program. my db2 is in os/390. below is the code public class T4DB2Connect { public static void main(String args) { try { // load the DB2 Driver System.out.println("1" ); Class.forName("COM.ibm.db2os390.sqlj.jdbc.DB2SQLJDriver");
8
4985
by: gimme_this_gimme_that | last post by:
I have the following Java code : package com.rhi.bb.udf.utils; import java.sql.Clob; import java.sql.SQLException; import java.util.regex.Pattern; import java.util.regex.Matcher;
0
2850
by: NoaGross | last post by:
Hi, I'm relly new in java and I have a problem. I'm using java applet. When using http all ok, but when trying to use https i get: Java Plug-in 1.5.0_10 Using JRE version 1.5.0_10 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\noa ---------------------------------------------------- c: clear console window
0
3256
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)) and in both cases, get the following list returned from calling getDeclaredFields() on java.lang.ClassLoader via this code...
0
3242
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
0
1490
by: markthien | last post by:
Hi guys, I was trying to compile jasper report from java as below: public static void runReport(String databaseName, String userName, String password, String reportFile) { JasperReport jasperReport; JasperPrint jasperPrint; try { jasperReport = JasperCompileManager
3
11642
by: TsanChung | last post by:
I want to make a java TCP socket client to communicate with a TCP server socket on linux. Are there some sample C unix server and java client socket programs available? The Richard Stevens' "Unix network programming" book described a TCP server (tcpcliserv04.c) and client (tcpcli04.c). I compiled and executed them successfully as follows:...
1
4636
by: raagadeepthi | last post by:
Getting below error when iam trying to sort the values: Oct 29 04:33:52 WARN cb.DefaultController - Cannot forward after response has been committed java.lang.IllegalStateException: Cannot forward after response has been committed at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:375) at...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.