Making StatET work with R 2.15.0 - eclipse

I seem to have an impedance mismatch between Eclipse, R, RJ and StatET.
I am using:
A vanilla Eclipse 3.7 classic (Indigo)
R 2.15.0
both on a Windows 7, 32 bit machine
and I want to use StatET.
In order to do this I installed:
RJ 1.0.3-7 (but for R 2.14.0)
RJ.gd 1.0.3-3 (but for R 2.14.0)
StatET 2.0
StatET does not seem to have an RJ release for R-2.15.0 yet, so I used the one for R-2.14, but it does not work for me.
I get an error ("R ddl version does not match: DLL: 2.15.0 JRI:2.14.1")
Should I downgrade my R version, or is there a newer StatET + RJ version I am unaware of?

The testing version of StatET 3.0 with RJ 1.1 currently works with R 2.15.
Binaries of RJ 1.1 were recently made available and can be installed with:
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-1.1")
Alternatively, binaries or source code of RJ can be downloaded from:
http://www.walware.de/it/downloads/rj.mframe
The update site for StatET 3.0 is:
http://download.walware.de/eclipse-3.7/testing
or
http://download.walware.de/eclipse-3.6/testing
depending on your version of Eclipse. More details on StatET 3.0 are available in these two threads:
http://lists.r-forge.r-project.org/pipermail/statet-user/2012-May/001408.html
http://lists.r-forge.r-project.org/pipermail/statet-user/2012-February/001284.html

Related

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

Can't install MobileFirst 7.1.0 studio on Eclipse Luna 4.4.2

I'm trying to install Mobile First 7.1.0 platform studio on Luna Service Release 2 (4.4.2) - 64bit as written in Mobile First requirements. My java is as following:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
I'm trying to install from Eclipse Marketplace and after few minutes of installation I get the following error:
Cannot complete the install because one or more required items could not be found.
Software being installed: IBM jQuery Mobile Tools 7.1.0.00-20151219-1535 (com.ibm.webtools.jquery.tools.licensed.feature.feature.group 7.1.0.00-20151219-1535)
Missing requirement: IBM MobileFirst Platform Studio 7.1.0.00-20151219-1535 (com.worklight.studio.feature.feature.group 7.1.0.00-20151219-1535) requires 'org.apache.commons.collections4 [4.0.0]' but it could not be found
Cannot satisfy dependency:
From: IBM MobileFirst Platform Studio 7.1.0.00-20151219-1535 (com.ibm.imp.tools.wce.feature.feature.group 7.1.0.00-20151219-1535)
To: com.worklight.studio.feature.feature.group 7.1.0
Cannot satisfy dependency:
From: IBM jQuery Mobile Tools 7.1.0.00-20151219-1535 (com.ibm.webtools.jquery.tools.licensed.feature.feature.group 7.1.0.00-20151219-1535)
To: com.ibm.imp.tools.wce.feature.feature.group 7.1.0
Any help would be highly appreciated.
See here: Issues installing MobileFirst Studio v7.1
This has been identified as a defect introduced in a recent iFix and is in the process of being fixed. I will update this answer once a fixed version will be available via Eclipse Marketplace.
As a workaround you can install an older release and then select to update it using the "faulty" release through Eclipse Marketplace. The update will work as the problem manifests itself only in new installations.
For reference, this is APAR - PI54604 CANNOT INSTALL MOBILEFIRST PLATFORM STUDIO 7.1 ON ECLIPSE.
#Idan: I have tried same steps as mentioned above but got the same error like #Anatoly. Let me know any other solution for the same.

rj error when running rj console in Eclipse using StatET plugin

I'm new to R and I use Eclipse a lot so I decided to install the StatET plugin in eclipse. Everything went smoothly except that I have the same problem as shown here...
Random true facts:
Windows XP Version 5.1.2600
Eclipse 3.6
StatET 0.9.2
I tried to install rj-0.5.2-1 from here, which is the package recommended for StatET 0.9.2. I put the tar.gz file in the same directory as R.exe and successfully installed it, here is the command line output...
H:\DATA\R\R-2.13.0\bin>R CMD INSTALL --no-test-load rj_*.tar.gz
* installing to library 'H:/DATA/R/R-2.13.0/library'
* installing *source* package 'rj' ...
** R
** inst
** preparing package for lazy loading
** help
No man pages found in package 'rj'
*** installing help indices
** building package indices ...
* DONE (rj)
H:\DATA\R\R-2.13.0\bin>
When it was done I could see the rj folder in the H:\DATA\R\R-2.13.0\library folder, so I thought it worked. However when I start Eclipse and start the RJ console I still get this error message...
[INFO] The R package 'rj' is not available, R-StatET tools cannot be initialized.
I also tried installing the rj-0.5.5-3 package since the binaries are precompiled; however, that didn't work either. I still get the same error message.
I noticed that at the bottom of the stackoverflow page I posted above that there is a post by Allan Stokes that states this error message is not true. Is this correct? How can I tell if this error message is a Eclipse/StatET bug or that my rj package is not installed properly? Any ideas?
Not sure if it is allowed to answer your own question, but I managed to get it working and I thought I'd post my solution. For some reason R was not recognizing the rj library when it was installed on my H: drive which is a portable drive, not my system drive. I uninstalled R and reinstalled it on my C: drive, which is my system drive. I installed rJava and rj just like before and in the r console I ran...
("rj" %in% installed.packages()[,"Package"])
it returned true indicating that the package was there, this command returned false when R was installed on my H: drive. I went into Eclipse/StatET and setup my R environment with the new location of R and ran RJ and there was no error. I'm not sure why this solution worked. Maybe the rj package need to be installed in a very specific manner. I don't understand why some libraries worked on the H: drive and some didn't. The rJava package would work on the H: drive and that the rj package wouldn't. Why is this? Ah well, it's working now. The info on this mailing list helped a lot...
http://lists.r-forge.r-project.org/pipermail/statet-user/2011-March/000812.html

