Adam, Correct, you should be pointing JAVA_HOME at the JDK rather than the JRE.
One way to do this is to modify your ~/.profile settings (for the user under which DSpace is installed) and add: #Base path of Java export JAVA_HOME="/usr/lib/jvm/java-6-sun" (Of course, the path above may vary -- this is an older path based on Java 6 + Ubuntu 10.04) After saving that file, run: source ~/.profile This will reload that file with the new setting for JAVA_HOME. - Tim On 2/20/2012 8:41 PM, Adam Fullerton wrote: > Good Evening All, > > I now have the correct version of Java on my Ubuntu Laptop. When I run > Java -version I get this response: > > java version 1.7.0_03 > Java(TM) SE Runtime Environment (build 1.7.0_03-b04) > Java HotSpot(TM) Server VM (build 22.1-b02, mixed mode) > > Now when I run the command "mvn -U package" as it says too in this > document > https://wiki.duraspace.org/display/DSPACE/Installing+DSpace+1.7+on+Ubuntu I > get t his error: > Error: JAVA_HOME is not defined correctly. > We cannot execute /usr/local/java/jre1.7.0/bin/java > > It is to my understanding that the problem is that I need to be > directing Java Home to the JDK file which I do have...I have install > both JRE and JDK. How do I do this? > > Thank you for your time > > Adam Fullerton, MLIS > Electronic/Technical Services Librarian & > Assistant Professor > Morningside College > 1501 Morningside Ave > Sioux City, IA 51106 > > Phone: 712-274-5247 > Fax: 712-274-5224 attn: Fullerton > Email: [email protected] <mailto:[email protected]> > > Being a librarian is not a job...it's a lifestyle. > > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

