Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'

I am geting this error when I enter the "java" command:
"Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'"
I have configured the PATH variable (Windows 2000) and "javac" works. I cannot, however, get my programs to run because of the error every time I type "java". Also, I did not install my JDK / SDK to the directory in which the computer is looking for the "java" cammand (ie. it is not in 'Program Files'...). If anyone can help, it would be greatly appreciated. Thank you.

Try using the -cp switch on the command line. For example:java -cp . MyProgramIf this corrects the problem, you need to set the classpath variable
as well as the path.
Mark

Similar Messages

  • -Error: could not open `C:\Program Files\Java\j2re1.4.0_02\lib\i386\jvm.cf

    Using the classpath switch (as advised to an earlier topic message) doesn't work for me. Can you help?! Many thanks
    N

    Solved this problem by deleting java.exe from C:\WINNT
    N

  • Could not open "C:\Program Files\Java\j2rel.4.1_02\lib\i386\jvm.cfg

    Hi,
    I have just installed J2rel1.4.1_02 and it seems to be okay with running applets and the pathway has been set in the autobat.exec file (I'm still using Windows 98), but I keep getting the above error message when I try to run a program.
    I have tried reinstalling the program several times, to no avail. I even see the directory that it is looking forward and I can't understand why I'm getting this error. Can anyone help?
    Thank you.

    Uninstall any versions of J2RE, restart the system,
    Scandisk the hdd, restart the system,
    Defrag your hdd, restart the system,
    Reinstall the J2RE and hope it works!I forgot to mention... After the uninstall delete the J2RE folder and when reinstalling J2RE use a diffent folder name.

  • Photoshop wont open get error could not open a scratch file because the disk is not available

    Had to clone my hard drive to another drive on my computer.
    I have been receiving a message "Could not open a scratch file because the disk is not available"  I have tried UN-installing and re-installing...still the same message.
    Does anyone have any idea how to fix this?
    Thanks!

    What do you have here.
    If that does not help, reset your prefs
    Hold fingers over Shift Option Command (or similar on Windows) then boot Photoshop and as fast as you can depress the 3 keys.

  • Error: could not open...........

    Particulars: New to Java, Windows 98, Java 1.4.0_01.
    My first program has compiled no-problem. However, when i attempt to run the program i get the following messege in the command prompt.
    Error: could not open 'C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'
    Upon examination, my (jvm.cfg) is in a completely different directory. I don't know if i installed the Java SDK improperly, or if setting the classpath will help. I even uninstalled, then re-installed program. Also, i attempted to create a directory that matched that which is described in the error messege, (only to create a new "could not open" error).
    Could you please help? Thank you in advance, Dan......

    When you install Java it creates 3 directory trees.
    One, which starts at C:\j2sdk1.4.0_01, contains a copy of the JRE runtime (at C:\j2sdk1.4.0_01\jre\) and the additional program tools and librarys/jars that are needed to create and compile programs.
    The second, which is at C:\Program Files\Java\j2re1.4.0_01\, is a copy of the JRE runtime that was installed above.
    (The third, Webstart, is in C:\Program Files\)
    Because there are 2 JRE's, identical except for where they are, if you have one jvm.cfg you can copy it to the other location. The files are identical when installed. The 2 locations are:
    C:\j2sdk1.4.0_01\jre\lib\i386\jvm.cfg
    C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg
    Give that a try...
    That said, I've never heard of this. If you tried to install into a directory other than the default, I suggest that you use the defaults. If you used the defaults and are still having trouble, do a full removal using the Control Panel 'Add/Delete Programs' feature. Make sure that Java 2 Runtime, Java 2 SDK, and Java Webstart are removed. Then delete the 3 directory structures that match these and start over.

  • I get this error upon launching PS5: "could not open a scratch file because the file is locked .."

    I get this error upon launching PS5: "could not open a scratch file because the file is locked or ou do not have the necessary access privileges. Use the 'properties' command in the Windows Explorer to unlock the file". The applicaiton will not launch.
    Supporting information - I recently changed the scratch disk from C drive to D drive (the back up/restore drive). The application wont launch so I cant change it back to the C drive.
    Questions:
    - How to I fix this .. from windows explorer how do I find "the file" that the error message refers to?
    - Other ways to fix this?
    Thanks Steve

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    To help others help you, please read through this article and provide any additional relevant details.

  • Photoshop won't start: Could not open a scratch file because the file is locked, you do not have necessary access permissions, or another program is using the file.

    Adobe Photoshop CS6 Extended
    "Could not open a scratch file because the file is locked, you do not have necessary access permissions, or another program is using the file."
    I've tried finding and checking and fixing permissions but no success.
    This happened from one day to the next. I think it has to do with the sn attached to the disk rather then the motherboard. I have the suite co-installed with Symphony 5.05. I've tried reinstalling.
    What's to b done? The rest of the Creative Suite 6 (AE, AI etc.) works fine.
    Anyone...?
    Loui

    Have you tried restoring the Preferences yet?

  • Entourage error 'could not open that feature end of file reached

    When opening Entourage I received the error 'Could not open that feature. End of file reached' I tried Utility and rebuild. when attempting to rebuild a pane came up stating 'preparing to rebuild 0 of 0' and the pane has been stuck there for 8 hours. Every other office product works though. any ideas?

    Contact Microsoft for support. That's not an Apple product.

  • Error: could not open the file /var/lib/pacman/sync/.....

    Heya Arch Forums,
    So it's my first time installing and I've made it to the point were I'm ready to install X11.
    When I run "pacman -S xorg-server xorg-xinit xorg-server-utils" my console returns the following errors:
    error: could not open file /var/lib/pacman/sync/testing.db: Unrecognized archive format 
    error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/community-testing.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
    error: could not open file /var/lib/pacman/sync/testing.db: Unrecognized archive format
    These errors repeat again followed by:
    error: target not found: xorg-twm
    I'm in Canada, so I've only set my mirror list to use "Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch"
    Also, in my /etc/pacman.conf all SigLevel's are = Never.
    Thanks for any replies.

    skunktrader wrote:Did you run pacman -Syu before attempting to install new packages?
    Thanks for the quick reply
    Yes, however pacman -Syu as well as pacman -Syyu return the same errors.

  • Gerring Error -"Could not open command file"

    Hi All,
    I'm using Business Object Data services XI 4.0 .When I executes the job it given an error -"Could not open command file "
    so if anyone know the solution then please let me know.
    Thanks
    Rajeev kumar
    SAP-BODI Developer

    The -compat=4 (and the default -compat=5) compilation modes are not related to the compiler version. All compiler versions from 5.0 (1998) through 5.10 (2009) have these options. The C++ Migration Guide
    [http://docs.sun.com/app/docs/doc/819-5266]
    explains the differences in detail between -compat=4 and -compat=5, with examples of how to make old code compatible with standard C++.
    There is no compiler version 7. Perhaps you are thinking of the Sun Studio release. There is a Sun Studio 7 (containing C++ 5.4), but it is End Of Life, no longer available for purchase, and is not supported on Solaris 10. The recent releases are these:
    Sun Studio 11, C++ 5.8, supports Solaris 8, 9, 10
    Sun Studio 12, C++ 5.9, supports Solaris 9, 10, Open Solaris, Linux
    Sun Studio 12 update 1, C++ 5.10, supports Solaris 10, Open Solaris, Linux
    (Sun Studio 12 update 1 should be released next week. Watch this forum for an announcement.)
    Please run the command
    CC -V
    to find out your compiler version.
    When compiling on Solaris, 32-bit compilation is the default. You don't get 64-bit compilation unless you ask for it, via the -xarch option on older compilers, or the -m64 option on current compilers.

  • Photoshop cse 5 error "Could not open scratch file because disk is not available" using Maverick

    I am getting the following error:
    "Could not open scratch file because disk is not available"
    I am using Adobe Photoshop CS5 on the Mac Operating System "Maverick". The application is currently loaded on an external bootable drive. I created an external bootable drive using "Disk Utilities". I've changed the directory /private/ to 777 using the following command "chmod -R 777 /private/". I have created the external bootable drive in the event that my current internal drive crashes. I would just then have to swap the drives out. I created the external bootable drive using DYNEX SATA Hard drive enclosure.
    Photoshop General Discussion

    I searched around and found the answer. My question was to specific. Jim Olvera had the same problem and this was the solution with the help of Adobe Support.
    OS X Mavericks. I was able to resolve it after a chat discussion with Adobe support. It is indeed a permissions issue apparently, but not one that can be resolved with Disk Utility. I was able to change to another scratch disk by holding down "Command + Option" as I launched Photoshop, and that did it. Still can't use the previous disk as a scratch, though, even though permissions have been repaired.
    JO
    Thank you for your suggestion, but I could not even get to the point where "Photoshop" would even open up.
    Thank you everyone!

  • Java -version error: could not open`C:\xml_render\java\lib\amd64\jvm.cfg

    I updated my laptop to the latest recommended Java update. After installing, i tested out the install by doing a java -version. Instead of executing, i got the following error:
    Error: could not open `C:\xml_render\java\lib\amd64\jvm.cfg'
    i installed JRE under the C:\xml_render\java sub-directory. The Java installer did not create an amd64 sub-directory.
    Have tried to troubleshoot this for a few hours, could not figure out what points to `C:\xml_render\java\lib\amd64', so i would greatly appreciate some help.
    Here is version and environment info:
    Windows 7
    Installed 32-bit JRE
    java version: 1.6_38
    previously had 1.6_35, 32-bit, which i had uninstalled.

    This sounds like you already had Java installed, then installed a new one, but the old one is still in your PATH, or the Windows registry is pointing to the wrong one.
    follow the links...
    http://forum.java.sun.com/thread.jsp?forum=54&thread=184728
    http://java.sun.com/j2se/1.3/install-windows.html#Environment
    good luck!

  • [SOLVED]Pacman error: could not open file /var/.../portaudio

    Anyone got any insight?
    Any pacman or AUR-helper operation I try to do results in many repititions of this error.
    [marcus@ARCH ~]$ packer -Syu
    Password:
    :: Synchronizing package databases...
    core is up to date
    extra 450.4K 401.0K/s 00:00:01 [##########################################] 100%
    error: failed retrieving file 'community.db.tar.gz' from mirrors.easynews.com#####-------------] 68%
    community 372.7K 997.9K/s 00:00:00 [##########################################] 100%
    :: Starting full system upgrade...
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    [snip many repeats of same error]
    [marcus@ARCH ~]$ packer portaudio
    0 error: could not open file /desc: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    1 community/desc: 19_20071207-2error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    2 aur/haskell-portaudio 0.0.1-2
    Haskell bindings for the PortAudio library.
    3 aur/mingw32-portaudio 19_20071207-1
    A free, cross-platform, open source, audio I/O library (mingw32)
    4 aur/portaudio-svn 1384-3
    PortAudio is a free, cross platform, open-source, audio I/O library.
    5 aur/pyaudio 0.2.3-3
    Python bindings for PortAudio, the cross-platform audio I/O library
    6 aur/portaudio_v18 pa_snapshot_v18-3
    A free, cross-platform, open source, audio I/O library
    Type numbers to install. Separate each number with a space.
    Numbers: 1
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/depends: No such file or directory
    desc: package not found, searching for group...
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: 'desc:': not found in sync db
    Last edited by Skripka (2010-05-11 18:21:11)

    hokasch wrote:looks like that mirror has some problem, switch to another one for the time being
    That mirror does have a problem...but switching to a different mirror returns the same mystery local error.  PS-I haven't had portaudio installed on my system in at least 6 months, and pacman has started returning errors about it this morning
    Last edited by Skripka (2010-05-11 18:15:33)

  • [SOLVED] pacman error: could not open file /var/lib ...

    the actual error is
    error: could not open file /var/lib/pacman/sync/community/fonteditfs-1.2-2/desc: No such file or directory
    removing that folder fixed it. i dont know if it was a coding mistake or just my box did something stupid today :S
    any thoughts?
    Last edited by eldragon (2010-04-20 17:25:18)

    geniuz wrote:
    I don't know if this error occured during an update of right after you've invoked pacman, but in any way synchronizing pacman I think should fix the issue. This is something you might have tried before deleting the file, but then again I don't know when the error occured. If it occured immediately deleting the file would probably be the easiest solution. I would've done the same.
    If you've synchronized pacman after you've removed the file all should be well now, maybe something indeed went wrong during an update (maybe your mirror went down or something, you never know).
    yes, the error apperared right after syncing the databases. the update went as expected...

  • [Solved] error could not open file /var/lib/pacman/sync/core.db

    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    # pacman -Syuf
    I have also tried pacman -Syy with no luck.
    What more is there to do besides installing ubuntu?
    Last edited by johane (2012-08-11 08:22:07)

    johane wrote:
    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    Pacstrap was telling you it couldn't open a file, so you just deleted the entire directory tree? Did it appear to be downloading the database files correctly before this? Did you try running pacstrap again after you deleted everything?
    And then you tried to run pacman with the -f (force) option? What happened? "no luck" doesn't tell us anything.
    What more is there to do besides installing ubuntu?
    There are many things you can do. You can give us more information about what you did and what happened. Did you follow all the steps in the Beginners Guide up to the pacstrap step? Did you get any errors or warnings before that step? Are you sure you had a working network connection? Did you interrupt the pacstrap process at any time? Did you try running it again after you deleted /var/lib/pacman/sync?
    Did you check the sha1sum of the iso you downloaded before you put it on a usb stick?
    https://wiki.archlinux.org/index.php/Be … oaded_file
    How did you put it on the usb stick?
    When you got the error, did you do
    ls /var/lib/pacman/sync
    to see what (if anything) was there?
    Last edited by 2ManyDogs (2012-08-06 23:38:27)

Maybe you are looking for

  • Photoshop CS4 installs but won't run with Vista OS

    All, I have installed CS4 on Vista 64 and completed without any errors. I was able to bring up Bridge and go through it without any issues. However, when I try to run either CS4 or CS4 64 bit, it starts to load and says it has quit working, windows t

  • Dynamic PAT and Static NAT issue ASA 5515

    Hi All, Recently we migrated our network to ASA 5515, since we had configured nat pool overload on our existing router the users are able to translated their ip's outside. Right now my issue was when I use the existing NAT configured to our router in

  • When will SAP BusinessObjects Edge 3.2 be released to customer ?

    Hi, Is there anybody who has this information ? My Japanse customer needs to upgrade from 3.0 to 3.2 to use Data Services XI 3.2  for the new option "Data Alignment" in fixed-width file formats. 3.0 and 3.1 only supports "character data alignment" bu

  • Open MIME file..

    I need to open the htm file which is stored in MIME folder of my project. IWDWindow window = WDComponenetAPI.getWindowManager(). createExternalWindow("/src/mimes/Components/print.htm", "Test", false); window.open(). but it didnt work..can anyone help

  • Firefox will not download on my neoware m1000 windows xp embedded laptop

    Firefox will not correctly install on my neoware m100 notebook, os is windows xp embedded and citrix. i have tried downloading and received an error corrupted file message or it just ends at extracting files == This happened == Every time Firefox ope