I'm new in Java and Hibernate as well. I'm following this tutorial # http://howtodoinjava.com/2014/09/03/hibernate-4-using-in-memory-database-with-hibernate/
I managed to compile the code and understood the concept as well. But the problem is that I don't know how to execute the code to debug some stuff. When I start app as java application in eclipse. I have a long list to of option. But I don't see my actual test class to run. So How to run it and debug this app? Also I tried this # https://gist.github.com/twasink/2881461. Same is issue. No idea how to run.
Please check the screen shoot of eclipse list while:-
There is a main() method in TestHibernate.java. Use it.
The tutorial that you are following is maven project.
Try creating a simple maven project in eclipse and move the required artifacts to thelocation
as specified in the screenshot in the tutorial.
It will be a good learning curve to you.
As a hint use archetype as maven-archetypes-quickstart while creating maven project.
Hope this helps.
Related
I initially created a plain Java project that followed the steps mentioned here and here but unfortunately, my project didn't work, I am getting this above error. I have not reached the step where it talks about integrating selenium.
Just to mention I used all the latest versions of the jar files as shown below.
I also got other various problems also, and to resolve them when I searched on the internet everyone was talking about the configuration inside the pom.xml file. But this file comes in the Maven project! so I converted my project to a Maven project. But that too didn't resolve my issues so I "disabled the Maven nature". No luck even after that.
currently, it is a Maven project but when I am following this step it is giving me the subject error.
This is how my package explorer look like:-
The trick is to start small with something working. And then after each change check if it still works. This will help you build an understanding of what each component and change does without overwhelming you.
Unfortunately you are following tutorials that do a whole lot at once. Try to break this down a bit. First learn about Maven, with plain Java and maybe a unit test. Then learn about how Eclipse works with Maven projects. Then use Cucumber with Maven, then add Selenium.
This may seem like a lot more work but it is faster because you'll only have to solve one problem at a time.
I don't have any tutorials for Maven or Eclipse but for Cucumber you use:
https://docs.cucumber.io/docs/guides/10-minute-tutorial/
I try to build and run a apache ignite example in binary package on Intelij idea IDE. When I run example, there are so many errors. please any one can help me to run a simple example ?
I have installed java python and maven on my laptop. I am very new to apache ignite and java. i follow to run example according to the instruction in official grid gain website(Ignite Quick Start Guide for Java) but still I couldn't run a even a example. please help me to find what is the correct way to do this?
This image is IDE with Errors:
I think the issue is Safe Mode. IDEA does not trust the build scripts (Maven configuration) of this project as a safety precaution.
This means it will not download the appropriate dependencies and apply the plugins specified therein, effectively not building the project.
If you trust the project and/or have verified that there's nothing malicious in the build script or its plugins, then you can disable safe mode by clicking "Trust project ..." in the banner on top of the editor window.
Please excuse a newbie such as I for this silly question.
I am trying to install QueryDSL in my Java project in Eclipse Mars to use it for SQL querying. I do not use Maven yet, and don't know how to use it, though it's definitely on my to learn list.
The QueryDSL page points to their GitHub repository, but it's not clear to me how to add it to my project. Please advise on how can I get the full list of JAR files to add to my Eclipse Java project, without using Maven. Thanks!
Go to querydsl.com and click "Downloads" under "Documentation".
Is there any manual on this? I can't find any.
What are necessary packages and where is their repo, what is the project structure and build process?
UPD the ultimate goal I'm trying to achieve is to debug Eclipse on Windows
Check these links
http://wiki.eclipse.org/Development_Resources
https://wiki.eclipse.org/Eclipse_Corner#Eclipse_Platform_Technical_Overview
https://wiki.eclipse.org/Platform_UI/How_to_Contribute#Setting_up_your_SDK
http://wiki.eclipse.org/Platform
There is a new tool called oomph Try this its easy to setup development environment. Check this video
Unable to comment so posting as answer
Please check this link should get you started
http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/srcIncludedBuildInstructions.html
I agree with the comment from #user3159253 . Cannot really understand the need to go through this trouble. Use RPM.
I am completely new to GAE and maybe this question could be quite trivial, anyway I present my case.
I followed the "Try Google App Engine Now" tutorial without any problems (I choose the java project and I use Chrome).
When I try to deploy the project on GAE something goes wrong, I can create the project on GAE but I don't know what to do next:
What command should I use to deploy?
Thanks
Assuming that you have been able to create your application and have been successful in running it locally, please follow the instructions over here for uploading your application.
https://developers.google.com/appengine/docs/java/tools/uploadinganapp#Uploading_the_App
Basically, you should do some configuration such as filling the project-ID at app.yaml.
Then you can use the terminal to change to your project directory, afterwards you can invoke Maven as 'mvn appengine:update'
You can follow the instructions at the following link:
https://cloud.google.com/appengine/docs/java/gettingstarted/uploading