Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (116)
games submitted by our members
Games in WIP (563)
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 1143 times)
0 Members and 1 Guest are viewing this topic.
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Posted 2003-05-22 13: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 15: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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #2 - Posted 2003-05-22 17: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!
Legends of Yore - The Casual Retro Roguelike
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Reply #3 - Posted 2003-05-22 17: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.

 

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

The first screenshot will be displayed as a thumbnail.

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

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

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

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

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

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

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

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

TehJavaDev (102 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56
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!