Starting off

Hey, ive just recently started looking into making a java game, i want to start simple and build up to making something bigger.. ive been looking all over the site but cant find anything helpfull about what you need to start making java games, please could someone tell me the link to what software i need to create a java game, im sorry if this seems to be a very stupid question but to be honest the site is too complicated, thankyou.

[443 byte] By [adambeeversa] at [2007-11-26 19:26:41]
# 1

> ...

> please could someone tell me the link to what software i need to

> create a java game,

> ...

You will never be able to create a game if you don't know the basics.

Read these basic tutorials:

1 - http://java.sun.com/docs/books/tutorial/getStarted/index.html (also handles installing the necessary software)

2 - http://java.sun.com/docs/books/tutorial/java/index.html

prometheuzza at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 2
You should learn Swing if you want to make a game. A game that would be very easy to make is something like Pong.
CaptainMorgan08a at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 3
Swing? And that is...?
adambeeversa at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 4
> Swing? And that is...? http://www.google.com/search?hl=en&safe=off&q=java+swing&btnG=Search
prometheuzza at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 5
> Swing? And that is...?Another thing you're going to have to be able to do is search for your answers rather than post them here.
CaptainMorgan08a at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 6
Yeh but google doesnt always come up with the correct answer.. so i woudnt know if it was correct or wrong.. but yes, i will in the future..
adambeeversa at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 7

Well ive now come across a problem with that java tutorial.. on this page

http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

it says:

Now you are ready to compile. At the prompt, type the following command and press Enter.

javac HelloWorldApp.java

that doesnt work.. then i clicked on Common Problems (and Their Solutions).

done what it said on there and it still doesnt work.. any idea's why? also when i put

C:\ect...

do i have to put

cd C:\ect...

thanks, at least i tried doing it my self!

adambeeversa at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 8

> Well ive now come across a problem with that java

> tutorial.. on this page

> http://java.sun.com/docs/books/tutorial/getStarted/cup

> ojava/win32.html

> it says:

> Now you are ready to compile. At the prompt, type the

> following command and press Enter.

>

> javac HelloWorldApp.java

>

> that doesnt work.. then i clicked on Common Problems

> (and Their Solutions).

> done what it said on there and it still doesnt work..

> any idea's why? also when i put

> C:\ect...

> do i have to put

> cd C:\ect...

> thanks, at least i tried doing it my self!

You have to be more specific.

What doesn't work?

What have you tried exactly?

What error messages are displayed?

prometheuzza at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 9
Google on how to compile through the command line.
CaptainMorgan08a at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 10
what doesnt work is:javac HelloWorldAppIve tried putting the source code for the javac file (C:\Program Files\Java\jdk1.6.0\bin\javac.exe)What should i do, i'll search compile thign that the guy above said.. thanks..
adambeeversa at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 11
You need to do:javac HelloWorldApp.java
CaptainMorgan08a at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 12
Ive already donejavac HelloWorldApp.javaThat is what it said to do in the tutoirial.. that isnt working..
adambeeversa at 2007-7-9 21:52:16 > top of Java-index,Other Topics,Java Game Development...
# 13
> Ive already done> javac HelloWorldApp.java> > That is what it said to do in the tutoirial.. that> isnt working..Again: - what do you mean "it isn't working"?- what error messages do you get?
prometheuzza at 2007-7-9 21:52:17 > top of Java-index,Other Topics,Java Game Development...
# 14

The error is:

'javac' is not recognized as an internal or external command, operable program or batch file

and in the tutoirial section "Lesson: Common Problems (and Their Solutions)"

it says:

Common Error Messages on Microsoft Windows Systems

'javac' is not recognized as an internal or external command, operable program or batch file

If you receive this error, Windows cannot find the compiler (javac).

Here's one way to tell Windows where to find javac. Suppose you installed the JDK in C:\jdk6. At the prompt you would type the following command and press Enter:

C:\jdk6\bin\javac HelloWorldApp.java

Ive done this and it doesnt work. So both ways (writing javac or the place where the java file is found) dont work.

adambeeversa at 2007-7-9 21:52:17 > top of Java-index,Other Topics,Java Game Development...
# 15
Then javac.exe does not reside on the location: "C:\jdk6\bin\" on your PC.
prometheuzza at 2007-7-21 17:35:27 > top of Java-index,Other Topics,Java Game Development...
# 16
It is on mine.. where else would it be? If it isnt under "\bin\"?(By the way its in C:\Program Files\java\jdk1.6.0notC:\jdk1.6.0)
adambeeversa at 2007-7-21 17:35:27 > top of Java-index,Other Topics,Java Game Development...
# 17
> It is on mine.. where else would it be? If it isnt> under "\bin\"?I don't know where you installed it. It's your PC.I can't help you anymore.Good luck.
prometheuzza at 2007-7-21 17:35:28 > top of Java-index,Other Topics,Java Game Development...
# 18
That is where i installed it! If you dont know where i installed it why did you say that that isnt where the file is...?
adambeeversa at 2007-7-21 17:35:28 > top of Java-index,Other Topics,Java Game Development...
# 19

> That is where i installed it! If you dont know where

> i installed it why did you say that that isnt where

> the file is...?

Like I said, if you did this:C:\jdk6\bin\javac HelloWorldApp.javaand you get a "javac is not recognised" error message, then there is no javac.exe at that location and you must have installed it elsewhere. I dont know where you did.

The same for if you're typing inC:\Program Files\java\jdk1.6.0\bin\javac HelloWorldApp.javaand receiving that same error message: javac.exe simply isn't there.

I suggest brushing up your basic computer skills before taking up programming (let alone develop a compuer game).

prometheuzza at 2007-7-21 17:35:28 > top of Java-index,Other Topics,Java Game Development...
# 20

I see what you mean. And i know the basics of cumputers. Hence why im going a step forward and trying to learn java.

And the file is there, ive gone to that folder via "My computer" and i can see the file javac.exe.. so it is definetley there...

just so i know.

when you put in where the file is.. do i have to put

cd C:\ect ect

or can i put

C:\ ect ect

adambeeversa at 2007-7-21 17:35:28 > top of Java-index,Other Topics,Java Game Development...
# 21

In one of the first links I posted, the tutorial suggest updating the PATH variable. You apparently did not do that. http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#Environment

If you follow the "Getting Started" tutorial step by step and follow the suggestions in the "Common Problems (and Their Solutions)", you should be OK:

http://java.sun.com/docs/books/tutorial/getStarted/index.html

http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html

If not, then your basic computer skills really are something you should work on.

prometheuzza at 2007-7-21 17:35:28 > top of Java-index,Other Topics,Java Game Development...
# 22
Perhaps it's the space in Program Files that is messing things up. Try:"C:\Program Files\java\jdk1.6.0\bin\javac" HelloWorldApp.javaBut it's better to set your PATH variable properly as suggested in my previous reply.
prometheuzza at 2007-7-21 17:35:28 > top of Java-index,Other Topics,Java Game Development...