Dlafata30 / transfer-on-lan

Automatically exported from code.google.com/p/transfer-on-lan
0 stars 0 forks source link

TransferOnLAN 0.5.1 error on Ubuntu 12.04 32bit #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. First thing I did was download the .tar.gz file, TransferOnLAN-0.5.1.tar.gz 
and extract to my /home folder
2. I make the TransferOnLAN.sh and TransferOnLAN.jar executable
3. Then I run the TransferOnLAN.sh by doing right click on it then Run on 
Terminal. A window just pop up and immediately close and nothing happens
4. I run the program to terminal and it shows like this

What is the expected output? What do you see instead?
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
transfer_on_lan/Main : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: transfer_on_lan.Main. Program will exit.

What version of the product are you using? On what operating system?
I used TransferOnLan 0.5.1 on Ubuntu 12.04.

Please provide any additional information below.

Original issue reported on code.google.com by jerson.t...@gmail.com on 13 Aug 2013 at 11:48

GoogleCodeExporter commented 9 years ago
I think you use a bad version of Java. You can verify in a terminal with this 
command : java -version .

You must install Java 7 since Transfer-on-LAN 0.5.

Original comment by arno.of....@gmail.com on 15 Aug 2013 at 1:44

GoogleCodeExporter commented 9 years ago
Sorry I was so busy to confirm this. Its just now I got the chance to recheck 
it. You are right about the version of java. I had two java on my system Java6 
and Java7.

To add on this, to those who have multiple java installed on you system, I try 
this on terminal

sudo update-alternatives --config java

It will show you a list of java version. Now you need to choose Java7 as you 
default java. And there you goes. Goodluck!

Thank you for this small piece of software that gives a BIG help. More Power!

Original comment by jerson.t...@gmail.com on 31 Aug 2013 at 12:53