Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java warning: "WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs..." #1

Closed
julienvollering opened this issue Feb 10, 2017 · 19 comments

Comments

@julienvollering
Copy link
Owner

When using one of the MIAmaxent functions that relies on the maxent.jar software (e.g. deriveVars, selectDVforEV, selectEV, plotResp), some users have reported the appearance of the following waring message:
"WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5."

@julienvollering
Copy link
Owner Author

This is a known java issue, and may be solved by following the procedure suggested by MKorsch on StackOverflow (http://stackoverflow.com/questions/16428098/groovy-shell-warning-could-not-open-create-prefs-root-node):

"1. Go into your Start Menu and type regedit into the search field.
2. Navigate to path HKEY_LOCAL_MACHINE\Software\JavaSoft (Windows 10 seems to now have this here: HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft)
3. Right click on the JavaSoft folder and click on New -> Key
4. Name the new Key Prefs and everything should work."

@bbottema
Copy link

bbottema commented Nov 3, 2017

Above method solved it for me (executing FindBugs from Maven) under Windows 10 (with HKEY_LOCAL_MACHINE\Software\JavaSoft).

@avineela
Copy link

avineela commented Dec 1, 2017

Above method solved it for me (executing FindBugs from Maven) under Windows 10 (with HKEY_LOCAL_MACHINE\Software\JavaSoft).

Thanks

@ooluwadeyi
Copy link

This method worked for me too.
Thanks

@ghost
Copy link

ghost commented Jan 1, 2018

@julienvollering Thank you, it works for me. But I actually added new keys to both locations :)

HKEY_LOCAL_MACHINE\Software\JavaSoft
HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft

@amcilwee
Copy link

amcilwee commented Jan 5, 2018

Thank you. worked for me, but I'm not sure why I get the following error when I run the line:

grasslandDVs <- deriveVars(grasslandPO, transformtype = c("L", "M", "D", "HF", "HR", "T", "B"))

Alpha: returning -Infinity for pi[f]=0.000000+-0.000000, q[f]=0.000091
Error: goodAlpha: returning -Infinity for pi[f]=0.000000+-0.000000, q[f]=0.000091
Error in read.table(file = file, header = header, sep = sep, quote = quote, :
no lines available in input
In addition: Warning message:
running command 'java -mx512m -jar "C:/Users/mcilwea/Documents/R/R-3.4.3/library/MIAmaxent/java/maxent.jar" removeduplicates=FALSE addsamplestobackground=FALSE autofeature=FALSE betamultiplier=0 quadratic=FALSE product=FALSE hinge=FALSE threshold=FALSE outputformat=raw writebackgroundpredictions=TRUE outputgrids=FALSE pictures=FALSE extrapolate=FALSE writemess=FALSE plots=FALSE doclamp=FALSE writeclampgrid=FALSE autorun=TRUE threads=2 visible=FALSE warnings=FALSE maximumbackground=17480 samplesfile="R:/Koala/R/MAXENT/Test/deriveVars/pca1/HR/pca1_HR1/samples.csv" environmentallayers="R:/Koala/R/MAXENT/Test/deriveVars/pca1/HR/pca1_HR1/environlayers.csv" outputdirectory="R:/Koala/R/MAXENT/Test/deriveVars/pca1/HR/pca1_HR1/"' had status 1

@julienvollering
Copy link
Owner Author

@amcilwee
Are you using maxent.jar version 3.3.3k (in the java folder of the package)?. You can download it from: https://github.com/mrmaxent/Maxent/tree/master/ArchivedReleases/3.3.3k
Currently the link in the system requirements of the package points to an outdated location. My apologies.

MIAmaxent is not yet updated to work with the most recent version of maxent.jar (v3.4.1). We are working on a version of our package that should eliminate these kinds of issues with the java program entirely.

@amcilwee
Copy link

amcilwee commented Jan 7, 2018

Thank you. all is working fine.

@bipin79
Copy link

bipin79 commented Dec 10, 2018

It worked to me too. Thanks julienvollering.

@ivan-performance-qa
Copy link

Thx for solution.

@k-eaton
Copy link

k-eaton commented Mar 14, 2019

They finally patched this in JDK 8 U202. (This is not the same as the standard JDK. Scroll down the download page to find it below. Apparently Oracle doesn't directly apply the patches to the standard release (U201). You have to download the version that has all the non-security patches in it.) This was finally patched Jan 2019.

@rooftopcaller
Copy link

very useful , path should with "WOW6432Node" is very important.

@WinterHuang003
Copy link

部分电脑既找不到HKEY_LOCAL_MACHINE \ Software \ JavaSoft,
也找不到HKEY_LOCAL_MACHINE \ Software \ WOW6432Node \ JavaSoft。可以在HKEY_LOCAL_MACHINE \ Software \找到你对应的应用程序,例如我需要在android studio中使用管理员权限,所以选中Android studio,右键 - >权限 - >勾选允许完全控制。问题可完美解决,详见博客https://blog.csdn.net/micotale/article/details/90511141

@WinterHuang003
Copy link

@julienvollering 部分电脑既找不到HKEY_LOCAL_MACHINE \ Software \ JavaSoft,
也找不到HKEY_LOCAL_MACHINE \ Software \ WOW6432Node \ JavaSoft。可以在HKEY_LOCAL_MACHINE \ Software \找到你对应的应用程序,例如我需要在android studio中使用管理员权限,所以选中Android studio,右键 - >权限 - >勾选允许完全控制。问题可完美解决,详见博客https://blog.csdn.net/micotale/article/details/90511141

@tony789
Copy link

tony789 commented Jul 6, 2020

solved worked on Eclipse 2020 06

@AymericFerreira
Copy link

Still working in 2020, thank you Julien Vollering

@tony789
Copy link

tony789 commented Jul 19, 2020

I Also thank Julien Vollering

@viniciusgiacomelli
Copy link

viniciusgiacomelli commented Jul 24, 2020

Work for me too! Thanks 👍

majramo pushed a commit to majramo/tang that referenced this issue Nov 23, 2020
0.1.01-SNAPSHOT

If problem to start see this
Issues: add regsitry
HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs
HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft\Prefs

julienvollering/MIAmaxent#1
@adelara
Copy link

adelara commented Apr 9, 2021

Thanks !!!
That solved for me too. I'm using Katalon 7.2.1 ... I added the Prefs key to both locations
HKEY_LOCAL_MACHINE\Software\JavaSoft
HKEY_LOCAL_MACHINE\Software\WOW6432Node\JavaSoft

then I modified my Katalon shortcut to always run as administrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests