Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Java CLASSPATH | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
aioria1981

Ninji
Level: 20

Posts: 135/234
EXP: 36701
For next: 5738

Since: 07-20-05
From: Viña del Mar, Chile

Since last post: 5 days
Last activity: 5 days
Posted on 09-27-05 03:30 AM Link | Quote
Well, i'm trying to set the classpath in windows (2k to be more precise) in many ways, but javac doesn't even notice that i set a classpath for it. Here are the things i did:

  • open a cmd, and make sure javac is in the path (path=C:\j2sdk1.4.1_02\bin). Then i typed
    classpath=".;f:\TprodSW\nuevo\xercesImpl.jar;f:\TprodSW\nuevo\xercesSamples.jar;f:\TprodSW\nuevo\xml-apis.jar;f:\TprodSW\nuevo\xmlParserAPIs.jar"
  • Since that didn't work, i also tried this, when trying to compile the java source

    javac -classpath ".;f:\TprodSW\nuevo\xercesImpl.jar;f:\TprodSW\nuevo\xercesSamples.jar;f:\TprodSW\nuevo\xml-apis.jar;f:\TprodSW\nuevo\xmlParserAPIs.jar" Validator.java
  • But then again it fails. I know there's another aproach by setting the CLASSPATH environmental variable throgh control panel, system and such, but i've not administrative privileges. Don't ask me to ask for them. There's no way thet'll give it to me, since this is an University lab


I'm asking this so i don't have to upload the sources through ssh to a linux server with java to compile them. Do you have any idea what's happening guys ?
EDIT: I changed the pre to [i] to not use so much space (i need scrollbars, pm me anyone that knows how without using a css, a div style would be fine
EDIT 2: My signature (which was supposed to not exist) was messed, sorry
EDIT 3: WTF is the text area appearing in my post? It even appears in the editing textarea as html code (had to post without layout )
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7294/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-27-05 10:11 AM Link | Quote
It might just plain not let you change it without admin access. Is this a real environment variable like the kind you would see if you opened an ordinary command prompt and typed 'set'? If so, try the first one again, but add 'set' before it (like set classpath=".;f:\whatever").
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 3922/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 09-28-05 04:24 AM Link | Quote
then to make sure it is set, type

echo %CLASSPATH%
aioria1981

Ninji
Level: 20

Posts: 136/234
EXP: 36701
For next: 5738

Since: 07-20-05
From: Viña del Mar, Chile

Since last post: 5 days
Last activity: 5 days
Posted on 09-29-05 12:40 AM Link | Quote
Oops, i mistyped the first command. I actually typed set CLASSPATH... and i also checked the classpath with the echo %CLASSPATH% command, but it shows it as if it has been set ok (shows the whole classpath string), it's javac that doensn't recognize it. And here, in my home, where it does work (beacause i obviously have admin provileges), it doen't bother if it's a system environment variable or a user environment variable. The weirdest thing is that it recognizes the "." path in the classpath, otherwise it would complain about not finding the classes in the same directory as the source (or the actual directory). I forgot to test if it compiles some simple sources (i.e, only the ones that use java.Lang.*) without the classpath set. I think i'm beaten this time, thanks anyways guys
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Java CLASSPATH | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.012 seconds.