Java Project created in Eclipse on Windows.How to run this in Ubuntu-Server? - eclipse

I wrote some programs for Oracle Service Instances using the SDK in Eclipse.I also included some Referenced Libraries in Eclipse Project.
Now I want to run those programs from that Eclipse Java Project on to differnt OS(Ubuntu-Server).
How can I do that? Help me doing this!

This question seems to be about how to run java code on Ubuntu, and is not specific to any Oracle SDKs.
In general, you should package the application as a jar in Eclipse, then move that jar to the Ubuntu server. Then run that jar from the command line on the Ubuntu server. For more info see this post.

Related

what i need to use eclipse 2022-09 server with WLS 11g (10.3.6 )

I'm supporting a legacy application that runs on WLS 10.3.6, and I'm building a development environment with Eclipse 2022-09. All good when importing the Maven project, even doing an mvn install via Eclipse, all good.
I have the problem when trying to "create" a server in the Servers tab. I look inside the server types folder, and I find Oracle, but I don't know how to get the plugin for WLS 11g (10.3.6).
Thanks for your help.
Cheers !
That's my IDE version and the Servers tab
Eclipse installation Details
When i define a new server, i need find WLS 11g 10.3.6
When do i select a project to deploy
Next...
Next...
Nothing to do...
thanks in advance

Eclipse Luna with JBoss Tools does not export libraries

I'm attempting to upgrade our environment to Eclipse Luna w/ JBoss Tools from our current Indigo instance. Most things are sorted well enough, but I'm running into a wall when deploying our application to a JBoss server within Eclipse.
As far as I can see, the lib/ directory of the .ear file generated contains none of the transitive dependencies from maven that we would normally expect to see, and as a result the application does not deploy or run correctly on the server. For clarity, we use the 'use workspace metadata' deployment option on the JBoss server within Eclipse.
By contrast, if I right click on the relevant project within Eclipse and say Export... .ear file, the resulting .ear contains all the .jars that I'd expect inside the lib/ folder (there's over 50 of these things, so it's pretty easy to spot the difference). Subsequently dropping the .ear into the deploy directory of JBoss and starting a server manually has the application working fine.
Has anyone ever encountered this sort of issue within JBoss Tools / Luna, and if so what steps were taken to try and remediate it?
Cheers for any help.
Dave.
EDIT: For what it's worth, this is a JBoss Enterprise Application Platform 5.x server instance, and we're using JBoss EAP 5.2

Spring Roo can't run with shortcut `Run as Server`

I have this SpringRoo repository I have just cloned and imported on my Eclipse workspace. The Eclipse I'm using now is a newly download Eclipse Standard 4.3.2. I have installed the WTP (3.5.2) and SpringSource (all of them) plugins. Also I have installed a new Apache Tomcat 7 on my terminal.
The problem is that after importing the SpringRoo project (via Maven) on the workspace and resolved some issues with pom.xml, I can't get to run the application because I can't see Run As Server option on the Run As menu. How could I get the project/eclipse to have this feature again?
Spring Roo doesn't run in a server ... you should read the reference guide and understand what is Roo.
Any way, you can "Run As ..." the applications you create with Roo, not Roo itself.

Trying to connect to Hadoop 2.0.0 Error : server ipc version 7 cannot communicate with client version 3 in eclipse

I need to connect to a unix system having Hadoop 2.0.0 database using Eclipse Juno on a Windows system.I tried adding an eclipse plug-in for an older version of Hadoop but when I add Map-Reduce Location, I get the following error :
server ipc version 7 cannot communicate with client version 3 in eclipse
As per some blog results through google, the version mismatch is causing the issue.
Can anyone help?
Please help me find the correct plugin or lead me to where I am going wrong.
Unless I add this plug-in I would not be able to coonect to the database..is there any workaround?
Thanks,
Hitz
Couple of things, Hadoop is not a database, it's an opensource framework for distributed computing. You can directly run MapReduce programs on Hadoop with out an eclipse plugin. Simply package the classes in to a Jar, copy the jar to the unix system and use the below command to run the jar.
hadoop jar <Jar Name> <Name of Main Class> <Input Dir> <Output Dir>
If the version of eclipse you have is not compatible with the version of Hadoop or your eclipse. Check the Link to build your plugin.

What steps are necessary to get Eclipse and a Java servlet container integrated on Ubuntu 9.10?

What's the easiest way for me to get Eclipse running with a Java servlet container on Ubuntu 9.10?
I've tried a number of things, hitting dead ends each time. The best setup would use Ubuntu packages as much as possible, not require running Eclipse as root, and be able to debug running servlets.
Dead ends so far include run-jetty-run, the Sysdeo Tomcat plugin, and Eclipse WTP with tomcat6.
A big part of the problem is that the Ubuntu tomcat6 installation is non-standard, splitting directories such that they're not all in TOMCAT_HOME. Eclipse is also non-standard, and the usual plugin installation methods don't work. I got close by installing the WTP through a PPA, but I stumbled when trying to get it to recognize tomcat.
Ubuntu recently includes a pretty full Eclipse package that you can install via Synaptic or such. But I prefer to download my own.
I download from the Eclipse download site. If I choose Eclipse IDE for Java EE Developers then I have server environments for all Web app containers already built in. If I set up one for Tomcat (in Eclipse), Eclipse will download and install Tomcat for me. It's quite convenient, although I sometimes have trouble finding Tomcat or its files. Eclipse squirrels them away somewhere.
The server setup menus become accessible to you once you create a Web project (not plain Java project).
You should "apt-get install sun-java6-jdk", download and use the Java EE version of Eclipse, and then create a dynamic web project. In the web project create a jsp page, and right click -> "Run -> Run on server" where you may then install a server connector.
Some connectors are included in Java EE, some must be downloaded. Choose the one corresponding to the server you have downloaded and unpacked, and point Eclipse to the directory.
If all succeedes, the JSP page should then show up in a browser served from the started server.