Android Question Error running first program

Discussion in 'Android Questions' started by LondonPete1958, May 17, 2015.

  1. LondonPete1958

    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
     
  2. LondonPete1958

    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
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    You can have many versions of Java installed on your computer. Choose the latest one under Tools - Configure Paths.
     
  4. LondonPete1958

    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
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You don't need to copy any file.

    Reinstall Java JDK and then configure the IDE to use the new version of the JDK.
     
  6. LondonPete1958

    LondonPete1958 New Member

    I uninstalled all the SDK's and started again. It worked.

    Thanks for you help
    Pete
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice