Java EE (J2EE) Tutorial for beginners Part3

preview_player
Показать описание
Java EE (J2EE) Tutorial for beginners Part3: Spring Framework + Spring Webflow + Spring Security + JPA (Hibernate) + JSF 2.0 (PrimeFaces) + Apache Maven 2 + Apache Tomcat + Subclipse + Oracle RDBMS + Eclipse IDE
Рекомендации по теме
Комментарии
Автор

For those who get error message when running mvn command, try these things, it worked for me

1. add MAVEN_HOME as a system variable not a user variable
2. verify if variable JAVA_HOME exists, if not, add it as a system variable and set the value to C:\Program Files\Java\jdk1.6...
3. append this string " %JAVA_HOME%\bin " to system variable PATH
4. add MAVEN_OPTS as a system variable and set value to -Xms256m -Xmx512m

afafaboutabit
Автор

Thanks .Preeti Rai for the path Command line code.
Worked great.

mykidsdad
Автор

If anyone is stuck with maven not working and struggling to edit the Environment Variables, here is what did it for me...
Extract maven into a folder within Program Files and then give that path as the variable value for MAVEN_HOME
also like someone else mentioned if it doesnt already exist, add a system variable JAVA_HOME and give as value the path for your jdk. And then add it to the Path variable in the same manner as you did the MAVEN_HOME so basically just add this to the end:

jakubnicewicz
Автор

You r simply the best m8, keep it up!

turjoable
Автор

Great Stuff so far loving it. Really appreciate your efforts!

lungolago
Автор

Hello Tazin. The reason of that could be that i already had maven used on this machine before. .m2 repository is created on the first attempt to install the maven project. You can go forward with tutorial and it should appear whenever you execute install goal, or you can create test maven project right now and execute install goal then check for this folder again, as shown in part8. If even then you can't find it, then probably you search in the wrong place.

arthurvin
Автор

For anyone that has an issue similar to mine. %JAVA_HOME%\bin did not exist in path but I had it as a variable already, so add it to Path, and then make sure to add %MAVEN_HOME%\bin as well.
In case nothing is working. Go to your maven directory and type in mvn --version just to make sure it's working there as a starting point. Best of luck =)

dennisllopis
Автор

To install the maven plugin in eclipse is a challenge due to version compatibility. So i suggest you all choose Eclipse Kepler instead of halio. Kepler has built-in maven integration. After spending 2 or 3 days i figured out this thing. It's the obvious to the eclipse kepler feature page on the download section.

WaqarJaved
Автор

I ran into the same issue. here is what I did:

1. Eclipse -> Help -> Install New Software
2. Add a new software site:
3. Name: slf4j
4. Url: fuin.org/p2-repository/
Expand "Maven osgi-bundles" and select "slf4j-api"
Click "Next" and follow the installation.
After the installation has completed (and Eclipse has been restarted) I was then able to install the maven plugin.

WaqarJaved
Автор

Hi ..are you going to upload more videos ..that would be helpful ...


rohit
Автор

Hi Arthur,

I have setup the MAVEN_HOME in Environment Variable but got error when I ran mvn in cmd prompt:

Error: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

Please help

MrGlennabuzo
Автор

Hi Arthur, Here is very basic questions. Why do we really need environmental variables?

om
Автор

Hi. Two more uploaded. I will keep uploading it till the very end of project.

arthurvin
Автор

My path is bugd, can you help me with the full correct path string? thk you.

totxinho
Автор

Sounds to me like an inconsistent versions of libraries in repository. This happened before. What versions of Eclipse you use?

arthurvin
Автор

Hi friends, after installing Maven successfully. Opening new project i am not able to see Maven project option.. please any body help me...

pratikmistry
Автор

I ve got a questions:

do we still have to specify the environment variable for the maven if we use the eclipse plugin?

BTW thanks for the video, good job.

kousha
Автор

HI Arthur, I got problem with install new software M2eclipse and link was correct as well.(M2e - Maven Intergration for Eclipse) and clicked the next. then got these top of dialogue box (x) The operation cannot be completed, in details mentioned and which is next msg.
thank you so much and be wait your advise ....

fromtibet
Автор

Thank god im using intelliJ just works out of the box :P

quidpanic
Автор

Great step by step tutorial thank you very much. When I tried to add the m2e I got the same error as "vinoth kumar" and "KenisPolanco" Please advise. Thanks

semsem
visit shbcf.ru