  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: Getting javac to see org.jdom.* in Win | Subject: Getting javac to see org.jdom.* in Win 2007-08-19 - By hill0093@(protected)
Back I downloaded jdom-1 (See http://dom-1.ora-code.com).0.zip 09-Sep-2004 (See http://Sep-2004.ora-code.com) 19:09 3.7M When I compile Baldwin?s Svg17.java, it cannot find org.jdom package. My path includes both ;C:\jdom-1 (See http://dom-1.ora-code.com).0\build;C:\jdom-1 (See http://dom-1.ora-code.com).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 (See http://dom-1.ora-code.com).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@(protected)
|
|
 |