Bug 255168 - devel/jetbrains-phpstorm: 2021.1 requires a different JRE version
Summary: devel/jetbrains-phpstorm: 2021.1 requires a different JRE version
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-18 07:49 UTC by Pol Dellaiera
Modified: 2021-04-19 06:01 UTC (History)
2 users (show)

See Also:
lwhsu: maintainer-feedback? (dmitry.wagin)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pol Dellaiera 2021-04-18 07:49:34 UTC
Hi,

I'm using Freebsd 13-Release.

When running: phpstorm, I get this:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/idea/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

I guess that the openjdk needs an update.

I also tried to install openjdk16 but I still get the same issue.
Comment 1 Dmitry Wagin 2021-04-18 19:40:15 UTC
(In reply to Pol Dellaiera from comment #0)

Hello Pol,

phpstorm doesn't start at all?

I am test on FreeBSD stable/13-236d1f8c1
openjdk14-14.0.2+12.1_2 and openjdk11-11.0.10+9.1_1.

Everything is fine.

Perhaps the problem is with installed plugins or a broken configuration.

Try with a clean configuration.
Comment 2 Pol Dellaiera 2021-04-18 21:20:48 UTC
(In reply to Dmitry Wagin from comment #1)

Hi!

I tested with a clean config, still the same.

I will do further test tomorrow and provide some feedback.
Comment 3 Pol Dellaiera 2021-04-19 06:01:13 UTC
(In reply to Dmitry Wagin from comment #1)

Dear Dmitry,

I removed Phpstorm, openjdk, openjdk-jre and reinstalled phpstorm... it works now!

Sorry for the noise about this, ticket can be closed.