Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (306)
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  
  compile problem - prolly just a stupid mistake  (Read 986 times)
0 Members and 1 Guest are viewing this topic.
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Posted 2003-05-22 15:06:08 »

Okay . . . just wrote a quick little Base OpenGL class to derive all my other classes from.  I go to compile and the only error is . . .
1  
2  
3  
4  
5  
6  
7  
8  
 
   [javac] C:\NateDev\Artillery\src\com\rn\GLUser.java:12: cannot access org.lwjgl.DisplayMode
    [javac] bad class file: C:\NateDev\Artillery\lib\lwjgl.jar(org/lwjgl/DisplayMode.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac]   protected static DisplayMode mode;
    [javac]                    ^
    [javac] 1 error

The only time I've ever gotten this error before was when I the package name in one of my class files didn't match the directory I'd put it in.  Took forever to figure it out.  This . . . well, it's in the .jar, so that's not the problem and the .jar is definitely in the classpath, etc.

I managed to compile a class similar to this yesterday, so I'm positive this is just a ID-10-T error, but I'm wondering if anybody out there's willing to smack me upside the head and tell me what's wrong.

-Nate

-NateBob
 Brother Of Phil
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Reply #1 - Posted 2003-05-22 17:29:54 »

Well, figured it out myself.

Was using the 1.3.1 JRE.  Switched to 1.4.2 beta and it works just fine now.

Guess you guys built this with 1.4.x

Sorry to bother.

-Nate

-NateBob
 Brother Of Phil
Offline Matzon
« League of Dukes »

JGO Knight


Medals: 13
Projects: 2


I'm gonna wring your pants!


« Reply #2 - Posted 2003-05-22 19:15:41 »

yeah - how the hell did you compile in the first round Huh
We use the assert keyword, which implies that you NEED to pass -source 1.4 as a switch to javac !

Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Reply #3 - Posted 2003-05-22 19:31:08 »

Quote
yeah - how the hell did you compile in the first round


I'm using JDeveloper and currently I have 3 different JRE's on my box.  Last one I just dropped my class into an already built project and did it that way, but this time it's got its own project . . . which defaulted to 1.3.1.

Wasn't actually aware you could force compile to a particular JRE version.  That's kind o' kewl.

Anyway . . . is fixed for now . . . no more questions for a while.

-Nate

-NateBob
 Brother Of Phil
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (14 views)
2013-06-19 14:55:23

BrassApparatus (22 views)
2013-06-19 08:52:37

NegativeZero (25 views)
2013-06-19 03:31:52

NegativeZero (28 views)
2013-06-19 03:24:09

Jesse_Attard (32 views)
2013-06-18 22:03:02

HeroesGraveDev (68 views)
2013-06-15 23:35:23

Vermeer (67 views)
2013-06-14 20:08:06

davedes (69 views)
2013-06-14 16:03:55

alaslipknot (61 views)
2013-06-13 07:56:31

Roquen (86 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
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!