Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP TO SEDJ !!!!

Status
Not open for further replies.

josee411

Programmer
May 12, 2003
18
BE
HI,
i followed to the letter you instructions in your last message, this 's the result.

C:\>set JAVA_HOME=c:\j2sdk1.4.0_01

C:\>set CLASSPATH=%\jre\lib%

C:\>java -cp
Error: could not open `C:\Program Files\Java\j2re1.4.1_01\lib\i386\jvm.cfg'

C:\>
 
>>> 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

 
>>> c:\j2sdk1.4.0_01\bin\java hello

As I said before, this is a CLASSPATH issue.
Do

"java -cp . Hello"
 
i tried this:

C:\>java -cp.hello
Error: could not open `C:\Program Files\Java\j2re1.4.1_01\lib\i386\jvm.cfg

so, i have important question.
i installed java from is there any kit i should to install too??
thanks lot
 
>>> 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 ?
 
sorry to disturb you,
this's the last new:

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
 
>>> Unrecognized option: -cp.hello

Put spaces in between "cp" and "." ::
"java -cp . hello"

>>> i have a question, when you install java >>from 'installing'
>>do you add something after installation, i mean some >>files or Kit.

If you have downloaded the SDK (1.4 or whatever) from the sun site, you don't need any other packages or kits ( for standard stuff).

But you do need to set environment variables like JAVA_HOME, CLASSPATH and PATH.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top