![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
You may want to investigate the "extends" keyword.
On Windows, to easily edit PATH, right click My Computer, Properties, Advanced, Environment Variables, click PATH in the System Variables section, click edit, and add your java bin. Make sure that it is seperated from other paths by semicolons.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#12 |
|
Expert Programmer
|
i did that with the path variable.. at the start and at the end... neither worked!
i know about the extends command... just didnt figure i had to use it lol.
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#13 |
|
Expert Programmer
|
[php]
public class Beverage { public static void main(String args[]) { HotDrink hd=new HotDrink(); ColdDrink cd=new ColdDrink(); } } public class HotDrink extends Beverage { } public class ColdDrink extends Beverage { Beer br=new Beer(); } public class Beer extends ColdDrink { } [/php]
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#14 |
|
Sexy Programmer
|
for Windows XP: go to Control Panel, Performance and Maintenance, System, then click on the Advanced tab, then all the way on the bottom, Environment Variables and set it!
![]()
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#15 |
|
Expert Programmer
|
omg!!! i know how to EDIT the vairalbessf[asdfjasdlkfjasd IT DOESn'T WORK
EDIT: i apologize i have anger problems...
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#16 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
At the risk of being redundant, how are you using your modified PATH variable? By opening up a command window and typing in "javac Beverage" ?
|
|
|
|
|
|
#17 | |
|
Sexy Programmer
|
Quote:
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
|
#18 |
|
Expert Programmer
|
that is exactly how im using it
javac beverage.java java beverage besides that... when the path variable is operational i should be able to type javac solo and get a list of help commands
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#19 |
|
Programmer
|
Path:
C:\Program Files\ActivCard\ActivCard Gold\resources;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\IM;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\;C:\Program Files\Common Files\Adaptec Shared\System;C:\j2sdk1.4.2_10\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\ CLASSPATH: .;C:\j2sdk1.4.2_10\lib;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip Here are my PATH and CLASSPATH variables ....sorry the first is so long, but you can see in both how I have mine setup. Note the .; that starts CLASSPATH. That may help....hope it does. JD |
|
|
|
|
|
#20 |
|
Expert Programmer
|
thanks im at school so i took a look at the one im using... apparently i was using the wrong path.
@King: was that class set up correct? more ideas? i want to enhance my skills!
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|