Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Off-Topic-Archive > Help! My computer refuses to amend the java path.
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Richard Bruns is offline Richard Bruns
King
NC, USA
Nov 1999
time: 06:30
  Old Post 06-09-2003 06:19 Visit Richard Bruns's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Help! My computer refuses to amend the java path. Increase Your PM Length

Every time I try, it pretends that it has saved the changes, but it really hasn't. If I close the command prompt and open it again, I get the original path. This happened even when I tried overwriting the path rather than appending it. It is almost like something is always rewriting the path, no matter what I do. Needless to say, I can't run any java classes from batch files or the command prompt until this is fixed. Does anyone know what to do here? Thanks.

Attachment: java-mess.jpg
This has been downloaded 46 time(s).

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:30
  Old Post 06-09-2003 07:27
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Increase Your PM Length

Can't you use JBuilder (or whatever) to chage the path?

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:30
  Old Post 06-09-2003 07:35
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by reds4ever
Can't you use JBuilder (or whatever) to chage the path?


EDIT: sorry, drunk and didn't read the question properly

St Leo is offline St Leo
King of Scenario League
Member of the Apolyton Social Democratic Party
Jul 2005
time: 00:30
  Old Post 06-09-2003 07:44 Visit St Leo<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Enter the AD-FREE zone

In XP:

System Properties > Advanced > Environment Variables > System > Path > Edit

I recommend doing the actual editing in a text editor because the text box is tiny.

Yes, I do think they made it this difficult to find just to spite Java. This was much, much easier before XP.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:30
  Old Post 06-09-2003 07:44
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton buy from Amazon

I haven't counted, but perhaps your path is too long? IIRC, you can only have 128 characters worth of path stored.

You can also change the path in your autoexec with msconfig.

Richard Bruns is offline Richard Bruns
King
NC, USA
Nov 1999
time: 06:30
  Old Post 06-09-2003 20:30 Visit Richard Bruns's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

Thanks guys. I wiped out a couple of the Oracle paths and it saved the new path. Unfortunately, that did not solve the central problem. While I can run things through an IDE, I still cannot run anything from the command prompt or a batch file. It gives me the same error as before. I made sure that the path is right, and I can't figure out what else it might be.

Attachment: still busted.jpg
This has been downloaded 32 time(s).

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:30
  Old Post 06-09-2003 20:39
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton buy from Amazon

Maybe you need to set something else in the path?

Richard Bruns is offline Richard Bruns
King
NC, USA
Nov 1999
time: 06:30
  Old Post 06-09-2003 20:43 Visit Richard Bruns's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

There is a java.exe program in the C:\j2sdk1.4.2_01\bin folder. I got all of this to work in about 15 minutes in the computer lab, and we had to set the path manually on those computers too. What else might I need to put in the path?

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:30
  Old Post 06-09-2003 20:47
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Got spare money?

Do you need to specify an extension? Would it assume a ".class" extension if you supply none?

Richard Bruns is offline Richard Bruns
King
NC, USA
Nov 1999
time: 06:30
  Old Post 06-09-2003 23:00 Visit Richard Bruns's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

The java command interprets any period as a command to look in a subfolder. Asking to run "Psychiatrist.class" made it look for a class named "class" in a "Psychiatrist" folder. In all the labs and batch files I've seen, the .class extension is never typed.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:30
  Old Post 07-09-2003 16:38
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Found this on Sun's Java website

quote:

Error Explanation

Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp

If you receive this error, java cannot find your bytecode file, HelloWorldApp.class.

One of the places java tries to find your bytecode file is your current directory. So, if your bytecode file is in C:\java, you should change your current directory to that. To change your directory, type the following command at the prompt and press Enter:

cd c:\java

The prompt should change to C:\java>. If you enter dir at the prompt, you should see your .java and .class files. Now enter java HelloWorldApp again.

If you still have problems, you might have to change your CLASSPATH variable. To see if this is necessary, try "clobbering" the classpath with the following command:

set CLASSPATH=

Now enter java HelloWorldApp again. If the program works now, you'll have to change your CLASSPATH variable.

Richard Bruns is offline Richard Bruns
King
NC, USA
Nov 1999
time: 06:30
  Old Post 07-09-2003 21:21 Visit Richard Bruns's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Enter the AD-FREE zone

Clobbering the classpath worked. I changed it permanently in the Control panel, and now everything works right. I have no clue how the classpath got changed before. Thanks.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:30
  Old Post 07-09-2003 21:24
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Inflate your Upload Space

pchang is offline pchang
King
Cupertino?
Aug 1999
time: 05:30
  Old Post 08-09-2003 20:52
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Oracle Support Apolyton, buy Alpha Centauri

I noticed you had Oracle installed. The Oracle installer changes the Classpath. It thinks that Oracle Java is the version you want to run and overrides whatever is there.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:30.
Apolyton Time is 00:30.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0440 seconds (89.75% PHP - 10.25% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net