Have you tried to export JAVA_HOME, before you compile? Also make sure to leave off last / in JAVA_HOME path.
Example export JAVA_HOME=/usr/lib/"your j2sdk1.5-sun dir" Network/Systems Administrator ALC 3305 N. 3rd St. Suite 301 Abilene, Texas 79603 (325)672-7081 x4 fax (325)672-7082 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 9:15 AM To: [email protected] Subject: DSpace-tech Digest, Vol 21, Issue 40 Send DSpace-tech mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dspace-tech or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of DSpace-tech digest..." Today's Topics: 1. Re: DSpace 1.5 - mvn package trouble (Chad Hansen) 2. Re: DSpace 1.5 - mvn package trouble (Robin Taylor) 3. Re: DSpace 1.5 - mvn package trouble (Chad Hansen) 4. Re: DSpace 1.5 - mvn package trouble (Robin Taylor) 5. Re: DSpace 1.5 - mvn package trouble (Chad Hansen) ---------------------------------------------------------------------- Message: 1 Date: Tue, 15 Jan 2008 07:39:45 -0700 From: Chad Hansen <[EMAIL PROTECTED]> Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble To: "Stuart Lewis [sdl]" <[EMAIL PROTECTED]>, "[email protected]" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" I am currently working with the IT department for my area to try and track down the problem. When I run java -version I get the following: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled) J9VM - 20071004_14218_lHdSMR JIT - 20070820_1846ifx1_r8 GC - 200708_10) JCL - 20071025 I looked at the JAVA_HOME environment variable which was pointing to the old 1.4. However, after changing that to (what I thought was the new one) I got the following after running mvn package: [INFO] Compilation failure Unable to locate the Javac Compiler in: /usr/lib/jvm/java-1_5_0-ibm-1.5.0_sr6/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Am I doing something wrong? --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Stuart Lewis [sdl] [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 12:47 AM To: Chad Hansen; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble Hi Chad, >> I upgraded to Java 1.5 and am getting the exact same results as before. >> >> Is there any more information I can find and provide in order to help track >> down the cause? > > Could you run 'javac -version' just to confirm your system is picking up the > new 1.5, rather than the old 1.4 JDK? Also check your JAVA_HOME environment variable points to the new version. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _________________________________________________________________ ------------------------------ Message: 2 Date: Tue, 15 Jan 2008 14:49:36 -0000 From: "Robin Taylor" <[EMAIL PROTECTED]> Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble To: "'Chad Hansen'" <[EMAIL PROTECTED]>, "'Stuart Lewis [sdl]'" <[EMAIL PROTECTED]>, <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" I'm afraid you are just a victim of Java on Windows. There are almost certainly some entries in your Windows Registry that still refer to 1.4. I have been through exactly the same scenario. Eventually I had to uninstall everything and remove any registry entries referring to java (can't remember how you do this), and then start again. None of this should be neccesary, but it is. What can we do ! Cheers, Robin. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chad Hansen Sent: 15 January 2008 14:40 To: Stuart Lewis [sdl]; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble I am currently working with the IT department for my area to try and track down the problem. When I run java -version I get the following: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled) J9VM - 20071004_14218_lHdSMR JIT - 20070820_1846ifx1_r8 GC - 200708_10) JCL - 20071025 I looked at the JAVA_HOME environment variable which was pointing to the old 1.4. However, after changing that to (what I thought was the new one) I got the following after running mvn package: [INFO] Compilation failure Unable to locate the Javac Compiler in: /usr/lib/jvm/java-1_5_0-ibm-1.5.0_sr6/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Am I doing something wrong? --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Stuart Lewis [sdl] [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 12:47 AM To: Chad Hansen; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble Hi Chad, >> I upgraded to Java 1.5 and am getting the exact same results as before. >> >> Is there any more information I can find and provide in order to help >> track down the cause? > > Could you run 'javac -version' just to confirm your system is picking > up the new 1.5, rather than the old 1.4 JDK? Also check your JAVA_HOME environment variable points to the new version. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _________________________________________________________________ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------ Message: 3 Date: Tue, 15 Jan 2008 07:51:29 -0700 From: Chad Hansen <[EMAIL PROTECTED]> Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "'Stuart Lewis [sdl]'" <[EMAIL PROTECTED]>, "[email protected]" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" I would be willing to bet that that was the problem. Except that I am on Linux. However, you raise a good point. I do not know exactly how IT has this box set up. I don't know what environment variables they have set up and what other things might be going on in the background. I am sorry to SPAM this list with these questions, because it is probably just something that IT could fix if they knew anything about Maven or DSpace. :) --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Robin Taylor [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 7:49 AM To: Chad Hansen; 'Stuart Lewis [sdl]'; [email protected] Subject: RE: [Dspace-tech] DSpace 1.5 - mvn package trouble I'm afraid you are just a victim of Java on Windows. There are almost certainly some entries in your Windows Registry that still refer to 1.4. I have been through exactly the same scenario. Eventually I had to uninstall everything and remove any registry entries referring to java (can't remember how you do this), and then start again. None of this should be neccesary, but it is. What can we do ! Cheers, Robin. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chad Hansen Sent: 15 January 2008 14:40 To: Stuart Lewis [sdl]; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble I am currently working with the IT department for my area to try and track down the problem. When I run java -version I get the following: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled) J9VM - 20071004_14218_lHdSMR JIT - 20070820_1846ifx1_r8 GC - 200708_10) JCL - 20071025 I looked at the JAVA_HOME environment variable which was pointing to the old 1.4. However, after changing that to (what I thought was the new one) I got the following after running mvn package: [INFO] Compilation failure Unable to locate the Javac Compiler in: /usr/lib/jvm/java-1_5_0-ibm-1.5.0_sr6/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Am I doing something wrong? --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Stuart Lewis [sdl] [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 12:47 AM To: Chad Hansen; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble Hi Chad, >> I upgraded to Java 1.5 and am getting the exact same results as before. >> >> Is there any more information I can find and provide in order to help >> track down the cause? > > Could you run 'javac -version' just to confirm your system is picking > up the new 1.5, rather than the old 1.4 JDK? Also check your JAVA_HOME environment variable points to the new version. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _________________________________________________________________ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------ Message: 4 Date: Tue, 15 Jan 2008 15:05:09 -0000 From: "Robin Taylor" <[EMAIL PROTECTED]> Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble To: "'Chad Hansen'" <[EMAIL PROTECTED]>, "'Stuart Lewis [sdl]'" <[EMAIL PROTECTED]>, <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Doh ! I should shut up at this point but I never did know better, the output from "version" suggest JAVA_HOME is pointing at a JRE rather than a JDK, which would be required to run mvn (or at least javac). Cheers, Robin. -----Original Message----- From: Chad Hansen [mailto:[EMAIL PROTECTED] Sent: 15 January 2008 14:51 To: [EMAIL PROTECTED]; 'Stuart Lewis [sdl]'; [email protected] Subject: RE: [Dspace-tech] DSpace 1.5 - mvn package trouble I would be willing to bet that that was the problem. Except that I am on Linux. However, you raise a good point. I do not know exactly how IT has this box set up. I don't know what environment variables they have set up and what other things might be going on in the background. I am sorry to SPAM this list with these questions, because it is probably just something that IT could fix if they knew anything about Maven or DSpace. :) --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Robin Taylor [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 7:49 AM To: Chad Hansen; 'Stuart Lewis [sdl]'; [email protected] Subject: RE: [Dspace-tech] DSpace 1.5 - mvn package trouble I'm afraid you are just a victim of Java on Windows. There are almost certainly some entries in your Windows Registry that still refer to 1.4. I have been through exactly the same scenario. Eventually I had to uninstall everything and remove any registry entries referring to java (can't remember how you do this), and then start again. None of this should be neccesary, but it is. What can we do ! Cheers, Robin. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chad Hansen Sent: 15 January 2008 14:40 To: Stuart Lewis [sdl]; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble I am currently working with the IT department for my area to try and track down the problem. When I run java -version I get the following: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled) J9VM - 20071004_14218_lHdSMR JIT - 20070820_1846ifx1_r8 GC - 200708_10) JCL - 20071025 I looked at the JAVA_HOME environment variable which was pointing to the old 1.4. However, after changing that to (what I thought was the new one) I got the following after running mvn package: [INFO] Compilation failure Unable to locate the Javac Compiler in: /usr/lib/jvm/java-1_5_0-ibm-1.5.0_sr6/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Am I doing something wrong? --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Stuart Lewis [sdl] [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 12:47 AM To: Chad Hansen; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble Hi Chad, >> I upgraded to Java 1.5 and am getting the exact same results as before. >> >> Is there any more information I can find and provide in order to help >> track down the cause? > > Could you run 'javac -version' just to confirm your system is picking > up the new 1.5, rather than the old 1.4 JDK? Also check your JAVA_HOME environment variable points to the new version. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _________________________________________________________________ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------ Message: 5 Date: Tue, 15 Jan 2008 08:13:26 -0700 From: Chad Hansen <[EMAIL PROTECTED]> Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "'Stuart Lewis [sdl]'" <[EMAIL PROTECTED]>, "[email protected]" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" That is exactly what I am thinking, but like I said IT knows how they have this machine set up and I can't seem to find the JDK on my own. I am currently waiting on them now. I will let you all know what I find out. Thanks for you suggestions and help so far. --- Thanks, Chad Hansen ________________________________________ From: Robin Taylor [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 8:05 AM To: Chad Hansen; 'Stuart Lewis [sdl]'; [email protected] Subject: RE: [Dspace-tech] DSpace 1.5 - mvn package trouble Doh ! I should shut up at this point but I never did know better, the output from "version" suggest JAVA_HOME is pointing at a JRE rather than a JDK, which would be required to run mvn (or at least javac). Cheers, Robin. -----Original Message----- From: Chad Hansen [mailto:[EMAIL PROTECTED] Sent: 15 January 2008 14:51 To: [EMAIL PROTECTED]; 'Stuart Lewis [sdl]'; [email protected] Subject: RE: [Dspace-tech] DSpace 1.5 - mvn package trouble I would be willing to bet that that was the problem. Except that I am on Linux. However, you raise a good point. I do not know exactly how IT has this box set up. I don't know what environment variables they have set up and what other things might be going on in the background. I am sorry to SPAM this list with these questions, because it is probably just something that IT could fix if they knew anything about Maven or DSpace. :) --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Robin Taylor [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 7:49 AM To: Chad Hansen; 'Stuart Lewis [sdl]'; [email protected] Subject: RE: [Dspace-tech] DSpace 1.5 - mvn package trouble I'm afraid you are just a victim of Java on Windows. There are almost certainly some entries in your Windows Registry that still refer to 1.4. I have been through exactly the same scenario. Eventually I had to uninstall everything and remove any registry entries referring to java (can't remember how you do this), and then start again. None of this should be neccesary, but it is. What can we do ! Cheers, Robin. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chad Hansen Sent: 15 January 2008 14:40 To: Stuart Lewis [sdl]; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble I am currently working with the IT department for my area to try and track down the problem. When I run java -version I get the following: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025 (SR6b)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled) J9VM - 20071004_14218_lHdSMR JIT - 20070820_1846ifx1_r8 GC - 200708_10) JCL - 20071025 I looked at the JAVA_HOME environment variable which was pointing to the old 1.4. However, after changing that to (what I thought was the new one) I got the following after running mvn package: [INFO] Compilation failure Unable to locate the Javac Compiler in: /usr/lib/jvm/java-1_5_0-ibm-1.5.0_sr6/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Am I doing something wrong? --- Thanks, Chad Hansen Web Programmer - Library Information Services Brigham Young University e: [EMAIL PROTECTED] p: 1-801-422-3904 ________________________________________ From: Stuart Lewis [sdl] [EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 12:47 AM To: Chad Hansen; [email protected] Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble Hi Chad, >> I upgraded to Java 1.5 and am getting the exact same results as before. >> >> Is there any more information I can find and provide in order to help >> track down the cause? > > Could you run 'javac -version' just to confirm your system is picking > up the new 1.5, rather than the old 1.4 JDK? Also check your JAVA_HOME environment variable points to the new version. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _________________________________________________________________ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech End of DSpace-tech Digest, Vol 21, Issue 40 ******************************************* ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

