ObjectAid issue with version - eclipse

Eclipse Kepler Environment:
JDK Compliance 1.6
Installed JREs: jre1.6
System Environment:
Java 1.6
I am using all the versions which should be suitable for ObjectAid, but I am still getting below error.
Error:
The selected wizard could not be started.
Plug-in com.objectaid.uml.cls was unable to load class com.objectaid.uml.cls.editor.NewClassDiagramWizard.
com/objectaid/uml/cls/editor/NewClassDiagramWizard : Unsupported major.minor version 52.0
Can anybody help on this please?
Thanks!

The error indicates you have installed ObjectAid 1.2 which requires JDK 8.
ObjectAid 1.1 still runs on JDK 6.

Related

Will rascal supports MAC M1 - Monterey OS?

I have java 8.
I have installed the eclipse latest version as this supports ARM64 chip - https://www.eclipse.org/downloads/packages/release/2021-12/r/eclipse-ide-cc-developers
And when i try to add rascal - https://update.rascal-mpl.org/stable/
Eclipse throws an error -
Cannot complete the install because one or more required items could not be found.
Software being installed: The Rascal MetaProgramming Language 0.18.3 (rascal-feature.feature.group 0.18.3)
Missing requirement: rascal_eclipse 0.18.3 (rascal_eclipse 0.18.3) requires 'osgi.bundle; org.eclipse.core.runtime [0.0.0,3.19.0)' but it could not be found
Cannot satisfy dependency:
From: The Rascal MetaProgramming Language 0.18.3 (rascal-feature.feature.group 0.18.3)
To: org.eclipse.equinox.p2.iu; rascal_eclipse [0.18.3,0.18.3]
Can someone guide me to resolve this error?
Is this due to the installation of latest version of Eclipse?
The key part of the error is
requires 'osgi.bundle; org.eclipse.core.runtime [0.0.0,3.19.0)'
This is saying the org.eclipse.core.runtime plug-in is required with a version less than 3.19.0.
The last version of Eclipse with that plug-in at a suitable version was Eclipse 4.16 (2020-06). So it isn't go to install on the ARM64 release. The Rascal plug-ins would have to be updated to run on anything newer.
Eclipse 2020-06 was the last Eclipse that only required Java 8 to run, possibly that is something to do with this.

NetBeans 10 External Execution Base API issue

I have Apache NetBeans IDE 10. When I try to install the nbscala plugins for Scala, I get an issue:
Some plugins require plugin External Execution Base API to be installed
How do I fix the issue?
The solutions for NetBeans 8.2 don't work.
Product Version: Apache NetBeans IDE 10.0 (Build incubator-netbeans-release-380-on-20181217)
nbscala plugin version: 20190313-b8a704f058cc

Error when open eclipse - MAC

I have installed eclipse on my iMac and when I try to open it, it gives me this error:
Failed to find a Main Class in
"/Applications/Eclipse.app/Contents/MacOS//../Eclipse/ plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar".
On my MacBook Pro, everything works fine, but I have done nothing different.
I have checked other posts, but most of them refer to a windows OS. There was an answer which said that it can just open when everything is in an English folder and this is true for me!
Thanking you in advance!
I came across this error after installing Eclipse PDT.
Open your terminal and run the version command: java -version.
If your java version is below 1.8, you will have to update your Java
Runtime Environment to at least 1.8.0 by installing an updated JDK
here.
Then re-run the java version command and your version
should be updated.
You should now be able to install and run
Eclipse.
I have the same issue, but on my MacBookPro. I first installed eclipse Photon, which when starting up prompted me to install Java 6, which I did from https://support.apple.com/kb/DL1572?locale=en_US
Then I also installed the latest JRE (jre-8u171-macosx-x64 as of yesterday). When running eclipse again I started getting this error. Then I tried to run from the command line, and got this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/equinox/launcher/Main : Unsupported major.minor version 51.0
When googling that, the answers said that the reason for that is that the Oracle installer does not update the symlink in /usr/bin, which seemed to be confirmed by the fact that running java -version returned this:
java -version
java version "1.6.0_65"
The solutions I found for that were not feasible in MacOS starting in version El Capitan, and I am on High Sierra, so I followed the instructions in this post to fix that, and it worked, now I get:
java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
After all of this, however, I get the same "Failed to find a Main Class" error on the dialog as reported initially here, and the same "UnsupportedClassVersionError" on the CLI that I had when the system was still on java 6, so now I am still stuck and out of ideas.
EDIT: FIXED IT!!
I kept thinking that the problem was the java version, it was somehow still using java 6 (which I had installed due to the initial prompt).
So I followed the instructions here to remove what I had installed for the alleged java 6 issue. Then I found this post in the eclipse forums, which stated at the end (comment added by Eric Rizzo on Tue, 14 February 2017 21:56) that this is not an Eclipse message, but rather an OS message, and that one should NOT do that as apple messed things up with that patch. And then it goes to explain that one should install java 8 JDK (NOT just the JRE as I had done). Once I removed Java 6 and installed the full java 8 JDK, it ran fine :)
You can edit the eclipse.ini with your vm configuration in the beginning of the file
-vm
/yourJvmPath/jdk-12.0.1.jdk/bin/java
cat /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini
-vm
/Users/SomeUser/jdk-12.0.1.jdk/bin/java
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.400.v20190515-0925.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1000.v20190125-2016
PD. It works with ApacheDirectoryStudio for MAC
This one works for me with MAC OS Mojave.
You can download the Java SE Development Kit 8u221 for mac from the below link.
jdk-8u221-macosx-x64.dmg
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Liquibase Unsupported major.minor version 51.0

I am attempting to set up Liquibase 3.6.1 on a solaris VM.
My JRE is 1.6.0_151-b10.
My Liquibase.properties file is configured as follows:
driver:oracle.jdbc.OracleDriver
classpath:/export/home/oracle/Liquibase/lib/OJDBC-Full/ojdbc6.jar
url:jdbc:oracle:thin:#db:port/instance
username:uname
password:pword
When calling "./Liquibase --version" (for example), I get an error.
Exception in thread "main" java.lang.UnsupportedClassVersionError: Liquibase/integration/commandline/Main : Unsupported major.minor version 51.0
I have looked around for another post relating to a similar issue with java version/Liquibase issue. The closest I have found was relating to the "api" not being compatible with the version of java installed (version or release or update).
I apologize for the noob quality post, and I hope you folk can help.
Liquibase 3.6.1 requires minimally java 1.7.
You can find more about java versions here

Maven 3.2.5 doesn't work with JDK6

I have an issue and after many attempts don't know how to resolve it.
I have Java/Maven project with JDK 6 and installed Maven 3.2.5 in Eclipse Luna
Now I'm trying to run clean install command to create ZIP package but getting the following error message:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ABC: Fatal error compiling: invalid target release: 1.7
Does someone has this issue before and how do you resolve it.?
Could you help me please?
Thanks in advance.
The project you are attempting to compile specifies that the generated bytecode should be for Java 1.7. To do that you have to have a JDK7 or later.
Either change the project to specify 1.6, or upgrade your Java to 1.7. (There is really no reason to still stay on Java 1.6, it is old and obsolete now.)