|
top
|
 Subject: RE: Java compiler Author: Ivan Pedruzzi Date: 17 Apr 2002 12:50 PM
|
Jayashree,
The JVM and the java compiler locate classes in the file system only if
they are there as .class files; if you have your classes stored in a jar
file you need to reference it directly. Take a look here for more
information http://java.sun.com/docs/books/tutorial/jar/index.html
Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com
> -----Original Message-----
> From: Jayashree Desale [mailto:jdesale@hotmail.com]
> Sent: Wednesday, April 17, 2002 12:46 PM
> To: ivan
> Subject: RE: Java compiler
>
>
>
> yes it worked, I have to include dxeserver.jar also.
> I don't understand why the compiler didn't find it in a
> classes directory.
> Do I have to include .jar files in a classpath?
>
> Jaya
>
> >From: "Ivan Pedruzzi"
> >To: "'Jayashree Desale'"
> >Subject: RE: Java compiler
> >Date: Wed, 17 Apr 2002 12:18:29 -0400
> >
> >
> >
> >Jayashree,
> >
> >As the command line shows
> >
> >c:\J2SDK_Forte\jdk1.4.0\bin\javac.exe -g -classpath
> >".";"C:\ARVA\exln\classes";".";"C:\ARVA\exln\classes"
> >"c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java"
> >
> >Look like you don't have XIS's jars in the classpath
> >You need to include the jar files direclty
> >
> >SET CLASSPATH=%CLASSPATH%;C:\ARVA\exln\classes\dxeserver.jar
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >Ivan Pedruzzi
> >eXcelon Corporation
> >http://www.stylusstudio.com
> >
> >
> >
> > > -----Original Message-----
> > > From: Jayashree Desale [mailto:jdesale@hotmail.com]
> > > Sent: Wednesday, April 17, 2002 11:42 AM
> > > To: ivan
> > > Subject: RE: Java compiler
> > >
> > >
> > >
> > > I am using evaluation version 3.1 build 069q
> > >
> > >
> > > Output window contains:
> > > Compiling...
> > > WebQueryLoader.java
> > > c:\J2SDK_Forte\jdk1.4.0\bin\javac.exe -g -classpath
> > > ".";"C:\ARVA\exln\classes";".";"C:\ARVA\exln\classes"
> > > "c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java"
> > >
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :3: package
> > > com.exln.dxe does not exist
> > > import com.exln.dxe.*;
> > > ^ c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :4: package
> > > com.exln.dxe.filesystem does not exist
> > > import com.exln.dxe.filesystem.*;
> > > ^ c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :5: package
> > > com.exln.dxe.client does not exist
> > > import com.exln.dxe.client.*;
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :7: package
> > > com.exln.dxe.servlet does not exist
> > > import com.exln.dxe.servlet.*;
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :50: cannot
> > > resolve symbol
> > > symbol : class Directory
> > > location: class WebQueryLoader
> > >
> > > public static void loadDocument(Directory d, String fileName,
> > > String
> > > sourceFileName) {
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :15: cannot
> > > resolve symbol
> > >
> > > symbol : class Session
> > > location: class WebQueryLoader
> > > Session s = null;
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :17: cannot
> > > resolve symbol
> > > symbol : variable XlnClientSessionFactory
> > > location: class WebQueryLoader
> > > s = XlnClientSessionFactory.getSession();
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :27: cannot
> > > resolve symbol
> > > symbol : class XMLStore
> > > location: class WebQueryLoader
> > > XMLStore theStore = s.getXMLStore("xmlstore1");
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :39: cannot
> > > resolve symbol
> > > symbol : class Directory
> > > location: class WebQueryLoader
> > > Directory rootDir = null;
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :51: cannot
> > > resolve symbol
> > > symbol : class FileSystemObject
> > > location: class WebQueryLoader
> > > FileSystemObject fso = d.getFile(fileName);
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :54: cannot
> > > resolve symbol
> > > symbol : class XMLDocument
> > > location: class WebQueryLoader
> > > XMLDocument doc =
> > > d.createXMLDocument(fileName);
> > > ^
> > > c:\ARVA\eXcelon2\java\webquery\excelon\src\WebQueryLoader.java
> > > :55: cannot
> > > resolve symbol
> > > symbol : class XlnOutputStream
> > > location: class WebQueryLoader
> > > XlnOutputStream outStream =
> > > doc.getOutputStream();
> > > ^
> > > 12 errors
> > >
> > >
> > > >From: "Ivan Pedruzzi"
> > > >To:
> > > >Subject: RE: Java compiler
> > > >Date: Wed, 17 Apr 2002 11:28:49 -0400
> > > >
> > > >
> > > >What Stylus version are you running ?
> > > >
> > > >Could send me :
> > > >- your system class path
> > > >- tools->options->java virtual machine->ClassPath
> > > >- the Output window content after the compilation
> > > >
> > > >
> > > >
> > > >Ivan Pedruzzi
> > > >eXcelon Corporation
> > > >http://www.stylusstudio.com
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: stylus-studio-tech Listmanager [mailto:listmanager]
> > > > > Sent: Wednesday, April 17, 2002 11:22 AM
> > > > > To: Recipients of 'stylus-studio-tech' suppressed
> > > > > Subject: RE: Java compiler
> > > > >
> > > > >
> > > > > From: "Jayashree Desale"
> > > > >
> > > > > Thanks Ivan,
> > > > >
> > > > > Yes I do have a $(classpath) macro defined which
> includes path
> > > > > something like: C:\ARVA\exln\classes
> > > > >
> > > > > It still doesn't find it.
> > > > >
> > > > > Jaya
> > > > >
> > > > >
> > > > >
> > > > > To reply: mailto:stylus-studio-tech.4978@edn.exceloncorp.com
> > > > > To start a new topic:
> > > mailto:stylus-studio-tech@edn.exceloncorp.com
> > > > > To login:
> > > http://edn.exceloncorp.com/~SSDN
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Chat with friends online, try MSN Messenger:
> > > http://messenger.msn.com
> > >
> > >
> >
>
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
|
|
|