Re: New version of AO-27 Schedule Lister released!!!
I'm no Java whiz either (my son is the programmer, not me), but my best guess is that you need to update your Java Runtime version. The program was compiled on a computer with JRE 1.6.0, so you probably need that version. The Windows .exe has run fine on all 5 computers I've tested it on, and all are at JRE 1.6.0. The .jar ran fine on the Ubuntu 8.04 ("Hardy Heron") box I tested it on, but I did not check the Java version on that machine.
In Windows, you can check your JRE version clicking the Java icon in Control Panel, or by typing
java -version
on the command line.
73,
George, KA3HSW
----- Original Message ----- From: "Greg D." ko6th_greg@hotmail.com To: ka3hsw@att.net Sent: Thursday, April 30, 2009 12:18 AM Subject: RE: [amsat-bb] New version of AO-27 Schedule Lister released!!!
Hi George,
I'm kind of dense when it comes to Java applications, but I can't get either version to run. The Windows version pops up an error box saying "Could not find main class. Program will exit.", and the Linux (cross-platform) version says all this stuff, below. What am I doing wrong?
Thanks,
Greg KO6TH
greg@p3200:~/download/AO-27_Scheduler> java -jar AO-27Lister1.1.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass2(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:719) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160) at java.net.URLClassLoader.defineClass(URLClassLoader.java:254) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) greg@p3200:~/download/AO-27_Scheduler>
Greg,
I had the same problem, the main links are not working, use the first of the attachments at the bottom of that page (for Windows at least), that definitely works and gives you version 1.1
HTH
David KG4ZLB
George Henry wrote:
I'm no Java whiz either (my son is the programmer, not me), but my best guess is that you need to update your Java Runtime version. The program was compiled on a computer with JRE 1.6.0, so you probably need that version. The Windows .exe has run fine on all 5 computers I've tested it on, and all are at JRE 1.6.0. The .jar ran fine on the Ubuntu 8.04 ("Hardy Heron") box I tested it on, but I did not check the Java version on that machine.
In Windows, you can check your JRE version clicking the Java icon in Control Panel, or by typing
java -version
on the command line.
73,
George, KA3HSW
----- Original Message ----- From: "Greg D." ko6th_greg@hotmail.com To: ka3hsw@att.net Sent: Thursday, April 30, 2009 12:18 AM Subject: RE: [amsat-bb] New version of AO-27 Schedule Lister released!!!
Hi George,
I'm kind of dense when it comes to Java applications, but I can't get either version to run. The Windows version pops up an error box saying "Could not find main class. Program will exit.", and the Linux (cross-platform) version says all this stuff, below. What am I doing wrong?
Thanks,
Greg KO6TH
greg@p3200:~/download/AO-27_Scheduler> java -jar AO-27Lister1.1.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass2(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:719) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160) at java.net.URLClassLoader.defineClass(URLClassLoader.java:254) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) greg@p3200:~/download/AO-27_Scheduler>
Sent via AMSAT-BB@amsat.org. Opinions expressed are those of the author. Not an AMSAT-NA member? Join now to support the amateur satellite program! Subscription settings: http://amsat.org/mailman/listinfo/amsat-bb
Hi George,
Ah, I have Java 1.5.something. I tried it on another machine at work that has 1.6 and it works, so that was the problem. I expect my Windows system is even older (I hardly ever use it).
Some gentle feedback to your son... If he doesn't absolutely need to use something unique in the 1.6 version to make the program work, it would be a bit easier on his customers to not require the latest support library. My main computer is running out of space, and after upgrading Java I could no longer log in. Had to go in as root and uninstall it. The machine is in desperate need of being rebuilt, so I guess it's my fault, But regardless, his code will not run here until I do an awful lot of work.
Anyway, mystery solved.
Greg KO6TH
From: ka3hsw@att.net To: ko6th_greg@hotmail.com; amsat-bb@amsat.org Subject: Re: [amsat-bb] New version of AO-27 Schedule Lister released!!! Date: Thu, 30 Apr 2009 18:26:38 -0500
I'm no Java whiz either (my son is the programmer, not me), but my best guess is that you need to update your Java Runtime version. The program was compiled on a computer with JRE 1.6.0, so you probably need that version. The Windows .exe has run fine on all 5 computers I've tested it on, and all are at JRE 1.6.0. The .jar ran fine on the Ubuntu 8.04 ("Hardy Heron") box I tested it on, but I did not check the Java version on that machine.
In Windows, you can check your JRE version clicking the Java icon in Control Panel, or by typing
java -version
on the command line.
73,
George, KA3HSW
----- Original Message ----- From: "Greg D." ko6th_greg@hotmail.com To: ka3hsw@att.net Sent: Thursday, April 30, 2009 12:18 AM Subject: RE: [amsat-bb] New version of AO-27 Schedule Lister released!!!
Hi George,
I'm kind of dense when it comes to Java applications, but I can't get either version to run. The Windows version pops up an error box saying "Could not find main class. Program will exit.", and the Linux (cross-platform) version says all this stuff, below. What am I doing wrong?
Thanks,
Greg KO6TH
greg@p3200:~/download/AO-27_Scheduler> java -jar AO-27Lister1.1.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass2(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:719) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160) at java.net.URLClassLoader.defineClass(URLClassLoader.java:254) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) greg@p3200:~/download/AO-27_Scheduler>
_________________________________________________________________ Windows Live™ Hotmail®:…more than just e-mail. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_more_042009
participants (3)
-
David - KG4ZLB
-
George Henry
-
Greg D.