How can I simply run "forminput" application in wicket example page using eclipse and tomcat - eclipse

I am new to wicket and dont know how to use mvn, i want to run; http://www.wicket-library.com/wicket-examples/forminput/?2 application. In the link there source codes, so how can i create project and call the jars, libraries and get work the project. Which steps should i follow. Thanks for your helps. Soso

I really think you need to start by learning Maven. It is really simple to learn the basics and it will help you for a big part of your future projects. The time you'll spend learning Maven will allow you to understand your future framework and model your projects the right way. I think it requires less time to understand Maven than a whole discussion here explaining how to run it properly in Eclipse.
Basically, all you will need to do is run mvn jetty:run in the folder of your clone of wicket-examples to get started. Once you got there, grab a tutorial or two explaining the basics of Maven in order to really get started.

Related

JAVA Project Import Difficulty

first off thanks for any help! I am relatively proficient at programming in languages like python, but that's not going to stop me from asking a dumb, and probably very basic question about JAVA
I am working on some satellite orbit research for graduate school, and I am using the maven compiled java project OREKIT. Information on OREKIT can be found here;https://www.orekit.org/site-orekit-9.2
I believe I have built the project correctly using the steps to import a maven project into eclipse, but I am having issues getting any of the included tutorial programs included to run. The first errors I get are "Error: Could not find or load main class" and then followed by the name of whichever tutorial script I'm attempting to run.
MY attempt at solutions, which have not worked are as follows: First I attempted to create an entirely different java project with a main class and import the scripts I wanted to run, but I think this created more problems than it solved. Secondly, in the OREKIT project folder which was created with the maven building, there is a src folder. I right clicked and set it as the source. It contains a "main" folder with various contents but still the errors persist.
I probably am asking something extremely simple, and googlable but I haven't figured out what to google or what to do to fix my problem. If anyone has some suggestions I would be extremely grateful!
Thanks a ton!

What is a good workflow for java with EJB, JSP, Servlet, and shared project, jQuery in eclipse/glassfish?

I am attempting to learn java EE by developing an app from scratch. What I have now is JSPs, EJBs, Servlets, jQuery script. I feel my progress is very slow right now.
I am afraid to consider JRebel-like tools at the moment.
Is there a step by step cycle I can follow to be more efficient?
When should I trigger the .reload file?
When should I delete/restart glassfish, when I modify: java, jsp, jsp fragment, dependent project?
Do I need to restart every time I modify a java file or only on major changes like add/remove class, add/remove method?
Do I need to run in debug mode every time so I can immediately see my changes on the fly?
Since your last comment, I think maybe I understand a little better what you're after.
I know you're looking for a glassfish solution, which I don't know very well, but if you're willing to work with other application servers, there are some good solutions for fast turnaround.
The JBoss IDE is free and integrates tightly with the JBoss Application Server. If you use the default directory layouts created by the Eclipse project wizards, turnaround for most changes is completely transparent and nearly simultaneous. I think you can find other IDEs with similar characteristics. (BTW - I don't use JRebel myself but hear very good reports from those I know who do.)

How to define my own "Dynamic Web Project" wizard?

Eclipse Indigo has a "Dynamic Web Project" wizard(File->New ->Other->Web->Dynamic Web Project)
I am not familiar with the plugin development, but I want to create a wizard like "Dynamic Web Project"? Can anyone tell me how to do that? Any tutorial step by step? more detailed more bettor.
Thank you!
If you want "to create a wizard like "Dynamic Web Project"", the Vogella's tutorial won't help much. And any other tutorial as well. Oh, yes, they will help a bit in understanding the process. And how to make pages. But the example primitive wizards will be of no practical use to you in creating the whole real wizard.
You need to get the "Dynamic Web Project" wizard source from plugins view. It is very probable you haven't imported these sources yet. Do it (file-import-plugin development - plugins and fragments ... And set import from repositories!). After that copy the sources of the named project into your project, change its "outer" name, as it shows itself and try if it runs. Make it run.
After that adapt it to your needs by small steps, checking if it continues to run and is doing what you want.
Don't try to understand everything you see there, but try to understand what you are changing.
Feel free to ask - I have managed the same task (with another wizard) just now and I do remember the process yet.
Here's a good tutorial on creating wizard in eclipse:
http://www.vogella.com/articles/EclipseWizards/article.html
go to the link:
http://www.vogella.com/articles/EclipsePlugIn/article.html

Eclipse : Using same output folder for different projects

Following is a question that is posted on http://dev.eclipse.org in April 2003. The original question is:
Hi all,
in eclipse i have created several java
projects representing different
modules for one web application. i'd
like to configure one output folder
for all of these projects. Any time i
build a subproject the content of the
output folder is deleted, so i loose
the classes of all other subprojects.
I think there must be a switch or
something like that to tell eclipse
not to clear the content of the output
folder when it builds a project - but
i just can't find it.
Thanks for your help!
Alex
I am trying to see if I could get a definitve answer for this question. I have tried to find out to see if this question has already been addressed and I was not able to find any except for the following answer:
Window-->Preferences-->Java-->Compiler-->Build Path
The above answer did not help me much.
Hmm... I think this approach will bring more trouble than it's worth. Sure it's a priori a quick and dirty fix to integrating your projects together but you are only pushing the problem forward. It is good practice to keep your modules as isolated as possible from each-other, trying to merge the compiled code in a single location is working against the way the IDE was designed and will only bring trouble.
I would recommend that you look into maven to build and package your modules. Then referencing them is just a matter of adding a declaration in the project that requires it and you are integrated. Of course you will need to learn it but it provides a good base of conventions that when followed yield almost effortless integration. Plus reusing some modules in another project becomes trivial so you gain in all fronts.
To answer the other question in the thread when they wish to make a tree of related projects it is possible though somewhat clumsy. Eclipse will always present projects as a flat list, however the folders can be arranged in a tree nonetheless. Just specify a custom location when creating a project or import the project from the sub-folder. Again here Maven can help a lot with it's concept of modules.
As eugener mentioned in his comment, there are plugins for maven that will make most of these tasks trivial. You may find all you are looking for just by exploring the gui, this said, reading the maven literature will give you good insight on how it works and what it can do for you.

Lift and Eclipse RCP Integration

I work on a fairly simple but large two-tier application that consists approximately 40 Eclipse RCP plugins. We have a new use case that is taking us to the web for a very small portion of this functionality. I'd like to prototype this using Lift. Clearly, I'm facing a few challenges.
Lift + OSGi. Can Lift get at OSGi bundles? Can it be packaged as an OSGi bundle itself and integrated into a web container?
Build System. We use the archaic Eclipse PDE build (read: Eclipse has no build system) with Cruise Control. Lift uses Maven.
Development Environment. This one I'm not sure anyone can help me with. I've tried to use the Scala plugin with Eclipse and it's still not ready. There are just too many impediments to make it useful. Saying that, I don't see this as a major issue because I can keep all the Lift code in one module, only referencing the Java code a very specific areas.
I'm wondering if anyone has tried anything similar to this and has any advice. Note that I won't be using any of the ORM stuff in Lift because all persistence is managed in the existing plugins behind an API. So, am I barking up the wrong tree? Is there something else I need to be aware of?
I could revert to simply using these instructions but I'd really like to take Lift for a spin because Java is... well... it's Java. :-(
There's thread in google groups about using lift as an OSGi bundle.
For the build system as far as I remember PDE sit's on top of ant, so you can use maven for building lift related stuff first and then call PDE's build.xml