Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
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  
  Eclipse / LWJGL / SPGL and CVS  (Read 4594 times)
0 Members and 1 Guest are viewing this topic.
Offline brianj774

Senior Newbie




Java games rock!


« Posted 2003-02-21 20:59:12 »

I guess this is mostly for Cas, though anyone really could answer.

As earlier noted, I have Eclipse and the LWJGL examples up and running.  I then thought I'd take a look at the SPGL, which I plan (at this point) to use for something in the distant future, so I'm not too concerned with its rate of change, I just want to learn.

I'm not a newbie coder, but my experience is heavy in 4D (I'd be almost shocked if any of you've even heard of it, even though its not THAT uncommon).  I am not terribly familiar with java and cvs and all that, hence the reason for my questions.

I've connected my eclipse to the sourceforge repositories, and set things up so that it actually downloads stuff.  After doing this with LWJGL, I get the following errors:

* The project was not built due to classpath errors (incomplete or involved in cycle).
* Unable to read LWJGL/.classpath file.

I'm sure this error is easy enough to fix, but I'm wondering if its a sign of a greater problem, that I've configured my CVS wrong or done something else wrong, and that my entire source tree is faulty somehow.

After that, I did the same with SPGL, and got this error, which is self-explanatory.

* The project was not built since it depends on LWJGL, which has classpath problems.

Thanks,

Brian
Offline brianj774

Senior Newbie




Java games rock!


« Reply #1 - Posted 2003-02-21 22:43:42 »

Ok,

I've figured out one more part of what I'm missing.  I saw the build.xml file, and I remembered something about ant.  I right clicked the xml file, and is said 'run ant...' so I went with it, with all the default options...and end up with this...

      [lwjgl] BUILD FAILED: file:C:/WORK/eclipse/workspace/LWJGL/build.xml:62: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

guess the defaults weren't good enough...I'll keep working at it, and post what I find here (maybe posterity will find it useful, if nothing else), but if someone already knows whats missing and wants to spare me the time...well I'd be personally very grateful.

Brian
Offline brianj774

Senior Newbie




Java games rock!


« Reply #2 - Posted 2003-02-21 23:52:15 »

Well, getting further along.

I played around with my environment, and actually got myself a JAVA_HOME set up in the first place, and then things started moving along pretty well...but it still errors out...

compile:
      [lwjgl] Compiling 4 source files to C:\WORK\eclipse\workspace\LWJGL\bin
      [input] Compiling 3 source files to C:\WORK\eclipse\workspace\LWJGL\bin
     [openal] Compiling 15 source files to C:\WORK\eclipse\workspace\LWJGL\bin
     [opengl] Compiling 88 source files to C:\WORK\eclipse\workspace\LWJGL\bin
       [test] Compiling 16 source files to C:\WORK\eclipse\workspace\LWJGL\bin
     [vector] Compiling 8 source files to C:\WORK\eclipse\workspace\LWJGL\bin
   [examples] Compiling 16 source files to C:\WORK\eclipse\workspace\LWJGL\bin
   [examples] C:\WORK\eclipse\workspace\LWJGL\examples\BaseWindow.java:124: create(org.lwjgl.DisplayMode,boolean) in org.lwjgl.Display cannot be applied to (org.lwjgl.DisplayMode,boolean,java.lang.String)
   [examples]             Display.create(modes[mode], fullscreenflag, "LWJGL Example");
   [examples]                    ^
   [examples] 1 error
   [examples] BUILD FAILED: file:C:/WORK/eclipse/workspace/LWJGL/build.xml:68: Compile failed; see the compiler error output for details.

I'm not sure about this one, I think this may be bigger than I can handle at this time, perhaps one of you can advise?

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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #3 - Posted 2003-02-21 23:59:06 »

Quote
BaseWindow.java:124: create(org.lwjgl.DisplayMode,boolean) in org.lwjgl.Display cannot be applied to (org.lwjgl.DisplayMode,boolean,java.lang.String)
   [examples]   Display.create(modes[mode], fullscreenflag, "LWJGL Example");


This is a library version mismatch - you're using some parts (examples) from cvs while the Display class is an older version.

You need to make sure that lwjgl is either completely .4 or all from CVS.

Offline brianj774

Senior Newbie




Java games rock!


« Reply #4 - Posted 2003-02-23 13:48:19 »

Ok, I deleted my lwgjl.jar file from my java_home\jre\lib\ext\ folder, (I think thats it) and then the compile seemed to start up well, but now it breaks on OpenAL.dll stuff...not knowing where the file is or something...I'll keep playing with it..I'm definately getting somewhere

Brian
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #5 - Posted 2003-02-23 21:43:45 »

The DLLs included with LWJGL need to be present on your JVM's library path - try setting the "java.library.path" property to wherever they reside.

Hellomynameis Charlie Dobbie.
Offline princec

JGO Kernel


Medals: 380
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #6 - Posted 2003-02-24 09:50:19 »

Just install OpenAL into windows\system32.


Cas Smiley

Offline brianj774

Senior Newbie




Java games rock!


« Reply #7 - Posted 2003-02-24 11:49:54 »

Ok...I'll try that.  

I have the three dll's in my java_home/jre/bin/

folder, but I guess thats not good enough?
Offline princec

JGO Kernel


Medals: 380
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2003-02-24 14:35:32 »

I've never stuck the LWJGL dll anywhere except where it actually gets built to by VC6 - so in all my eclipse run configs there's a -Djava.library.path explicitly pointing to it. Works for me.

Cas Smiley

Offline brianj774

Senior Newbie




Java games rock!


« Reply #9 - Posted 2003-02-24 20:37:44 »

