oData4j sample eclipse project - java

I have downlaoded oData4J jar files from odata.org and I intend to do a sample producer, within a basic web service.
I assumed that InMemoryProducerExample.java from http://code.google.com/p/odata4j/ will do the job and most probably it is.
My problem is that I have no clue which type of project to create (Eclipse Java), how to deploy and test this example.
Does anyone have such a start up hellow world tutorial for odata step by step, or an eclipse project which use InMemoryProducerExample.java from oData. I really need a starting point and I can see one online.
Thanks.

The easiest way to run the odata4j example is to simply checkout their project, and open it in eclipse.
If you don't have mercurial installed, install it from here.
checkout the latest odata4j code using this mercurial command,
hg clone https://code.google.com/p/odata4j/
Open the project in eclipse using the maven eclipse plugin. If you are using the latest version of eclipse, this will be installed already, it not you can install it from here.
In eclipse, go import->maven->Existing maven projects
Then select the directory where mercurial checked out odata4j.
When eclipse finishes importing the projects, you can find InMemoryProducerExample, and right click on it to run it as a java program. You can run any of the other examples in the same way.

Meanwhile, forks of odata4j which continued their lives are also available on GitHub, see https://github.com/odata4j/odata4j and my own https://github.com/vorburger/odata4j/ (which I am about to transfer to https://github.com/lukinf), which included some minor fixes for opening it in Eclipse.

Related

Use Scala on computer without internet connection

I am new in Scala, so sorry if the question is absolutely obvious.
I have an Eclipse Photon installed on my computer. Would like to edit Scala code and produce runnable jars. The tricky part is that I don't have internet access on my computer (Centos7).
I bear in mind two potential issues/questions:
Downloading the plugin manually: I know, that Scala IDE plugin for Eclipse enables running Scala code/producing jars (like https://medium.com/devilsadvocatediwakar/how-to-install-scala-plugins-in-eclipse-in-ubuntu-13e53ffe3f39). Installing it from the GUI is rather straight forward. Is it possible to download a plugin bundle manually (not from GUI), move it to target computer and finally install it?
Compiling code into jars: assume that the point 1 is done. SBT or Maven requires some dependencies (e.g. Yoda time, Spark libraries) to produce specific jars - does it cause, that all the dependencies shall be moved and installed manually also?
The answer was provided by the Luis Miguel Mejía Suárez in comments:
Yes you can. For installing a manual plugin - here you can find the
zip of the ScalaIDE - and finally, use the maven repository to search
and download the dependencies JARS... However, is this really your
personal computer? or some kind of deployment server? - Also, as an
ex-user of the ScalaIDE I would recommend you to try a different,
newer IDE. For example, I just switched the last week from Eclipse to
VSCode with metals.

Fitnesse Eclipse plugin - How to convert eclipse project to Fitnesse project

I am trying to use Fitnesse plugin available at:
http://fitnesse-eclipse.github.io/#intro
I have downloaded and installed the plugin in eclipse. I can see a new option 'FitNesse' on my tool bar and when I right-click on the project I can see the option of 'FitNesse->Open in Browser' as well. The thing which I am not able to get is that the user-guide mentions an option to convert the project to FitNesse Project. I do not get this option when I right-click on the project.
Is this something anyone else came across while using this plugin or am I the only one. Please help.
if you have the Open in Browser, it looks like you have already converted to a fitness project. what version of the plugin are you using?
it may be that you have installed the (https://code.google.com/p/fitnesse-editor/)

Start a java project which uses Jargon Libraries

We are trying to develop a java application for iRods(a middleware for Heterogeneous databases). To use the jargon API we need to use the Java Jargon API which is in this link . We are using Java for the first time and not aware of how to import the library in our project.
In the presentation the following steps are mentioned at the beginning
git clone https://github.com/DICE-UNC/jargon.git
mvn clean install -Dmaven.test.skip=true
But I want to expose those libraries in my new eclipse project. Any pointers regarding setting up those libraries for an exlipse project would be helpful.
You are asking for a quote of the Eclipse JDT docs. But I try to give you a hint on the matter.
When you have managed to install maven and got the build running, you will find a jargon-xxx.jar in your target folder.
Take that jar file and place it in your eclipse project and select "configure build path" - "add Jar". Select the jargon.jar file in your project folder, it is now on your classpath in the project.
Hint: If this is a professional project, you need to have someone on your team to setup a proper build environment for you, possibly using maven or some other tool that manages dependencies for you and is supported in your IDE. Otherwise you can only perform manual builds of your software, which will hinder your progress really soon. You should hire someone to guide you through the first steps and get you rolling.

How do I get IntelliJ to load my .rvmrc for a non-ruby based project?

I have a Grails project that depends on a couple of ruby gems being installed. All of our developers have RVM installed and thus we have an .rvmrc file in our project directory to switch to the appropriate ruby and gemset.
Is there a way to have IntelliJ automatically read the .rvmrc even though the project needs the SDK to be set to a JDK?
Note: I've looked at the IntelliJ ruby plugin and couldn't see a way to get it to load the .rvmrc but not be the only SDK.
It's not possible, please submit a detailed request with the use case.

Export Eclipse plugIn

I wrote my first eclipse plugin and I can export it by Export->deplyable plugin and fragments.
I'm looking for a way to export it as .jar file by command line or Ant file
(i want to add it to build proccess of some componenets)
i will appricate ant help with that!!
To do this, you will need to look into "Headless PDE Builds."
Take a look at the Eclipse PDE (Plug-in Development Environment), specifically the headless build (a.k.a., building without going through the IDE): http://www.eclipse.org/pde/pde-build/. Also, there is http://wiki.eclipse.org/PDE/Build.
Lars Vogel has some really good material on this subject from which I also learned (Thanks Lars!): http://www.vogella.de/articles/EclipsePDEBuild/article.html. As an additional note, his Eclipse RCP, Plugin, and OSGi development page has some really good articles as well: http://www.vogella.de/eclipse.html.
Also, if you would like to export for multiple platforms, be sure to download the delta pack for the version of Eclipse you are using (e.g., if using Eclipse 3.6.2, download the Eclipse Delta Pack version 3.6.2).
If you need to access any SVN repositories from within your scripts (e.g., Ant), use the SVN pde-build plugin at http://svn-pde-build.sourceforge.net/.
Lastly, run a web search containing items like "PDE headless build". There are several links to sites that cover PDE building, customizing, and execution.
Sorry for not having a detailed list of instructions but the above links should help get you on the right path.

Categories