• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using windows 2000

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just got Win2000 and can't figure out how to compile my java files. Anyone remember how? I have been using windows 98 and just now got the upgrade to 2000. I am a little behind the times, sorry!!
jim
[This message has been edited by jim, valenta (edited September 30, 2001).]
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Should be exactly the same under W2K. Check your javac.exe is in your path.
Martin
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I went to the run box in w2000 and put in java then the file but it didnt run. Do I need the path or something??
jim
 
Martin Rennix
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exact error message are you getting? If it's "bad command or filename" then yes, you do need to set your system path
Martin
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Sorry it took so long to get back. I put the complete address in the run box which is in the start menu but it just brings up a frame with the folder that I typed in.
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If anybody is interested I used cmd in the run box to bring up a DOS prompt to run the JAVA
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In windows 2000 here is how you set your path and classpath.
Right click on My Computer and choose properties.
Then choose the Adcanced tab
Next click Environment Variables
In the System Variables, highlight the Path and choose Edit
Then append the path to you Java\Bin folder.
Next you need to add a ClassPath so choose New
In the Vairable Name Box, type classpath
in the variable value, type the path you need to specify.
That's it. OK all the way out and you are good to go. No need to restart the PC.

------------------
Happy Coding,
Gregg Bolinger
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gregg,
Hi. I did as you said I copied the system variable path but am not sure how to append it to the bin directory.
I added C:\jdk1.3.0_01 to the system variable and added a new classpath of the same (C:\jdk1.3.0_01)
Also, I have the path appended to my win98 application but It still wont work (C:\jdk1.4\bin)The java works but the javac, which is in the bin file, will not. It gives the bad command or file name error.

[This message has been edited by jim, valenta (edited October 05, 2001).]
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you reboot after you changed your environment path and classpath variables?

"Then append the path to you Java\Bin folder" means to append the path to <JAVA_HOME>\bin to your current path. For example, if your current path is
C:\;C:\WINNT;C:\java
it will be
C:\;C:\WINNT;C:\java;C:\jdk1.4.0\bin

[This message has been edited by Marilyn deQueiroz (edited October 05, 2001).]
 
jim, valenta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Yes, I appended it properly. I also rebooted. I made the class path the same as the path that I appended to the system variable.
jim
PS I got win2000 javac working by adding jdk1.3, 1.3.0_01 and jdk1.4.0. I had to load all 3. I did the dsme with win98 but the compiler still will not work.

[This message has been edited by jim, valenta (edited October 06, 2001).]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic