>>> Error: could not open `C:\Program Files\Java\j2re1.4.1_01\lib\i386\jvm.cfg'
This indicates that you JAVA_HOME does not point to the base directory of you SDK. Are you sure JAVA_HOME is set ? Does the directory exist. Can you see the jvm.cfg file ?
i'm sure having set java on my computer lot of times so as to be sure.
this my classpath: c:\j2sdk1.4.0_04\binand i have files : lib, jre, demo and others come with installation.
i have also class.hello seeing it in file bin
so, more explain:
i did c:\j2sdk1.4.0_01\bin\dir
then i saw class.hello
and
i did:
c:\j2sdk1.4.0_01\bin\java hello
and i have this error.
Exception in thread "main" java.lang.NoClassDefFoundError: hello
>>> Error: could not open `C:\Program Files\Java\j2re1.4.1_01\lib\i386\jvm.cfg'
This indicates that you JAVA_HOME does not point to the base directory of you SDK. Are you sure JAVA_HOME is set ? Does the directory exist. Can you see the jvm.cfg file ?
C:\j2sdk1.4.0_01\bin>java -cp.hello
Unrecognized option: -cp.hello
Could not create the Java virtual machine.
i have a question, when you install java from 'installing'
do you add something after installation, i mean some files or Kit.
thanks for replying
that's ok, i resolve the problem,
i didn't know java is very sensitive to space, gamma, etc.
i worked on oracle, VB(you have all the porprities you need).
but in java is too difficult if you ignore case or space.
thanks lot.
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.