Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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  
  joal.util.Version missing?  (Read 3130 times)
0 Members and 1 Guest are viewing this topic.
Offline clevengr

Senior Newbie

Java games rock!

« Posted 2007-11-29 01:51:29 »

I just upgraded some apps from JOAL 1.1b03  (Sep '06) to 1.1.1 (July '07)  (I sort of skipped the final 1.1.0 release of Dec '06).   The upgrade broke a number of things.  Most of them I understand and have fixed; however, one has me puzzled.   In 1.1b03 (and earlier versions, I'm pretty sure), there was a class [size=11pt][/size], which I invoked with the statement

System.out.println ("JOAL Version = " + );

That class has mysteriously disappeared (as of 1.1.0, it appears) from [size=11pt][/size], and I can't find any replacement.  Am I just missing something in 1.1.1, or is there really no way to obtain the JOAL version number at runtime?

Thanks for any input.
Offline Ken Russell

JGO Coder

Java games rock!

« Reply #1 - Posted 2007-11-30 20:58:36 »

We removed this as it was an unnecessary hack. You can use the java.lang.Package class to fetch the same information. There is an example of how to do this in the context of JOGL in demos.misc.VersionInfo in the jogl-demos workspace. The example is trivially convertible to work with JOAL.
Offline clevengr

Senior Newbie

Java games rock!

« Reply #2 - Posted 2007-12-01 08:50:34 »

Thanks for the reply.  I'm embarassed to admit that I actually have the JOGL version of that code implemented in something I put together last Spring for a different class I'm teaching; I just forgot about it  Embarrassed

Now that I've got THAT solved  Wink, I have another somewhat weird question.  I installed JOAL 1.1.1 from under "Release Builds 2007, 1.1.1-July 4".  I then ran the following code that I got from a wonderful source  Wink

String packageName = "";
Package p = Package.getPackage(packageName);
if (p == null)
      System.out.println("\nJOAL package " + packageName + " not found\n");
     System.out.println("\nJOAL Version = " + p.getImplementationVersion());

This code prints the following output:

JOAL Version = 1.1.2

I verified that I really did install the 1.1.1 download; I even went back and re-downloaded it to be sure.  Also, I've never (to my knowledge) downloaded any of the nightly builds or anything except files from the "stable release" area.   Sooo... why is my 1.1.1 installation printing a version number of 1.1.2?   Am I missing something?

Thanks again for the feedback.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ken Russell

JGO Coder

Java games rock!

« Reply #3 - Posted 2007-12-02 02:45:34 »

Sorry, I must have messed up the version string in the manifest of that build. If it's a big concern I can re-release it.
Offline clevengr

Senior Newbie

Java games rock!

« Reply #4 - Posted 2007-12-04 01:33:42 »

It's not a big concern; it's a very small one -- once I understand it Smiley   It does pose minor issues in verifying the configuration status of the machines in our labs, but you probably have way more important things to do than fix something trivial like this;  we can work with it.

Thanks for the feedback.

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

Coldstream24 (19 views)
2015-09-03 00:41:28

Andrew_3ds (31 views)
2015-09-01 19:08:10

afikri (20 views)
2015-08-31 09:30:22

afikri (27 views)
2015-08-31 09:30:07

afikri (15 views)
2015-08-31 09:27:24

afikri (17 views)
2015-08-31 09:26:40

Roquen (32 views)
2015-08-29 11:30:54

GamerC4 (41 views)
2015-08-22 20:38:50

GamerC4 (37 views)
2015-08-22 20:37:18

GamerC4 (43 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 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‑
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!