Well now, I'm making great and dandy progress...placing the above mentioned dll's into the system folder certain did the trick.  The next one I am at a complete loss for though...I don't really see WHY I need the *.so files for anything in my LIB folder...hrm..output as follows...also, how close am I to getting there?  Pretty close, since I'm building the distribution, would be my guess...

I'll keep chipping away over here...Thanks to all who read my pathetic little post(esp. those who reply !)


Buildfile: C:\WORK\eclipse\workspace\LWJGL\build.xml

splash:

all:

clean:
[cleaning temp folder] Deleting directory C:\WORK\eclipse\workspace\LWJGL\temp
[cleaning dist folder] Deleting directory C:\WORK\eclipse\workspace\LWJGL\dist
[cleaning javadoc folder] Deleting directory C:\WORK\eclipse\workspace\LWJGL\doc\javadoc
[cleaning bin folder] Deleting directory C:\WORK\eclipse\workspace\LWJGL\bin\org
[cleaning bin folder] Deleting 32 files from C:\WORK\eclipse\workspace\LWJGL\bin

initialize:
[initialiazing dist folder] Created dir: C:\WORK\eclipse\workspace\LWJGL\dist
[initialiazing docs folder] Created dir: C:\WORK\eclipse\workspace\LWJGL\doc\javadoc
[initialiazing temp folder] Created dir: C:\WORK\eclipse\workspace\LWJGL\temp

compile:
      [lwjgl] Compiling 4 source files to C:\WORK\eclipse\workspace\LWJGL\bin
      [input] Compiling 3 source files to C:\WORK\eclipse\workspace\LWJGL\bin
     [openal] Compiling 15 source files to C:\WORK\eclipse\workspace\LWJGL\bin
     [opengl] Compiling 88 source files to C:\WORK\eclipse\workspace\LWJGL\bin
       [test] Compiling 16 source files to C:\WORK\eclipse\workspace\LWJGL\bin
     [vector] Compiling 6 source files to C:\WORK\eclipse\workspace\LWJGL\bin
   [examples] Compiling 16 source files to C:\WORK\eclipse\workspace\LWJGL\bin

initialize:

compile:

package:
  [lwjgl.jar] Building jar: C:\WORK\eclipse\workspace\LWJGL\lib\lwjgl.jar
[lwjgl_test.jar] Building jar: C:\WORK\eclipse\workspace\LWJGL\lib\lwjgl_test.jar
[examples.jar] Building jar: C:\WORK\eclipse\workspace\LWJGL\lib\examples.jar

distribution_application:
       [fail] BUILD FAILED: file:C:/WORK/eclipse/workspace/LWJGL/build.xml:181: Missing libopenal.so in lib directory
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #10 - Posted 2003-02-25 03:11:42 »

Quote
I don't really see WHY I need the *.so files for anything in my LIB folder

Quote
distribution_application:
  [fail] BUILD FAILED: file:C:/WORK/eclipse/workspace/LWJGL/build.xml:181: Missing libopenal.so in lib directory


You shouldn't be running the distribution_application target - it is a target we use when we are creating a distribution (which requires all the dll's and so's for all platforms).

All of the targets that fiddle with dll's are sort of flaky - they generally work, but mostly only on windows :/

We're working on all this, but we really need to run whatever targets that are required to build the native dll too - this is easy to do in linux since it has a buildfile, but windows version is still being build using Visual Studio.
We will some day fix this with a makefile for windows too, but since none of the windows devs has any experience with this, don't hold your breath.

Offline brianj774

Senior Newbie




Java games rock!


« Reply #11 - Posted 2003-02-25 13:16:34 »

Ahh, so the default ant configuration WONT work afterall?  Ok, that makes some sense to me.  

What targets need to be made in order for me to begin working on building SPGL? (see top post)
Offline princec

JGO Kernel


Medals: 380
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #12 - Posted 2003-02-25 13:46:15 »

I have absolutely no idea Smiley Every time I try to figure out Ant it does something unexpected.

Cas Smiley

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #13 - Posted 2003-02-25 15:15:39 »

Quote
Ahh, so the default ant configuration WONT work afterall?  Ok, that makes some sense to me.

the default ant configuration works fine for compilation and javadoc - it is the distribution targets that only work when all requirements are fullfillled.


Quote
What targets need to be made in order for me to begin working on building SPGL? (see top post)

SPGL is another project, and does so far not have any ANT files. Cas has yet to see the light regarding ANT  Tongue

Offline brianj774

Senior Newbie




Java games rock!


« Reply #14 - Posted 2003-02-26 00:03:28 »

Alright Cas,

What needs to be done to SPGL to get it to build?  Presently I get an error from it ...

1  
The project was not built since it depends on LWJGL, which has classpath problems.


I know that LWJGL works for me, and I gather from your comments about ANT that you don't build it yourself, so something must be needed.  I've included the lwjgl.jar file as an external jar library, but it didn't help...what can I do to get this to work?

I want to use it as a basis for my REAL project (which I'll announce after I finish a couple of these smaller games, like the asteroids clone I'm doing now...)

Thanks!!

Brian
Offline princec

JGO Kernel


Medals: 380
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #15 - Posted 2003-02-26 07:45:09 »

Ah, the foibles of Eclipse. Right click on SPGL -> Properties, get the Java Build Path up and you'll notice it's probably referring to your CVS checkout of LWJGL, which I assume is still buggered. You'll have to add the lwjgl.jar as a library to it instead... except SPGL is currently based on LWJGL 0.5 and won't work Smiley

I think you should try to get LWJGL compiling from the CVS code. You have, in LWJGL, added a Source Folder called src\java, yes? That's where your Java source code should be.

Cas Smiley

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.

Grunnt (21 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (34 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (108 views)
2014-09-10 06:39:09
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!