Fei,

I fixed the issue. Please run sudo apt-get update sudo apt-get clean flowvisor 
and reinstall flowvisor. 

Let me know if you have any problems. 


Cheers.

--
Ali

On Aug 3, 2012, at 1:00 AM, Ali Al-Shabibi <[email protected]> wrote:

> Hi Fei,
> 
> I just realised that I had used to java 1.7 to make that build. My mistake, 
> sorry. I will fix it asap and let you know. 
> 
> 
> Cheers.
> 
> --
> Ali
> 
> On Aug 2, 2012, at 11:54 PM, Fei I Yeh <[email protected]> wrote:
> 
>> Dear Ali,
>> 
>> I just installed the Sun JDK u31 (latest version), but same error still 
>> comes up:
>> 
>> # java -version
>> java version "1.6.0_31"
>> Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
>> 
>> #  java $FV_JVM_ARGS $fv_defines $sslopts -cp $classpath 
>> org.flowvisor.FlowVisor
>> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
>> org/flowvisor/FlowVisor : Unsupported major.minor version 51.0
>>        at java.lang.ClassLoader.defineClass1(Native Method)
>>        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>        at 
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> Could not find the main class: org.flowvisor.FlowVisor.  Program will exit.
>> The arguments are as follows:
>> 
>> # echo $FV_JVM_ARGS
>> -server -Xms100M -Xmx2000M -XX:OnError=flowvisor-crash-logger 
>> -XX:+UseConcMarkSweepGC -Dorg.flowvisor.config_dir=/usr/etc/flowvisor 
>> -Dorg.flowvisor.install_dir=/usr/libexec/flowvisor 
>> -Dderby.system.home=/usr/share/db/flowvisor 
>> -Dfvlog.configuration=/usr/etc/flowvisor/fvlog.config
>> # echo $fv_defines
>> -Dorg.flowvisor.config_dir=/usr/etc/flowvisor 
>> -Dorg.flowvisor.install_dir=/usr/libexec/flowvisor 
>> -Dderby.system.home=/usr/share/db/flowvisor 
>> -Dfvlog.configuration=/usr/etc/flowvisor/fvlog.config
>> # echo $sslopts
>> -Djavax.net.ssl.keyStore=/usr/etc/flowvisor/mySSLKeyStore 
>> -Djavax.net.ssl.keyStorePassword=CHANGEME_PASSWD
>> # echo $classpath
>> /usr/libexec/flowvisor/openflow.jar:/usr/libexec/flowvisor/xmlrpc-client-3.1.3.jar:/usr/libexec/flowvisor/xmlrpc-common-3.1.3.jar:/usr/libexec/flowvisor/xmlrpc-server-3.1.3.jar:/usr/libexec/flowvisor/commons-logging-1.1.jar:/usr/libexec/flowvisor/ws-commons-util-1.0.2.jar:/usr/libexec/flowvisor/jsse.jar:/usr/libexec/flowvisor/asm-3.0.jar:/usr/libexec/flowvisor/cglib-2.2.jar:/usr/libexec/flowvisor/commons-codec-1.4.jar:/usr/libexec/flowvisor/commons-collections-3.2.1.jar:/usr/libexec/flowvisor/commons-dbcp-1.4.jar:/usr/libexec/flowvisor/commons-pool-1.5.6.jar:/usr/libexec/flowvisor/gson-2.0.jar:/usr/libexec/flowvisor/jetty-continuation-7.0.2.v20100331.jar:/usr/libexec/flowvisor/jetty-http-7.0.2.v20100331.jar:/usr/libexec/flowvisor/jetty-io-7.0.2.v20100331.jar:/usr/libexec/flowvisor/jetty-security-7.0.2.v20100331.jar:/usr/libexec/flowvisor/jetty-server-7.0.2.v20100331.jar:/usr/libexec/flowvisor/jetty-util-7.0.2.v20100331.jar:/usr/libexec/flowvisor/servlet-api-2.5.jar:/usr/libexec/flowvisor/derby.jar:/usr/libexec/flowvisor/derbytools.jar:/usr/libexec/flowvisor/jna.jar:/usr/libexec/flowvisor/syslog4j-0.9.46-bin.jar:/usr/libexec/flowvisor/log4j-1.2.16.jar:/usr/libexec/flowvisor/flowvisor.jar
>> From: Ali Al-Shabibi [[email protected]]
>> Sent: Thursday, August 02, 2012 4:03 PM
>> To: Fei I Yeh
>> Cc: [email protected]
>> Subject: Re: [openflow-discuss] FlowVisor 0.8.5 binary for x64 cannot start
>> 
>> Hi Fei, 
>> 
>> Please install the sun jdk and things should work fine. A major.minor error 
>> is usually due to incomparable byte code.
>> 
>> --
>> Ali Al-Shabibi (sent from handheld)
>> 
>> On 2 août 2012, at 22:36, Fei I Yeh <[email protected]> wrote:
>> 
>>> I just tried to subscribe to the FlowVisor list but mailman says no such 
>>> list so I'm posting the question here:
>>> 
>>> Following the instructions on
>>> https://openflow.stanford.edu/display/DOCS/Installation+Guide
>>> noting that it does not mention 64-bit, but went ahead since the release 
>>> notes for 0.8.5 says
>>> FlowVisor 0.8.5 has been released, it is available as a 32-bit deb and a 
>>> 64-bit deb
>>> The install seems to work just fine, but trying to start it gives me this:
>>> 
>>> # which flowvisor
>>> /usr/sbin/flowvisor
>>> # flowvisor
>>> Starting FlowVisor
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
>>> org/flowvisor/FlowVisor : 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: org.flowvisor.FlowVisor. Program will exit.
>>> The "Unsupported major.minor version" says I have an older JAVA, but I am 
>>> running with
>>> 
>>> # java -version
>>> java version "1.6.0_24"
>>> OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.10.04.1)
>>> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
>>> # uname -ar
>>> Linux foam1 2.6.32-41-generic #94-Ubuntu SMP Fri Jul 6 18:00:34 UTC 2012 
>>> x86_64 GNU/Linux
>>> 
>>> and this is inside a VM running Ubuntu 10.04 lucid
>>> 
>>> Please advise.
>>> 
>>> Fei Yeh
>>> Northwestern University
>>> _______________________________________________
>>> openflow-discuss mailing list
>>> [email protected]
>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
> 
> _______________________________________________
> openflow-discuss mailing list
> [email protected]
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

_______________________________________________
openflow-discuss mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to