How to get Scala plugin and AJDT to be installed in same Eclipse

I get an error when trying to install both AJDT and Scala 2.7.5 plugin into Eclipse 3.5.
I remember seeing a message at one point that there was a known problem with the two being installed, and the solution was to install a pre-release version of Scala plugin, from May I believe, then install AJDT.
But, I don't remember which version and I can't find a link to download the older pre-release version.
So, I am wondering if someone knows how I can get both installed.
Thank you.
Edit:
I tried it just now and got this error, so AJDT 1.7.0 won't work. :(
Cannot complete the install because of a conflicting dependency.
Software being installed: Scala Eclipse Plugin 2.7.5.final (ch.epfl.lamp.sdt.feature.group 2.7.5.final)
Software being installed: AspectJ Development Tools 2.0.0.e35x-20090624-1600 (org.eclipse.ajdt.feature.group 2.0.0.e35x-20090624-1600)
Only one of the following can be installed at once:
JDT Weaving 2.0.0.e35x-20090624-1600 (org.eclipse.contribution.weaving.jdt 2.0.0.e35x-20090624-1600)
JDT Weaving 1.6.4.20090313172428 (org.eclipse.contribution.weaving.jdt 1.6.4.20090313172428)
Cannot satisfy dependency:
From: Scala Eclipse Plugin 2.7.5.final (ch.epfl.lamp.sdt.feature.group 2.7.5.final)
To: org.eclipse.contribution.weaving.jdt [1.6.4.20090313172428]
Cannot satisfy dependency:
From: AspectJ Development Tools 2.0.0.e35x-20090624-1600 (org.eclipse.ajdt.feature.group 2.0.0.e35x-20090624-1600)
To: org.eclipse.contribution.weaving.jdt [2.0.0.e35x-20090624-1600]
According to this thread,
2.7.5.final is compatible with AJDT 1.7.0 on Eclipse 3.5.
If you have AJDT (AspectJ Development Tools) 2.0.x, could you try to downgrade to 1.7.0 as suggested in this thread?
As the OP (James Black) himself details in the comments, both AJDT versions are actually 2.0!
From "AJDT 2.0.0 - New and Noteworthy":
Release for AJDT targeting Eclipse 3.5: 2.0.0_e35x2009XXXXXX
Release for AJDT targeting Eclipse 3.4: 2.0.0_e34x2009XXXXXX
So this means that AJDT 1.6.5 has been renamed AJDT 2.0.0_e34x and AJDT 1.7.0 has been renamed AJDT 2.0.0_e35x.
Although this is potentially confusing in the short term, we believe in the long term, this will be more informative and users will be able to read the version and immediately know which Eclipse version it targets and also what feature level it contains.
To complete this answer with the OP's feedback:
AJDT update site
"Eclipse Galileo, AJDT, Scala Eclipse plugin 2.7.5"
Hmm ... if you can live with one of the 1.7.0 AJDT builds you should be OK.
Cheers, Miles
Thanks for the tip - it works!
I used ajdt_1.7.0.20090513085548_archive.zip from the AJDT downloads.
cheers Porter
Here is the message I couldn't find, looking for AJDT 1.7 was the help I needed:
http://www.nabble.com/Eclipse-Galileo,-AJDT,-Scala-Eclipse-plugin-2.7.5-td24357850.html
You can get the file from:
http://eclipse.ialto.org/tools/ajdt/35/dev/update/
I unzipped this zip file into the Eclipse directory, then installed Scala 1.7.5.
I have AJDT 2.0.0 installed, and when trying to install Scala 2.7.5.final get this message:
Only one of the following can be installed at once:
JDT Weaving 2.0.0.e35x-20090624-1600 (org.eclipse.contribution.weaving.jdt 2.0.0.e35x-20090624-1600)
JDT Weaving 1.6.4.20090313172428 (org.eclipse.contribution.weaving.jdt 1.6.4.20090313172428)
This is because the Scala plugin requires 1.6.4. If you downgrade to that version of AJDT you may be ok.