Where is the Real JAVAHOME?
Hello! I'm confused... I installed j2sdk1.4.1 in my D drive.. D:\j2sdk1.4.1 But when i take a look at my C drive under program files.. there is C:\program files\java\j2re1.4.1 Both includes \lib and \bin folders... Which of those two directories is the JAVAHOME? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: Where is the Real JAVAHOME?
j2sdk is the development kit and contains a _private_ jre whereas the _public_ jre is installed in the default folder. JAVAHOME should point to j2sdk. /Thomas Aris Javier [EMAIL PROTECTED] 16-07-2004 09:58 Besvar venligst til Tomcat Users List Til:Tomcat Users List [EMAIL PROTECTED] cc: Vedr.: Where is the Real JAVAHOME? Hello! I'm confused... I installed j2sdk1.4.1 in my D drive.. D:\j2sdk1.4.1 But when i take a look at my C drive under program files.. there is C:\program files\java\j2re1.4.1 Both includes \lib and \bin folders... Which of those two directories is the JAVAHOME? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT
Re: Where is the Real JAVAHOME?
Hello Aris, j2sdk is the full featured Java Development Kit including javac compiler, java interpreter, jdb Debugger , rmic and so on. j2re is the so called Java run time environment. This is like a somewhat slim JDK, which also provides you the Java interpreter, but NOT the compiler. With both version you may run java applications, but you may compile source code only with the jre. Since Tomcat needs the ability to compile JSP pages from source, the j2sdk is the better choice, because otherwise you will receive a ClassDefNot FoundError, when you try to request a JSP pages. Nevertheless, if you only run pre-compiled servlets and have no need for compile operation, jre may suffice also! regards, Thilo Hello! I'm confused... I installed j2sdk1.4.1 in my D drive.. D:\j2sdk1.4.1 But when i take a look at my C drive under program files.. there is C:\program files\java\j2re1.4.1 Both includes \lib and \bin folders... Which of those two directories is the JAVAHOME? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is the Real JAVAHOME?
sorry, i made an error: of course you may compile source only with the j2sdk NOT with the jre! s*** happens :-) Hello! I'm confused... I installed j2sdk1.4.1 in my D drive.. D:\j2sdk1.4.1 But when i take a look at my C drive under program files.. there is C:\program files\java\j2re1.4.1 Both includes \lib and \bin folders... Which of those two directories is the JAVAHOME? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where is the Real JAVAHOME?
So, presumably, in the general case, JAVAHOME would be d:\j2sdk1.4.1, because TomCat would find the compiler needed for JSPs. In the particular case of an installation that was already compiled, either j2sdk or j2re would work. And just to add to it, consider what happens when you upgrade. Every reference; server, IDE, whatever; to drive:\..\jxxVersion has to be changed, it takes a while, and if you miss one you're broken. While we generally develop in 1.4.2, we sometimes have need to for previous versions. Further, it won't be too long until there's 1.4.3 or 1.5. To reduce upgrade, and downgrade, difficulties, we use a generic directory, c:\java, and all appropriate environment variables and IDE settings, etc. refer to it. We install j2sdk into it's default directory and add a file named j2sdkWhateverVersion.bat. The batch file deletes all files in c:\java and copies it's own directory to c:\java. So changing versions becomes: C: \j2sdkWhateverVersion\j2sdkWhateverVersion.bat (rather than use a standard named batch file, such as switchJava.bat, we use one with the version name, so when we look in C:\java we see a file with the current version name.) -Original Message- From: Thilo Krawietz [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 04:05 To: Tomcat Users List Subject: Re: Where is the Real JAVAHOME? sorry, i made an error: of course you may compile source only with the j2sdk NOT with the jre! s*** happens :-) Hello! I'm confused... I installed j2sdk1.4.1 in my D drive.. D:\j2sdk1.4.1 But when i take a look at my C drive under program files.. there is C:\program files\java\j2re1.4.1 Both includes \lib and \bin folders... Which of those two directories is the JAVAHOME? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]