How to? can not open jvm.cfg help

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
i need some help with my system varibles , i changed one of the values to get my java jvm to execute but to no avail. here is my dos print

i am having a similar problem may be you could help me . this is my dos path

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\my>javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files and annotati
on processors
-cp <path> Specify where to find user class files and annotati
on processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compil
ation is done.
-processor <class1>[,<class2>,<class3>...] Names of the annotation processors
to run; bypasses default discovery process
-processorpath <path> Specify where to find annotation processors
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for
implicitly referenced files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release

-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
-Werror Terminate compilation if warnings occur
@<filename> Read options and filenames from file


C:\Users\my>java -version
Error: could not open `C:\Program Files\Java\jre7\lib\i386\jvm.cfg'

C:\Users\my>path
PATH=C:\Program Files\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Sh
ared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\win
dows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Pr
ogram Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Blueto
oth Software\;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files\QuickTi
me\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0_02\bi
n
C:\Users\my> -version
'-version' is not recognized as an internal or external command,
operable program or batch file.

C:\>cd \java -version
The system cannot find the path specified.

c:\Program Files>cd\ java
The system cannot find the path specified.

C:\Program Files>cd \Java
The system cannot find the path specified.

C:\Program Files>dir
Volume in drive C has no label.
Volume Serial Number is BC58-5CEE

Directory of C:\Program Files

12/28/2011 03:04 PM <DIR> .
12/28/2011 03:04 PM <DIR> ..
12/13/2011 07:04 PM <DIR> Adobe
12/24/2011 11:12 AM <DIR> AMD APP
12/13/2011 05:43 PM <DIR> Apple Software Update
12/20/2011 06:18 PM <DIR> ArcSoft
12/13/2011 12:38 PM <DIR> ATI
12/24/2011 11:11 AM <DIR> ATI Technologies
04/02/2011 12:36 PM <DIR> Bing Bar Installer
12/13/2011 05:42 PM <DIR> Bonjour
12/21/2011 01:20 PM <DIR> Brand Affinity Technologies
12/13/2011 12:49 PM <DIR> Broadcom
12/13/2011 12:51 PM <DIR> Cisco
12/22/2011 10:08 PM <DIR> Common Files
12/20/2011 06:03 PM <DIR> Conduit
12/16/2011 08:40 AM <DIR> ConvertHelper
12/13/2011 12:57 PM <DIR> Downloaded Installations
12/17/2011 11:30 AM <DIR> Driver Manager
12/15/2011 04:48 PM <DIR> DVD Maker
12/21/2011 01:24 PM <DIR> Hewlett-Packard
04/02/2011 12:45 PM <DIR> HP Games
12/21/2011 01:21 PM <DIR> HyperCam 2
12/21/2011 01:21 PM <DIR> Hyperionics DB Toolbar
12/13/2011 01:00 PM <DIR> IDT
12/28/2011 06:54 PM <DIR> Internet Download Manager
12/19/2011 08:57 PM <DIR> Internet Explorer
12/13/2011 05:46 PM <DIR> iPod
12/13/2011 05:47 PM <DIR> iTunes
12/28/2011 03:04 PM <DIR> Java
12/26/2011 07:43 PM <DIR> jdk1.7.0_02_combo
12/17/2011 12:50 PM <DIR> JetBrains
12/26/2011 01:49 PM <DIR> JPSoft
04/02/2011 12:36 PM <DIR> Microsoft
12/17/2011 09:39 AM <DIR> Microsoft Application Virtualization Clie
nt
12/15/2011 07:25 PM <DIR> Microsoft Office
12/22/2011 04:04 PM <DIR> Microsoft Security Client
12/19/2011 02:45 PM <DIR> Microsoft Silverlight
04/02/2011 12:33 PM <DIR> Microsoft SQL Server Compact Edition
04/02/2011 11:42 AM <DIR> Microsoft.NET
12/17/2011 11:24 AM <DIR> Mozilla Firefox
07/13/2009 09:52 PM <DIR> MSBuild
04/02/2011 12:36 PM <DIR> MSN Toolbar
12/26/2011 09:53 PM <DIR> Notepad++
12/13/2011 01:06 PM <DIR> Online Services
12/15/2011 11:28 AM <DIR> Oracle
12/15/2011 04:03 PM <DIR> QuickTime
04/02/2011 01:02 PM <DIR> Realtek
07/13/2009 09:52 PM <DIR> Reference Assemblies
12/15/2011 04:04 PM <DIR> Safari
12/22/2011 11:04 PM <DIR> SeaMonkey
04/02/2011 12:30 PM <DIR> Synaptics
12/20/2011 06:12 PM <DIR> TextAloud
12/21/2011 02:07 PM <DIR> uTorrent
12/21/2011 02:08 PM <DIR> uTorrentBar
12/13/2011 12:45 PM <DIR> WIDCOMM
12/17/2011 11:25 AM <DIR> Winamp
12/17/2011 11:24 AM <DIR> Winamp Detect
12/19/2011 08:57 PM <DIR> Windows Defender
12/19/2011 08:57 PM <DIR> Windows Journal
04/02/2011 12:33 PM <DIR> Windows Live
12/19/2011 08:57 PM <DIR> Windows Mail
12/19/2011 08:57 PM <DIR> Windows Media Player
07/13/2009 09:52 PM <DIR> Windows NT
12/19/2011 08:57 PM <DIR> Windows Photo Viewer
12/15/2011 04:48 PM <DIR> Windows Portable Devices
12/19/2011 08:57 PM <DIR> Windows Sidebar
04/02/2011 12:08 PM <DIR> Windows Virtual PC
12/13/2011 01:03 PM <DIR> Windows XP Mode
12/20/2011 05:38 PM <DIR> WinZip
12/17/2011 12:33 PM <DIR> Xinox Software
0 File(s) 0 bytes
70 Dir(s) 233,061,163,008 bytes free

C:\Program Files>cd \Java
The system cannot find the path specified.

\Program Files>path
PATH=C:\Program Files\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Sh
ared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\win
dows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Pr
ogram Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Blueto
oth Software\;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files\QuickTi
me\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0_02\bi
n;.
C:\Program Files> Java
Error: could not open `C:\Program Files\Java\jre7\lib\i386\jvm.cfg'


C:\>java -version
Error: could not open `C:\Program Files\Java\jre7\lib\i386\jvm.cfg'

also cannot open java icon from control panel

it show the jdk in the path , however it will not open , any good ideas apprec...
 
#3
Are you running as Administrator?? Do you have permissions to that folder from the user you are using??

IME Java is absolutely awful at dealing with users not running as Admin (Java update, for instance, will fail if run from a non-admin user - it generates a UAC prompt for Admin access but then the download fails. The only way to get it to work is to log on as an Admin user and run from there)