I seem to be having issues installing RWeka in R, on my mac.
I've read through a number of websites but nothing seems to work. I have Java 8 installed on my mac (I'm running OS X Sierra and I'm running R version 3.3.2).
When I attempt to install the R package I get the error:
Warning message:
In install.packages("RWeka") :
installation of package ‘RWeka’ had non-zero exit status
In grey letters, several lines up it also says:
Need at least Java version 1.7/7.0.
I'm running the latest version of Java (1.8) but it doesn't seem to sync up with RWeka for some reason. I've tried shutting down R and re-starting it, but that doesn't seem to help either.
R also throws up a pop up informing me:
To use the "java" command-line tool you need to install a JDK.
Click "More Info..." to visit the Java Developer Kit download website.
If I click "Ok" it simply opens a mac website but there is nothing on there regarding a Java Developer Kit. I've used the search function on the website with no success. I've googled Java Developer Kit but can't seem to figure out what it is or how it is supposed to even work.
Any ideas on how to remedy this?
The problem was rJava and RWeka wont install in RStudio (Version 1.0.136). The following worked for me (macOS Sierra version 10.12.6) (found here):
Step-1: Download and install javaforosx.dmg from here
Step-2: Next, run the command from inside RStudio:
install.packages("rJava", type = 'source')
install.packages("RWeka")
Related
It used to work on the MacBook pro 14 on the m1 pro. But now it has stopped working on it too. This is an application for the operation of IP KVM Aten cs1708i. As soon as I click Connect, the program hangs and then gives an error. I did a full reset of the mac and the same thing. Please help - I've already tried everything I could.
java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/qs/570kgrkd07qf5r_67blv4d040000gn/T/libiKVMLib_V1.0.dylib
I tried to install various java builds (Azul,oracle, liberi). Java is installed - but the application does not work. Mac Os Ventura OS.
First try to see if your system sees Java. Go to a terminal and type
java -version
If it errors out, you need to add JAVA_HOME to your class path. Your class path is where your system looks for commands. Try google for installing java on your mac first and see how far you can get. Come back if you need help.
Still trying to get Eclipse IDE to work and running into Incompatible JVM error. I followed the steps here: I installed Java 7 but Eclipse keep saying that 1.6 is not suitable for this product
But unfortunately to no effect. Running OSX 10.9.5 and uninstalled the out-of-the-box version of Mac. The new version of Java seems to show up in the System Preferences. Please see attached screen capture. I've even done some of the basics like restart my computer, etc. Maybe there are other modifications I need to make to other files. I'm comfortable with Terminal but new to Eclipse and Java.
I have had the same problem as noted above. I could not get Eclipse to install because of Java incompatibilities. The sequence I followed goes like this:
Upgraded to MAC OS Sierra
Downloaded the Eclipse installer but was prompted that I needed to instal a legacy Java.
Installed Java 1.6
Was unable to install Eclipse and was prompted that I needed Java 1.7 or greater. Downloaded and installed Java 1.8
Ran the terminal code 'java -version' // this will check your jre version. This showed returned Java 1.6 despite the fact that I had upgraded to 1.8. The Java version listed in the Java control panel said 1.8
Tried multiple downloads of eclipse and Java and multiple restarts always with the same result.
Visited the Oracle web page noted above:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html I could not find the above reference to 8u73 and 8u74 but I did find and option to download 1.8.0_12. I did this. It installed without difficulty, and then I was able to install Eclipse without difficulty.
This took hours of my time. I hope this proves useful.
OK, so I don't really know what the problem was, but I simply fixed it by navigating to here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and installing 8u74 instead of 8u73 which is what I was prompted to do when I would go to "download latest version" in Java. So changing the versions is what did it in the end. Eclipse launched fine, now. Thanks for everyone's help!
edit: Apr 2018- Now is 8u161 and 8u162 (Just need one, I used 8u162 and it worked.)
JRE is a Run-Time Environment for running Java stuffs on your machine. What Eclipse needs is JDK as a Development Kit.
Install the latest JDK (and not JRE) from http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html and you should be good on Mac!
Open up terminal and check what java version is currently set in your path variable.
You can do that by typing in your terminal
java -version // this will check your jre version.
javac -version // this will check your compiler version
If this shows incorrect java version but you have installed java 1.8 then you have to set path variable to the newer version of java.
To do that do add the line:
export JAVA_HOME=/path/to/java/jdk1.x
to ~/.bash_profile (same as /Users/username/.bash_profile)
Then do this from the terminal to set the new variable
source ~/.bash_profile
Also what's your eclipse.ini set to ?
-Dosgi.requiredJavaVersion=1.7
EDIT:
Please open up terminal and type
find / -name "java" // This should find all folder named java on your file system.
Also how did you install java in the first place ?
Echoing the answer, above, a full install of the JDK (8u121 at this writing) from here - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html - did the trick. Updating via the Mac OS Control Panel did not update the profile variable. Installing via the full installer, did. Then Eclipse was happy.
Here are steps:
download 1.8 JDK from this site
install it
copy the jre folder & paste it in "C:\Program Files (x86)\EclipseNeon\"
rename the folder to "jre"
start the eclipse again
It should work.
For some weird reason "Java SE Development Kit 8u151" gives this trouble. Just install, "Java SE Development Kit 8u152" from the following link-
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
It should work then.
Official Launch was today. I need to use Eclipse for my classes, and have seen that in Beta 3 update it "broke" Eclipse.
Can anyone confirm to me if Eclipse is running fine on El Capitan?
It's Xcode. If you try anything from the command line you will yield:
$ git status
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
so then you go looking around and you end up at needing to fix a link for command line tools:
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
which yields
xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'
and then you go and reinstall Xcode. Ugh.
Eclipse Mars (4.5) runs fine on Mac OS X El Capitan for me.
I am using Java 1.8 update 60.
I also have XCode 7.0.1 installed, but I don't think that is relevant.
Eclipse RCP and SWT apps also work fine.
In case someone gets here through a search engine:
After upgrading to El Capitan, Eclipse gave me the error that it couldn't find a VM at /System/Library/Frameworks/JavaVM.framework/Home/bin/java
Reinstalling XCode didn't resolve the problem. This did:
Find java. I had Oracle's Java SE 7 installed at its default location.
Find Eclipse in Finder.
Right-click and choose Show Package Contents.
Open Contents/MacOS/eclipse.ini for editing.
Change:
-vm
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
to:
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java
Save, then launch Eclipse as normal.
I installed the Eclipse IDE, but it said I needed to install an SDK in order for it to run. I downloaded it from Oracle, but had trouble getting it up and running. I have Windows 7, and it says "exit code = 13".
I think you can do these steps:
1. Download JDK. e.g JDK 7. http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jdk-installation-windows.html
2. Install it in your Windows
3. Check current version that is success or not by go to cmd and type: java -version
4. Start your Eclipse.
If you still have error, Google it for the detail.
Hope this help.
I downloaded Eclipse (specifically that for C/C++ Programming) for Mac, running OSX Mavericks. When I try to start Eclipse, it gives me this message: "Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required", and it doesn't open. I installed Java version 7, but nothing changed. I don't know how else to update the JVM (I don't know much about Java in general).
I downloaded the 64-bit version for my MacBook Air, if that matters.
Simply Install the JDK 7 or JDK 8, and not just the latest JRE.
Run whereis java in a Terminal. It will normally display something like /usr/bin/java.
Now run java -version. It shows you 'java version 1.6.0_65' or something approaching. This is because Java 7 does not replace Java 6. Java 7 is installed as an Internet Plug-in and can be found in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
What you need to do is to symlink /usr/bin/java to /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
Restart Eclipse, or reboot your computer (I don't know how Eclipse manages this), and it should do the trick. :)
I went to oracle downloads and the scrolled one of the several Mac osX links and downloaded jdk-8u73-nb-8_1-macosx-x64.dmg from oracle and that fixed the problem. I don't know why updating java doesn't do the trick.
add this script into 'eclipse.ini' at the top
'/Library/java/JavaVirtualMachines/jdk1.8.0_77.jdk/contents/Home/bin'
Trying to install eclipse, I installed java version 1.6.0_65 as it requested yet still was blocked from finishing the Eclipse install with the error that I needed 1.7 JVM or higher - not true, installing higher didn't work either. I tried installing jdk-8u101-macosx-x64.dmg and that didn't work. So, I tried JDK 7 as advised, sorry no good.
So, to get the Eclipse installer to run with out that java error I had to edit the Info.plist inside the Eclipse Installer. Right click the Eclipse installer and show package contents, then open info.plist in textEdit.app
(Note: So after several tries editing this plist and following methods mentioned elsewhere nothing worked, I found that you have to use the symlink or java alias because java is installed differently now a days as an internet plugin.)
Where you want to make an edit (You should probably Backup the original or you can download it again), under <key>Eclipse</key>, then <array>, delete out what's there and add <string>-vm</string> and this string underneath; <string>/usr/bin/java</string>
Here is what mine looks like.
<key>Eclipse</key>
<array>
<string>-vm</string>
<string>/usr/bin/java</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
<string>-showlocation</string>
</array>
Then save and try running your eclipse installer; this worked for me.
Just running the below command from there terminal worked for me.
brew cask install java
It updated my idk with 1.8, and after that eclipse opens successfully.