Android Question Error running first program

LondonPete1958

New Member
I'm getting the following error

Error: could not open `C:\Program Files\Java\jdk1.7.0_40\jre\lib\amd64\jvm.cfg'

I assume something went wrong on the install, but where do I check.

Regards
Pete
 

LondonPete1958

New Member
I found this file in the jdk1.8.0_45 directory.

It seems I have several version of the SDK installed. Do i need to get rid of them and start again? Should I be using the ;latest version?

Regards
Pete
 
Upvote 0

LondonPete1958

New Member
Thanks for that,

OK, I thought I'd download the latest version again, 1.8.0_45 but that does not have the javac.exe file in bin.

SO after copying across the .cfg file, I now get a different error;

Signing package file (debug key). Error
Exception in thread "main" java.lang.InternalError
at java.util.Currency$1.run(Currency.java:224)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.Currency.<clinit>(Currency.java:192)
at java.text.DecimalFormatSymbols.initialize(DecimalFormatSymbols.java:566)
at java.text.DecimalFormatSymbols.<init>(DecimalFormatSymbols.java:94)
at java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:157)
at java.text.NumberFormat.getInstance(NumberFormat.java:767)
at java.text.NumberFormat.getIntegerInstance(NumberFormat.java:439)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:664)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:653)
at java.text.DateFormat.get(DateFormat.java:772)
at java.text.DateFormat.getDateTimeInstance(DateFormat.java:547)
at java.text.MessageFormat.subformat(MessageFormat.java:1265)
at java.text.MessageFormat.format(MessageFormat.java:860)
at java.text.Format.format(Format.java:157)
at sun.security.tools.JarSigner.printCert(JarSigner.java:886)
at sun.security.tools.JarSigner.getAliasInfo(JarSigner.java:1818)
at sun.security.tools.JarSigner.run(JarSigner.java:228)
at sun.security.tools.JarSigner.main(JarSigner.java:105)
Caused by: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.7.0_40\jre\lib\currency.data (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at java.util.Currency$1.run(Currency.java:198)
... 18 more
can't open C:\Program Files\Java\jdk1.7.0_40\jre\lib\tzmappings.


The currency.data file resides in the latter directory but not in 1.7.0_40!

Do I just keep copying across files for the newer version to the older? I do not understand where the problem is coming from

Regards
Pete
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…