Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 14th, 2006, 9:32 PM   #11
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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
Dameon is offline   Reply With Quote
Old Feb 14th, 2006, 9:40 PM   #12
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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
Kilo is offline   Reply With Quote
Old Feb 14th, 2006, 9:42 PM   #13
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
[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
Kilo is offline   Reply With Quote
Old Feb 14th, 2006, 10:59 PM   #14
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Old Feb 14th, 2006, 11:08 PM   #15
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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
Kilo is offline   Reply With Quote
Old Feb 15th, 2006, 5:28 AM   #16
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
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" ?
Arevos is offline   Reply With Quote
Old Feb 15th, 2006, 6:57 AM   #17
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Quote:
Originally Posted by Kilo
omg!!! i know how to EDIT the vairalbessf[asdfjasdlkfjasd IT DOESn'T WORK

EDIT: i apologize i have anger problems...
lol I know how it feels trust me!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 15th, 2006, 9:01 AM   #18
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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
Kilo is offline   Reply With Quote
Old Feb 15th, 2006, 9:28 AM   #19
JDStud6
Programmer
 
Join Date: Jan 2005
Location: Charleston, SC www.wareonearth.com
Posts: 57
Rep Power: 4 JDStud6 is on a distinguished road
Send a message via AIM to JDStud6
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
JDStud6 is offline   Reply With Quote
Old Feb 15th, 2006, 10:44 AM   #20
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
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
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:39 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC