Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 3D / Re: java 3D problems on: 2006-04-05 21:32:06
Yay !!!!!! Cheesy
Fixed it !!!!
Apologies for my stupidity.

erm i didnt see a folder in my normal sdk (C:\Sun3\AppServer\jdk\jre\lib)
probably becuase there are so many and i was looking in the wrong place , thanks for helping. Smiley
2  Java Game APIs & Engines / Java 3D / Re: java 3D problems on: 2006-04-05 21:12:44
ive been following some instructions with it but im not clever enough to make it work , either that or my pc is cursed .
3  Java Game APIs & Engines / Java 3D / Re: java 3D problems on: 2006-04-05 21:08:54
sorry about this  Cry , always seems to happen to me , wish it would simply do what its supposed to , i need to take a programming course or something  Smiley
it will work eventually.
4  Java Game APIs & Engines / Java 3D / Re: java 3D problems on: 2006-04-05 17:43:16
Just want to say i know nothing  Grin
especially dont know what $ JAVA_HOME means cos ive never seen that before.

Erm i found an ext file in my jre thing, not my main java thing in sun3 with my tools and stuff though.

Its in here C:\Program Files\Java\j2re1.4.2_11\lib
and has some executable jar files in it already so i think this is the right one.It does already have like vecmap in it though.

ive put all the classfiles in there so ill try run the thing again.

ok doesnt work yet , but i found in here : C:\Sun3\AppServer\imq\lib
another file called ext which says:


 Sun Java System Message Queue
                                 Version 3.7


Any .jar or .zip file placed in this directory ($IMQ_VARHOME/lib on Unix
and %IMQ_VARHOME%\lib on Windows) is added to the Broker's CLASSPATH.
Typically this is only used when configuring JDBC support for the
Broker's persistent store.

also in the read me it says : Java 3D(TM) consists of four jar files and three shared libraries.
You do not need to include the jar files in your CLASSPATH,
nor do you need to include the shared libraries in your PATH.
You should include "." in your CLASSPATH or ensure that CLASSPATH
is not set.

thats like set CLASSPATH=   , but mine still doesnt work when i do that its really weird.

5  Java Game APIs & Engines / Java 3D / java 3D problems on: 2006-04-05 11:57:00
I really want to learn java 3D and have got the sources and pdf things from killer game making site.

Im trying to do the simplest thing- actually run the hello universe demo that comes with the opengl java 3D sdk.

ive just downloaded a jre which i thought was the same as a sdk without the demos but i guess is not, so it has installed the dlls to the right place now, so i will try to run the demo;

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Ash>gojava

C:\Documents and Settings\Ash>cd C:\Sun3\AppServer\jdk\files

C:\Sun3\AppServer\jdk\Files>PATH= C:\Sun3\AppServer\jdk\bin ( my normal tools like javac )

C:\Sun3\AppServer\jdk\Files>set CLASSPATH=

C:\Sun3\AppServer\jdk\Files>cd C:\jdk1.4\demo\java3d\HelloUniverse     (the location of the HelloUniverse class file)

C:\jdk1.4\demo\java3d\HelloUniverse>set CLASSPATH=C:\jdk1.4( the location of all my java 3D stuff, eg lib, bin , demo)

C:\jdk1.4\demo\java3d\HelloUniverse>java HelloUniverse
Exception in thread "main" java.lang.NoClassDefFoundError: HelloUniverse

C:\jdk1.4\demo\java3d\HelloUniverse>java HelloUniverse.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloUniverse/class

C:\jdk1.4\demo\java3d\HelloUniverse>set CLASSPATH= (thought i would try this)

C:\jdk1.4\demo\java3d\HelloUniverse>java HelloUniverse.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloUniverse/class

C:\jdk1.4\demo\java3d\HelloUniverse>java HelloUniverse
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/j3d/Node

C:\jdk1.4\demo\java3d\HelloUniverse>

obviosly its not looking in the right place for the class files but im not sure what to do.
6  Discussions / General Discussions / Re: Plugin problem with Firefox on: 2006-04-04 21:32:02
ya i had a similar problem with firefox but i cant actaully remember what it was.
7  Game Development / Newbie & Debugging Questions / Trying to run space invaders on: 2006-03-26 16:57:39
Thought i would move my question to here as im a newbie;

I got this space invaders game and have compiled it, the main source is Game.java , but i cant run it , how would i do this ?

if somebody could make it run themselves then tell me how to it would be really great  Smiley

