RE: Getting javac to see org.jdom.* in Win
"Michael Kay" <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <006601c7e29f$725eee90$6401a8c0@turtle> |
There's nothing wrong with your JAVA_HOME because java wouldn't be able to give you an error message if there were. Try using the same classpath and doing javap org.jdom.Document from the command line. If it doesn't work, then your classpath is wrong. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of [email protected] > Sent: 19 August 2007 20:19 > To: [email protected] > Subject: [jdom-interest] Getting javac to see org.jdom.* in Win > > I downloaded jdom-1.0.zip 09-Sep-2004 19:09 3.7M When I > compile Baldwins Svg17.java, it cannot find org.jdom package. > My path includes both ;C:\jdom-1.0\build;C:\jdom-1.0\build\jdom.jar > And for java the path has > C:\Program Files\Java\jdk1.6.0_02\bin > and the path works for javac on the command line. > > The readme.txt file in the jdom-1.0 directory says: > The only thing that you have to make sure of is that the "JAVA_HOME" > environment property is set to match the top level directory > containing the JVM you want to use. For example: > C:\set JAVA_HOME=C:\jdk1.2.2 > There is already an inconsistency because it says directory > containing the JVM but the example points it to the jdk. > they are two different things. > > So for my case I tried three different settings for JAVA_HOME > by the more permanent method using right click Computer, then > left click properties, advanced, environmental variables: > C:\Program Files\Java\jdk1.6.0_02 > C:\Program Files\Java\jre1.6.0_02 > C:\Program Files\Java > and none of them worked > It gives: > C:\awd\pp\j>javac Svg17.java > Svg17.java:23: package org.jdom does not exist import org.jdom.*; > > I erased everything jdom and downloaded again, unzipped. same result. > Then I ran build.bat and that was successful, but the > jdom.jar file was a slightly different size from the > downloaded one and no works. > > Please help me understand how to get it to see org.jdom.* (in > jdom.jar?) Are my environmental variables right? > Does Windows Vista make a difference? > > > _______________________________________________ > To control your jdom-interest membership: > http://www.jdom.org/mailman/options/jdom-interest/youraddr@you > rhost.com _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]