Java playing games with me

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Java playing games with me

Postby Slater » Wed Oct 05, 2005 9:48 pm

Before today, I would put in dos...
java <classname>

and the program would run.

Today, that no longer works and I have to type in
java -classpath . <classname>

this is for ALL my programs, written today and before today. Anyone know why this changed? I haven't updated Java or anything, and the version number when using "java -showversion" shows, appropriately, 1.5 (aka, 5.0)
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Warrior4Christ » Wed Oct 05, 2005 11:22 pm

I don't know why it would have changed, but you could add '.' to CLASSPATH.

EDIT: Unless you installed something Java related that messed up the CLASSPATH env var... I know Quicktime did this to me once.
Everywhere like such as, and MOES.

"Expect great things from God; attempt great things for God." - William Carey
User avatar
Warrior4Christ
 
Posts: 2045
Joined: Sat Aug 20, 2005 8:10 pm
Location: Carefully place an additional prawn on the barbecue

Postby Slater » Thu Oct 06, 2005 12:59 am

QUICKTIME

I did just update that because Firefox and Quicktime were at war with eachother

QUICKTIME

argh...
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Mr. SmartyPants » Thu Oct 06, 2005 12:25 pm

a number of things will mess up your classpath (happened to me before)

x__x its a pain to retype em all the time
User avatar
Mr. SmartyPants
 
Posts: 12541
Joined: Sat Aug 21, 2004 9:00 am

Postby Slater » Sat Oct 08, 2005 10:28 pm

so, is there an easy way I can fix it?
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Slater » Wed Nov 02, 2005 11:45 pm

bumping because I still haven't been able to fix this problem, even after uninstalling and reinstalling JDK and JRE, and it's really getting annoying.
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Mithrandir » Thu Nov 03, 2005 9:20 am

Hmm. Try googling for the "(windows version) current path variable". Last time I played with windows it was in autoexec.bat as a line that started with PATH= (IIRC).
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 180 guests