|
-
Oct 22nd, 2004, 03:17 PM
#1
-
Oct 22nd, 2004, 09:53 PM
#2
Fanatic Member
Originally posted by manavo11
The code I have made (very advanced ):
Just got mine running.
I suggest you put the directory of your java exes to your Path Environment Variables. By this, you can javac, java on all directories you are in.
edit: Or just set your classpath to c:\java and simple java Hello.
Last edited by brown monkey; Oct 22nd, 2004 at 10:00 PM.
-
Oct 25th, 2004, 07:01 PM
#3
Usage:
java [options] classname
"c:\java\hello" is not the classname, it's the path of your class file with the .class stripped. That's different, very different.
Correct would be
java -classpath="%CLASSPATH%;c:\java\" hello
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 26th, 2004, 03:19 PM
#4
-
Oct 26th, 2004, 03:45 PM
#5
Dazed Member
I dont know what os you are running but since i am running win98 i just open the System Configuration Editor and change the AutoExec.bat file.
-
Oct 26th, 2004, 08:33 PM
#6
Fanatic Member
Originally posted by manavo11
And %CLASSPATH% being the enviromental variable? How do I set that? I create it myself?
I'm guessing you are using 2000, which I don't know. Hehehe. This is what I did in my XP time machine.
- Right click My Computer then Properties
- Advanced Tab
- Environment Variables
- System Variables then New
- Variable name: classpath, Variable value: c:\java;some_directory...
- Ok, Ok then Ok.
Hope this helps. If not, sorry.
-
Oct 27th, 2004, 03:55 AM
#7
-
Oct 29th, 2004, 05:03 PM
#8
Originally posted by brown monkey
I'm guessing you are using 2000, which I don't know. Hehehe. This is what I did in my XP time machine.
- Right click My Computer then Properties
- Advanced Tab
- Environment Variables
- System Variables then New
- Variable name: classpath, Variable value: c:\java;some_directory...
- Ok, Ok then Ok.
Hope this helps. If not, sorry.
Hmmm, is version 5 needed?
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.5' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
Has someone helped you? Then you can Rate their helpful post. 
-
Oct 29th, 2004, 08:58 PM
#9
Fanatic Member
I don't know if this helps but did you install the Java Runtime? You have the sdk 1.5 and you are using the Runtime 1.4. It requires the 1.5 Runtime, I guess.
-
Oct 30th, 2004, 02:36 PM
#10
-
Oct 30th, 2004, 03:55 PM
#11
Frenzied Member
What is your classpath environment variable set to? If you have already set it, and you think it's correct but it's still not running the program, you can usually add .;%classpath%.; at the begining of your classpath and it will work.
-
Nov 1st, 2004, 05:18 AM
#12
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|