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.
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
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 www.javasoft.com
is there any kit i should to install too??
thanks lot
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...
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:\>
Firstm thanks for replying;
sure, i have a book, but sometimes it isn't clear on a book.
i did all the instructions to the letter.
so i have this following lines:
C:\j2sdk1.4.0_01\bin>java -cp.hello
Unrecognized option: -cp.hello
Could not create the Java virtual machine.
hi,
i tired to compile my class "hello"
i have the following error.
C:\java\bin\examples>javac hello
'javac' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
i work on windows 2000, i just installed java j2re1.4.1_01
so i have this problem.
i saved my class hello in examples file.
C:\java\bin\examples>java hello
Error: could not open `C:\Program Files\Java\j2re1.4.1_01\lib\i386\jvm.cfg'
is it possible to work with java instead of javac??
C:\j2sdk1.4.0_01\bin>java hello
Exception in thread "main" java.lang.NoClassDefFoundError: hello
hi,
i saved my class "hello" in classpath :
c:\j2sdk1.4.0_01\bin
and i have the following error when i tried to compile it.
javac : invalid flag : hello
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info...
hi,
sorry to be late for the answer.
i still have the same problem, as i said i'm beginner on java.
please, would you describe to me the good version of java that you have on your computer, where did you take it from?,
and provide me some simple examples so i worked with.
thank you for replying.
here you re:
public class hello
{
public static void main (string[] args)
{
system.out.println("bonjour de Reda");
}
}
i saved it in c:\tomcat\lib
hi, to maxpower, please would you explain more your message:
classpath can be set under control panel on windows. add a variable (if not there) called CLASSPATH and add the value to point to this directory. For instance, I use servlets.jar (comes with tomcat) for my app, so I have this classpath...
hi,
i checked out that java was well installed with all packages:
i have this classpath: c:\tank\binso, i tried to compile this:
c:\tank\bin\javac casting.java
i have the following error:
error: cannot read : casting.java
hi,
would explain to me this"javac needs a .java file as argument, ie javac Hello.java
Also, make sure the path and classpath are correct".
sorry, i'm beginner on java,
what does it mean classpath,?
where i can find it??
sincerly salutations.
hi,
i install j2sdk-1_3_1_08 window-i 586 on win 2000.
i tried to compile my program on MSDOC but it doesn't work, please help:
exception in thread "main" java.lang.noclassdeffounderror:hello
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.