It worked!
But then again it didn't.
According to IT they just upgraded the JRE and not the JDK, so as far as the
error I was getting before, it seems to work.
I am now, however, running into another error, after running mvn package (or
mvn clean package) I get the following error:
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error starting Sun's native2ascii:
sun.tools.native2ascii.Main
[INFO] ------------------------------------------------------------------------
[INFO] Trace
Error starting Sun's native2ascii:
at
org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:67)
at
org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.convert(DefaultNative2Ascii.java:54)
at
org.apache.tools.ant.taskdefs.optional.Native2Ascii.convert(Native2Ascii.java:268)
at
org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:227)
at
org.codehaus.mojo.native2ascii.Native2AsciiMojo.executeAnt(Native2AsciiMojo.java:155)
at
org.codehaus.mojo.native2ascii.Native2AsciiMojo.execute(Native2AsciiMojo.java:112)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)....
Any suggestions?
---
Thanks,
Chad Hansen
________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Chad Hansen [EMAIL
PROTECTED]
Sent: Tuesday, January 15, 2008 8:13 AM
To: [EMAIL PROTECTED]; 'Stuart Lewis [sdl]'; [email protected]
Subject: Re: [Dspace-tech] DSpace 1.5 - mvn package trouble
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
-------------------------------------------------------------------------
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