java.lang.UnsupportedClassVersionError: Bad version number in .class file
Hi Everybody.
I have installed a software and ever thing was OK and the installation completed. I also defined the PATH to the software on my "bashrc". But when I types "reflex" insted of running the program it gives the following error. I would be very grateful if someone could help me in this matter. With best regards, Hassan pc@ubuntu:~$ reflex [null] Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file [null] at java.lang.ClassLoader.defineClass1(Native Method) [null] at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [null] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [null] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) [null] at java.net.URLClassLoader.access$100(URLClassLoader.java:56) [null] at java.net.URLClassLoader$1.run(URLClassLoader.java:195) [null] at java.security.AccessController.doPrivileged(Native Method) [null] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [null] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [null] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [null] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [null] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread "main" Java returned: 1 at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:105) at org.kepler.build.runner.Kepler.main(Kepler.java:78) Caused by: Java returned: 1 at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.kepler.build.Run.runSuite(Run.java:298) at org.kepler.build.Run.run(Run.java:202) at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:101) ... 1 more --- Nested Exception --- Java returned: 1 at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.kepler.build.Run.runSuite(Run.java:298) at org.kepler.build.Run.run(Run.java:202) at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:101) at org.kepler.build.runner.Kepler.main(Kepler.java:78) pc@ubuntu:~$ |
Quote:
Which program is this about ? And which Linux OS are you using ? Like Fedora 14, CentOS 5.5, etc. etc. When answered, then somebody may have a chance to solve your issues. Please read : http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html .. |
Hi knudfl,
Thanks for replying to my post. I am using Ubuntu 9.10. and I have installed "reflex" which is an astronomical software. Its source is from here: "http://www.eso.org/sci/software/reflex/" Thanks. |
What version of java do you run, is it up to date? Try "java -v" and compare it to the current version. HTH.
|
http://www.eso.org/sci/software/reflex
>> wget ftp://ftp.eso.org/pub/dfs/reflex/install_uves_reflex > 'install_uves_reflex' ( script, to download and install reflex.) Running 'reflex' the way you try : Probably not possible ? ( reflex must be executed from Reflex/software/bin to find its data files, etc.) I can run it in three ways : 1) The full path, /home/knudfl/Reflex/software/bin/reflex 2) cd /home/knudfl/Reflex/software/bin/ && ./reflex 2a) You can also make a "start-reflex" script with that command, and copy it to /usr/local/bin/ . 3) cd /usr/local/bin/ && ln -s /home/knudfl/Reflex/software/bin/reflex ..... And then you have 'reflex' in your path. . |
Hi knudfl,
Thanks. I did what you suggested and it work. Thanks a lot for your helpful comments. Best regards, Hassan |
All times are GMT -5. The time now is 08:17 AM. |