Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-12-2004, 01:16 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2004
Posts: 5
Default java installation


I just got jdk1.3 from a friend and installed it but all the *.java files that i create need to be in the jdk1.3\bin directory to be compiled or executed. but in my computer center and in college i can have the java files anywhere in the hard drive and execute it for eg: when i type javac in my pc in c drive it says "bad command or filename" but in my college the program is compiled no matter where it is stored. please tell me how do i enable this feature in my pc.
johny is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-12-2004, 07:55 PM   #2 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

Your PATH environment is not set properly.... Check out the Environment Variables settings from System Properties.... your PATH should point to the bin directlry of JDK installation...

on win98 you may need to edit your autoexec.bat file instead...

on GNU/Linux, you'll have to edit your ~/.bashrc or the system wide /etc/profile file and make the PATH environment variable point to the jdk's bin directory
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 08-12-2004, 11:23 AM   #3 (permalink)
Apprentice
 
Join Date: Sep 2004
Location: Godless Savage Garden.
Posts: 61
Default Re: java installation

Quote:
Originally Posted by johny
I just got jdk1.3 from a friend and installed it but all the *.java files that i create need to be in the jdk1.3\bin directory to be compiled or executed. but in my computer center and in college i can have the java files anywhere in the hard drive and execute it for eg: when i type javac in my pc in c drive it says "bad command or filename" but in my college the program is compiled no matter where it is stored. please tell me how do i enable this feature in my pc.
Whats your OS? i hope in future you wud take care of this. Do mention OS u running and basic PC details b4 asking any related question.
now i assume you are running win XP (not *NIX, coz u have mentioned C drive Thank God for this much) ) NOw right click on My computer, goto properties and under Advance tab click Environment variables, in system variable box click PATH and click edit, now at the end on line enter ";" (without quotes) and now enter C:\jdk1.3\bin Click OK and you are done.

__________________
Bother no one. If someone bothers you, ask him to stop. If he does not stop, destroy him.
Visit: http://bodybuilding.name/
diab0lic666 is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Krow
- by clmlbx
- by clinton
- by Charan
- by icebags
- by ico
- by gohan89

Advertisement




All times are GMT +5.5. The time now is 11:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2