Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ ActiveMQ5.11.1 and JDK version matching relation     - Ceph Source Analysis: Network Module (Server)

- Quickly build and install Linux KVM system (Linux)

- Linux user directory (Linux)

- XenServer Virtual Machine Installation --- first ISO image file storage expansion (Linux)

- The most simple drive to write and test procedures under linux (Programming)

- Linux kernel RCU (Read Copy Update) lock Brief (Linux)

- OpenDaylight Helium version installed (Linux)

- Use Redis as time-series database: why and how (Database)

- OpenGL shadow map (Programming)

- Upgrade to Node V4 seven reasons (Programming)

- B-tree - ideas and implementation of C language code (Programming)

- DRBD installation configuration, working principle and Recovery (Server)

- To install the latest version of the EPEL on CentOS 5.x or 6.x (Linux)

- Under Ubuntu on how to use iptables firewall (Linux)

- After installing minimize RHEL / CentOS 7 need to do some things (Linux)

- Oracle metadata Reconstruction experiments (Database)

- Graphing tool: Gnuplot (Linux)

- top command causes the system load increases (Linux)

- Linux system security knowledge (Linux)

- Several Ceph performance optimization of new methods and ideas (2015 SH Ceph Day after flu reference) (Server)

 
         
  ActiveMQ5.11.1 and JDK version matching relation
     
  Add Date : 2018-11-21      
         
         
         
  Environment: MyEclipse2015 + ActiveMQ5.11.1

Use different versions of the JDK, there will be a different performance when executing Java application.

1, JDK version jdk1.5 / J2SE-1.5

error:

java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass (URLClassLoader.java:260)
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)
Exception in thread "main"

2, JDK version: JavaSE-1.6

error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org / apache / activemq / ActiveMQConnectionFactory: 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)
at org.com.activemq1.Receiver.main (Receiver.java:25)

3, JDK version: JavaSE-1.7

No error.

4, JDK version Jdk-1.4

session = connection.createSession (Boolean.FALSE,
                    Session.AUTO_ACKNOWLEDGE);

An error occurred in the method createSession:

The method createSession (boolean, int) in the type Connection is not applicable for the arguments (Boolean, int)

Final conclusion: ActiveMQ5.11.1 version to use must be in JDK1.7 above.
     
         
         
         
  More:      
 
- Linux operating system Study Notes (Linux)
- To install Ganglia (Linux)
- Java annotations entry automatically generates SQL statements (Programming)
- Debian installation (Linux)
- A custom implementation of the Android sidebar (Programming)
- Variables Python variables (Programming)
- Ubuntu install video playback software SMPlayer 14.9.0.7042 (Linux)
- After installing minimize RHEL / CentOS 7 we need to do (Linux)
- Big Data Common Glossary (Linux)
- Recovery from MySQL master data consistency summary (Database)
- MongoDB uses aggregate, group, match mysql achieve in having (count (1)> 1) features (Database)
- VPS xen openvz kvm (Server)
- Linux Detailed instructions alias settings (Linux)
- Let the terminal under Mac OS X as like Linux has displayed a variety of colors (Linux)
- iptables allow only specific ip address to access the specified port (Linux)
- cp: omitting directory error solutions under Linux (Linux)
- Linux Getting Started tutorial: Experience Xen Virtual Machine chapter (Linux)
- Zabbix monitors Nginx status (Server)
- Oracle Shared Server Configuration (Database)
- Oriented C ++ test-driven development (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.