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
  
User name:
Password:
Reply:
 

UserPost
aioria1981
Posts: 136/234
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
neotransotaku
Posts: 3922/4016
then to make sure it is set, type

echo %CLASSPATH%
HyperLamer
Posts: 7294/8210
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").
aioria1981
Posts: 135/234
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 )
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.002 seconds.