Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: RE: Getting javac to see org.jdom.* in Win

Subject: RE: Getting javac to see org.jdom.* in Win

2007-08-19       - By Michael Kay

 Back
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: jdom-interest-bounces@(protected)
> [mailto:jdom-interest-bounces@(protected)] On Behalf Of hill0093@(protected)
> Sent: 19 August 2007 20:19
> To: jdom-interest@(protected)
> Subject: [jdom-interest] Getting javac to see org.jdom.* in Win
>
> 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 Baldwins 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)
> rhost.com


__ ____ ____ ____ ____ ____ ____ ____ ____ ____
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.