Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: JAVA CLASS COMPILATION

Re: JAVA CLASS COMPILATION

From: Teresa Redmond <oracle_at_pixelmeow.com>
Date: Tue, 15 Jun 2004 12:43:05 -0400
Message-ID: <8297529734.20040615124305@pixelmeow.com>


Tuesday, June 15, 2004, 10:08:44 AM, you wrote:

> hI,
> I'm having problem in compiling java class.Can some one send any scripts or
> suggest?

Seema, I would need more information on what system you're running and the structure of your package (if any) and what operating system you are using.

For Windows, any version I have used, you have to have the Java SDK (software development kit) installed; the classpath set correctly (or set in the javac command); the environment variables set for Windows NT, 2000, and XP; and then you have to take into account the structure of the directories your java code is in.

If your java code is in "c:\java\code\code.java", and if in the code you have a line at the top that says "package code;", then at the command prompt you would make sure you are in "c:\java" and type "javac code.java" for a basic compile. If there is no "package" line, you would make sure you are in "c:\java\code" before you type "javac code.java". If you have any "import" statements, they must be in the correct relational path to the java file you are compiling.

This is pretty basic and from memory; I suggest you do some research on sun.java.com.

-- 
Teresa Redmond

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Jun 15 2004 - 11:40:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US