Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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 2940 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]net.java.games.joal.util.Version[/size], which I invoked with the statement

1  
System.out.println ("JOAL Version = " + net.java.games.joal.util.Version.getVersion() );


That class has mysteriously disappeared (as of 1.1.0, it appears) from [size=11pt]net.java.games.joal.util[/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  joal-1.1.1-windows-i586.zip under "Release Builds 2007, 1.1.1-July 4".  I then ran the following code that I got from a wonderful source  Wink

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
   
String packageName = "net.java.games.joal";
Package p = Package.getPackage(packageName);
if (p == null)
{
      System.out.println("\nJOAL package " + packageName + " not found\n");
}
else
{
     System.out.println("\nJOAL Version = " + p.getImplementationVersion());
}


This code prints the following output:

1  
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.

 

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

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (33 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (65 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!