http://www.uploadtemple.com/view.php/1143382968.rar

Could it be not running properly because it says it uses unsafe or unchecked things when i compiled it?

Dont worry ive fixed it now , i did same thing as before and it magically worked
( java org.newdawn.spaceinvaders.Game)

making my version now from scratch- garden invaders

Thanks for all the help you guys rule Smiley

8  Discussions / General Discussions / Re: How do i compile a multi source application? on: 2006-03-26 14:19:27
sorry doesnt work  Undecided

the file structure is c:\spaceinvaders\org\newdawn\spaceinvaders

im in the first space invaders and my Path is my bin, my Classpath is the default as my batch file is

cd C:\sun2\appserver\jdk\files
Path= sun2\appserver\jdk\bin
set CLASSPATH=

Heres the folder ( its Rared ) if you can get it to work you are a genius.( more likely i am a fool )

http://www.uploadtemple.com/view.php/1143382968.rar

Dont worry ive fixed it now , i did same thing as before and it magically worked
( java org.newdawn.spaceinvaders.Game)

making my version now from scratch- garden invaders

Thanks for all the help you guys rule Smiley
9  Discussions / General Discussions / Re: How do i compile a multi source application? on: 2006-03-26 14:07:31
Im trying to run it now from the same folder , the first one in from c:\, the same one i compiled it from, im typing java -cp.org.newdawn.spaceinvaders.Game.class (also tried .Game without .class) and it says unrecognised option could not create the virtual machine.

Also tried running it from a html but just said applet not initialised.

not sure what to do, also tried cd to the class file folder and java Game.class also didnt work( not class def found error even though its there with 6kb this time with all the others.
10  Discussions / General Discussions / Re: How do i compile a multi source application? on: 2006-03-26 13:34:33
yay i tried and it didnt work so i downloaded like a new version from here ; http://www.cokeandcode.com/node/8
and it worked but they defined a class AdvancedTimer ( import com.dnssalias.java.timer.AdvancedTimer; )
That compiler says doesnt exist so i have 4 errors.
Could they have a different jdk to me?
I have j2eesdk-1_4_03 .

Also not sure why the original folder wouldnt compile, but new one has more files in it like .classpath.
Thanks for the help though you guys are cool.  Smiley

*Have now made old version work.
11  Discussions / General Discussions / Re: How do i compile a multi source application? on: 2006-03-26 10:26:52
Thanks for the help  Smiley,
ive now read through it but its generating a class file of 0 bytes im following this;

Example - Two Arg Files
You can create two argument files -- one for the javac options and the other for the source filenames: (Notice the following lists have no line-continuation characters.)

Create a file named "options" containing:

     -d classes
     -g
     -sourcepath \java\pubs\ws\1.3\src\share\classes

Create a file named "classes" containing:

     MyClass1.java
     MyClass2.java
     MyClass3.java

You would then run javac with:

  C:> javac @options @classes

my files are options;
-d classes
-g
-sourcepath \SpaceInvaders\org\newdawn\spaceinvaders

and classes;
AlienEntity.java
SpriteStore.java
and the others.

both saved in spaceinvaders then i open command prompt go to batch file then change drive to spaceinvaders folder
and type c:> javac @options @classes
This generates a class file of 0 kb called javac.

What am i doing wrong ? Undecided

i also read this but dont understand whether i type this straight on the command line as i tried but didnt work;

Compiling Multiple Source Files

    This example compiles all the source files in the package greetings.

        C:> dir
        greetings\
        C:> dir greetings
        Aloha.java         GutenTag.java      Hello.java         Hi.java
        C:> javac greetings\*.java
        C:> dir greetings
        Aloha.class         GutenTag.class      Hello.class         Hi.class
        Aloha.java          GutenTag.java       Hello.java          Hi.java


i know the package is org.newdawn.spaceinvaders. Sorry for being usless ;p.
12  Discussions / General Discussions / How do i compile a multi source application? on: 2006-03-25 19:47:16
This may be a really stupid question but im trying to make space invaders, but im used to single source applets, this has many source files.

I try by changing drive to the folder then compiling the main source file , Game.java.

This says error cant find class SpriteStore, etc because they havent been created, and i cant create them as they are interdependent.

I read that javax.swing should automatically compile all defined classes also but this is not the case.

How would i generate all the class files?

Have looked around for ages so i thought i would ask, would really appreciate your help  Smiley
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (20 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (55 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (27 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (64 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!