B4J Question Problem running jars in CentOS

roerGarcia

Member
Licensed User
to kill forgotten jars:
[robertor@metro usr]$ java -jar JarManager.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: [B]anywheresoftware/b4a/keywords/Common : Unsupported major.minor version 52.0[/B]
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
[robertor@metro usr]$
I want to run B4J apps in CentOs.
I try first with an application -mine- and get the same error shown. (same app works in windows 7)
Then, try the jarmanager found in the forum with the same error

The OS is CentOS, the B4J lsat version.

Where is the error, what is missing... ?

thanks in advance.

roer
 

oparra

Well-Known Member
Licensed User
centos 6 or 7

java -version ??

and

you java version B4J compile ??
 

roerGarcia

Member
Licensed User
java version "1.7.0_85"
OpenJDK Runtime Environment (rhel-2.6.1.3.el6_7-i386 u85-b01)
OpenJDK Server VM (build 24.85-b03, mixed mode)

[robertor@metro etc]$ more centos-release
CentOS release 6.7 (Final)

Tu hablas español. La aplicacion compila y corre en Windows. La transferi via ftp al CentOs solo para probar si funcionaba, en modo experimento-porque-no-tengo-mucho-que-hacer.

Deberia instalar el B4J en CentOS - alguien lo ha hecho ?

Saludos y gracias por contestar.
 
Last edited:

udg

Expert
Licensed User

oparra

Well-Known Member
Licensed User
sorry to the english forum

Post your question in spanish forum

Do you have VPS or Hosting?
 

roerGarcia

Member
Licensed User
It is a real, physical server I mean. It is within the company network.

But they already indicated (udg) to me that it is a question of the java versions.

Anyway, solving the problem I will report it here.
 
Top