Re: setting up JAVA_HOME variable

2002-12-18 Thread Walter G. da Cruz
Depending on your Linux distribution, you need to add this line into your profile: export JAVA_HOME=/opt/java/jdk (if you installed java initially in /opt/java/jdk, your case might be different) If you are using RedHat and want to setup java globally, add that line into /etc/profile file. I

Re: setting up JAVA_HOME variable

2002-12-18 Thread Glenn Holmer
Paul Tremblay wrote: Reply-To: I would like to set install fop and need to know how to set up the variable JAVA_HOME. Specifically, the directions state: You have to set the enviroment variable JAVA_HOME. It must point to your local JDK root directory. Can anyone tell me how to do this? As r

Re: setting up JAVA_HOME variable

2002-12-18 Thread Vincent S. Cojot
Hi all, Just a quick follow-up on this issue, on RedHat systems (from 6.x and up) it is usually better to create a file under /etc/profile.d/ (name it "java_env.sh", the .sh suffix is important ) than to edit /etc/profile. /etc/profile is a system file included in RedHat's packages. Putting your

Problen with compilations

2002-12-18 Thread mdre
Hi all! I am trying to write a java program but I have problems with the compilation. The javac don't find the jar or class archives that I need. I try to compile the following code: import SQLRConnection; public class MyClass { public static void main() { //

RE: Problen with compilations

2002-12-18 Thread Girard, Yvan
Hi, You probably a Java newbie ;-) Two possibilities to solve your problem: 1- The import statement require the fully qualified classname. Its usually someting like com.sun.subpacakge.MyClass. In your case SQLRConnection is not the full classname. Look in the javadoc API or in the pacakge state

RE: Problen with compilations

2002-12-18 Thread mdre
Thank for answer!!! I also try this and doesn't work: $ cat c.java public class c { public void c() { System.out.println("hola"); } } $javac c.java The c.class build ok $ cat MyClass.java //import SQLRConnection; import c; public class MyClass {

RE: Problen with compilations

2002-12-18 Thread Girard, Yvan
Your c class is in the same package (default one) as your class MyClass, then the import statement is not required. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 8:16 AM To: Girard, Yvan Cc: [EMAIL PROTECTED] Subject: RE: Problen