Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (534)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Beginner] Where do I start?  (Read 2277 times)
0 Members and 1 Guest are viewing this topic.
Offline RXBMan

Innocent Bystander




Java games rock!


« Posted 2003-08-09 13:13:34 »

Hi,

I wanted to start with a simple JAVA JOGL application, but I'm a bit confused about the site and CVS system.

Can somebody tell me something about the setup that I need to take to get a basic example running (since every way I try I get an error like jar file not found or no main class def found, etc..)

What is a good example to start with and which JAVA compiler and setting s should i use?

Thanks very much...

Mike
Offline Java Cool Dude

Senior Member




Java forever


« Reply #1 - Posted 2003-08-09 16:04:07 »

Psssssst over here Smiley
/me thinks that we should have a sticky thread explaining the basics of getting JOGL to work on one's machine Tongue
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #2 - Posted 2003-08-09 16:12:24 »

Or you could look at the gears demo thats provided with the distribution... more than likely, if JOGL needs a how to get it to work section it should be on the WIKI.

You don't need to actually access the CVS system if you just want to use JOGL. Just jump into the file sharing system and grab the latest binary for your platform..

As, as mentioned above, the gears demo is fairly simple and comes with source. It should give you a good place to get started..

Kev

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline dirkman

Junior Newbie




Have-a-cuppa!


« Reply #3 - Posted 2003-08-13 06:50:01 »

"just jump in..."

Well , for one if you want to get the demos and the needed makefiles.  I've tried this by hand (under WinXP/CYGWIN) and find that making GLEEM is an issue.  I'd like to experiment w/ it as well.  Also while Gears and some other bits work OK I still get errors that the net.java.games.jogl.util package is not  install even though doing a dump of the jogl.jar show that it is.  You'd think that a:

 -classpath "$CLASSPATH;jogl.jar"

should do the trick

thanx in advance for any help
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2003-08-13 06:59:31 »

You don't actually need to use the C/C++ source at all. Skip the make files and just download the binaries that are made available in the file sharing directory. This is of course if you're working on a standard platform (windows/linux/solaris/mac)

You need the appropriate native libraries in the currently directory (or at least referenced in the java.library.path= system property).

Kev

Offline dirkman

Junior Newbie




Have-a-cuppa!


« Reply #5 - Posted 2003-08-13 07:05:21 »

Oh I do not want the C/C++ source I just want the JAVA source for the demos and the appropriate makefiles for them,  I already did the right-mouse downloads from the filesharing webpages and the rebuilt the source tree.  Unfortunately I am having issues building the demos.  I'm just trying to see if I can build local versions before I start on my own code.  I have found this to be a wise course of action as it seperates out some of the local installation issues.
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2003-08-13 07:12:34 »

Ahhhh, misundertood what you were getting out with the makefiles.. isn't it all built with ANT?

Anyway, if you cut and paste the actual error you're getting at compile time / runtime then someone might be able to spot whats going on..

Apologises again,

Kev

Offline dirkman

Junior Newbie




Have-a-cuppa!


« Reply #7 - Posted 2003-08-13 08:23:35 »

"if you cut and paste the actual error"

OK, I got GLEEM to compile, typo  =:<

now for demos/util

my compile call is:

 <jaba_bin_dir>/javac -source 1.4 -classpath "${CLASSPATH};c:\jogl;c;\jogl\jogl.jar" *.java

and the errors are:

ObjReader.java:46: package net.java.games.jogl.util does not exist
import net.java.games.jogl.util.*;
^
ObjReader.java:305: cannot resolve symbol
symbol  : variable BufferUtils
location: class demos.util.ObjReader
   vertices = BufferUtils.newFloatBuffer(newVertices.size());
              ^
ObjReader.java:307: cannot resolve symbol
symbol  : variable BufferUtils
location: class demos.util.ObjReader
   normals = BufferUtils.newFloatBuffer(newVertexNormals.size());
             ^
3 errors


I've used the compile line above for GLEEM and Gears.java and Gears runs fine although I am not sure if GLEEM will work with the infinite shadow demo I want see run.
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #8 - Posted 2003-08-13 08:32:39 »

Quote

<jaba_bin_dir>/javac -source 1.4 -classpath "${CLASSPATH};c:\jogl;c;\jogl\jogl.jar" *.java


Is this a direct cut and paste?

If so, c;\jogl\jogl.jar should c:\jogl\jogl.jar

Note the change from c; to c:

Kev

Offline dirkman

Junior Newbie




Have-a-cuppa!


« Reply #9 - Posted 2003-08-13 09:09:57 »

sorry, no not a direct cut-n-paste.
the ";" is in fact a ":"

bloody cygwin uses a Win32 cmd so one can not cut-n-paste text
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

pw (35 views)
2014-07-24 01:59:36

Riven (33 views)
2014-07-23 21:16:32

Riven (21 views)
2014-07-23 21:07:15

Riven (24 views)
2014-07-23 20:56:16

ctomni231 (55 views)
2014-07-18 06:55:21

Zero Volt (47 views)
2014-07-17 23:47:54

danieldean (38 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!