I am getting the following error when I try to run jgr-x64.exe on Windows 7 64-bit.
Couldn't install JGR!
Please re-install R and/or connect to the internet
My Packages are getting installed at
\AppData\Local\Temp\Rtmp886Wzb\downloaded_packages
Is it something to do with setting environmental variables?
Any advise on how to solve this?
For non-standard R library locations, you need to tell jgr-x64.exe where to look for the JGR package. Some instructions on how to do this are at: http://www.deducer.org/pmwiki/pmwiki.php?n=Main.RunningJGRWithANon-standardRInstallation
The newest development version of JGR can automatically create a script to do this for you. You can test it out by doing the following:
install.packages("JGR",,"http://www.rforge.net",type="source")
library(JGR)
JGR()
At the R prompt, you must be in a directory where you have write access (run as admin if necessary, or else setwd() to your preferred directory) when you run JGR() for the first time. This will download jgr-1_62-x64.exe and create a jgrLaunch.bat file tailored to your system. It defines environment variables and command-line options to jgr-1_62-x64.exe.
You can move these files (e.g. to the desktop) after creation; just note that jgrLaunch.bat calls jgr-1_62-x64.exe, so the latter must either be in PATH or in the same directory as the .bat file.
Related
I want to use the "coreNLP" library in R software. I am using ubuntu, and the java version is 11.0.4.
I have an error during using the initCoreNLP()
Error in rJava::.jnew("edu.stanford.nlp.pipeline.StanfordCoreNLP", basename(path)) :
I tried to solve this problem by using the dyn.load('/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/lib/server/libjvm.dylib')
Then remove rJava and reinstall it again.
However, when I use the dyn.load in R, it gives me this error
ibjvm.dylib: cannot open shared object file: No such file or directory
when I tried to check that if the file is existed by using the below command
ls /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
it show that the 'jre/lib/server/libjvm.dylib' is not exist
NOTe::
I do not have any problem when I use library(rJava)
also, I used the /usr/lib/jvm/java-11-openjdk-amd64/lib/server directory to export it in LD_LIBRARY_PATH because it has the libjvm.so file
what should I do now to solve this problem????
.dylib is an extension for macOS shared based libraries. If you are using Ubuntu it will be .so
So, it looks like you have sort of mixed environment. In fact, this layout
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
seems like macOS one.
Anyway. I suggest starting from the very beginning. Try to:
configure Java in R using sudo R CMD javareconf
install rJava using `install.packages('rJava')
make sure your Java + R env. is running fine. I suggest running simple code before jumping towards something more complex. For example:
http://www.owsiak.org/running-java-code-in-r/
make sure your coreNLP is visible from R - e.g. it's JAR files are on CLASSPATH
I have installed the JGR package but when I try to invoke it, the error says
__Non-existent directory specified in --libpath=__. Maybe because of a white space in the path variable, __\Users\Scholars Psy\Documents\R\win-library\3.0__ which cannot be read?
I am running a 64-bit Windows 7 OS. I have installed both 32-bit and 64-bit versions of Java.
I tried installing JGR using the .exe file from JGR website, which is also not working.
My ultimate need is to use Deducer, which seems to be working well from inside JGR only.
The problem is the space in the Scholars Psy folder name.
Specify directory with your command line argument.
example:
set R_HOME=C:\PROGRA~1\R\R-30~1.1
set R_LIBS=C:\Program Files\R\R-3.0.1\library
set R_LIBS_USER=C:\Program Files\R\R-3.0.1\library
jgr-1_62-x64.exe --rhome=C:\PROGRA~1\R\R-30~1.1 --libpath=C:\PROGRA~1\R\R-30~1.1\library
I'm not sure if it is best practice but I add MySQL-connector jar to the extensions directory of my Java install directory to I can easily connect to MySQL databases.
I also set environment variables to point to various directories so that I can develop on different machines and only define environment variables locally and code doesn't have to be modified for file paths.
In either case of the above I find that unless I reboot my computer java does not recogise either. What happens during a reboot to Java? Is some config file updates by a java process? Can you update this without having to reboot?
To test this I have created a new environment variable on both Mac (adding to .MacOS/environment.plist), Linux (Ubuntu 12.04) and windows 7 (via control panel). I then used System.getenv("TestVar"); which returns null. Running set from the command line shows it exists though. After a reboot System.getenv("TestVar"); returns the expected value.
Ultimately your goal is to include jar files in CLASSPATH . its up to you how include jars in classpath but this is not good practice to put jars inside extensions directory . While running your program modify CLASSPATH value .
java -cp jar1:jar2:jar3:dir1:. HelloWorld
java -classpathjar1:jar2:jar3:dir1:. HelloWorld
As far as setting environment variables goes the on Ubuntu a log out is required
https://superuser.com/questions/339617/how-to-reload-etc-environment-without-rebooting
I had installed Java in my PC and it was working perfectly. Suddenly something went wrong and now I m not able to open swing applications and its showing the error 'Java not found'. But I can run the Eclipse IDE which also needed Java to run. So I decide to reinstall the Java, but when I tried to uninstall the Java it shows the Error 1723 - There is a problem with this Windows Installer Package. So I have installed a new JDK in another location and set the PATH. Still I am not able to run the Swing application.
Can anybody help me on this?
How are you running your swing application?
If it's from the command line like java mySwingApp and you're getting java not found then your PATH isn't set properly. Make sure that the java/bin directory is on your PATH not just the top level directory. You can test your PATH by just typing java in a console window - it should print the java help page.
If you're not running from a terminal like above, then you may need to set a JAVA_HOME environment variable which points to your java installation folder. Here's a tutorial on setting JAVA_HOME
Setting JAVA_HOME
Hope this helps,
Will
This is close to jakob's answer, about trying to get your Java install setup correctly again, just with a little more detail.
I had a similar problem on my Windows 7 box where I was trying to uninstall Java and do a clean install of a newer version. Something got messed up and I would get the 1723 error message during the uninstall and attempted reinstall. Here's information about how I was able to fix the problem, and maybe this will help you:
Look at the log files for the uninstall/reinstall. On Windows 7 they can be found at c:\users\username\AppData\Local\Temp\
The java_install.logdidn't show any extra information, but I had several MSI##### log files that contained error messages about the failed uninstall. The message was: Error 1723.There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action UninstallJRE, entry: MSIUninstallJRE, library: C:\Program Files\Java\jre6\bin\regutils.dll
There was indeed no regutils.dll file, and not even the bindirectory was there. So I copied over a regutils.dll file from another computer, ran the uninstaller, and it worked. Then the new clean install of Java also worked.
So take a look at your logfiles and hopefully that will give you more detailed information about the 1723 error.
This usally happens when you delete Java files manually.
If you try to uninstall Java and it fails, it generates a log file.
Should be in C:\Users[Username]\AppData\Local\Temp
Almost at the end the missing file(s) can be found.
Try to copy that file(s) from a working installation to your computer.
Then you should be able to uninstall your Java and install a new version.
I have read this article
http://lifehacker.com/5354441/google-docs-batch-upload-eases-online-document-transfers
java -jar google-docs-upload-1.2.jar /home/kevin/uploads --recursive
now its not working it says bas command not found.
is java already installed in vps centos or i have to install it
Either you don't have java or its not available in your path. Some linux distros install java in the /opt directory. So be sure to check if that's the case with you. If so then its just a matter of updating your path if not then there are two possibilities :
1. You have root access.
2. You don't have root access.
If you do have root access then you can easily install java with your package manager, if now you can still install java as a local user. Read this to do that. You can install any version of java that you so wish, also it may be unnecessary to install JDK, just JRE might be enough for you.
Don't do the steps that need root access, just copy it somewhere in your home directory or any of the directories to which you have access. Then set the appropriate values for JAVA_HOME and your PATH. It should work then.
If you need any help in doing that feel free to ask.
Download the jar google-docs-upload-1.2.jar.
Ensure you have Java.
Use your own home- and upload-folder, not the "kevin/uploads" one.