Deploy Java application with Netbeans to remote OrangePi - java

I followed the tutorial on youtube how to deploy a Java app to remote RaspberryPi and tryed the same with the OrangePi. The problem I have is that I can't select the remote JVM from the Netbeans..
Here are some screen shoots:
When I try to select a Runtime platform I have only the default JDK1.8 which is installed on the local machine (Project Platform) and the Remote platform (OrangePI) is missing (I can't select it from the list).
I followed this video: https://www.youtube.com/watch?v=EXy5Ysp3yp4&t=301s
The only difference is that I'am using root as user...
regards
Ferguson

The problem was that on OrangePi was Java 1.7 and in Netbeans 1.8...

Related

Unable to install Eclipse for Java EE

I'm not able to install Eclipse for Java EE on my working machine. Eclipse for Java is already installed. I get with the installer also with the advanced mode, an error in the installation. I assume that this is due to some limitations of my working machine. Admin rights are used. Do you have any idea?
Thank you!

bluemix libstdc++.so.6: version `GLIBCXX_3.4.20' not found

My apps are web app projects (java liberty pack).
I want to run executables with java process builder in servlets but I am getting errors. That executables depends to GLIBC.
How can I solve them?
First project:
libstdc++.so.6: version `GLIBCXX_3.4.20' not found
Second Project:
/lib/libc.so.6: version `GLIBC_2.14' not found
Cloud Foundry supports "stacks" which define the operating system runtime your application will be deployed onto.
[10:04:11 ~]$ cf stacks
Getting stacks in org james.thomas#uk.ibm.com / space dev as james.thomas#uk.ibm.com...
OK
name description
lucid64 Ubuntu 10.04
seDEA private
cflinuxfs2 Ubuntu 14.04.2 trusty
Currently, IBM Bluemix is deploying applications onto the older Ubuntu 10.04 stack by default. This environment contains GLIBC 2.11.
You can specify which stack to deploy your application onto using the "-s" command line flag or setting this in the manifest.
Choosing cflinuxfs2 will use a more recent version of Ubuntu with an updated version of the glibc libraries.
This should hopefully work.

setting up java workspace in remote location

Forgive me for if its a dumb question.
I am new to java.
I want to set up my java workspace in a remote machine(server) and access the workspace from my desktop.
1) Is it required to have java installed on that remote machine?
2)While running the project whose computational resource(RAM) would be used i.e. my desktops or the remote servers'.
if you are using eclise as IDE for development or Any IDE you need to install JDK on computer that you work(server or client)so if you are working on remote server you need to install JDK on it
and
you should have a remote connection if you are in windows ,use Remote Desktop ,
second question
if you are using a server as working computer that computer takes RAM to compile and run Java
not your computer .
1) Is it required to have java installed on that remote machine?
Yes , of course you need it to be installed on the target computer you are accessing through remote
2) While running the project whose computational resource(RAM) would be use
While accessing jvm will use the RAM of the computer where it is being used , your pc doesnt get used only your network data usage would be used
Hope this helps!!

can't create new AWS java web project

I'm using Eclipse 4.2.1
under OSX 10.8.2.
In Eclipse > Preferences > Java > Installed JREs,
I have Java SE 6 installed.
I installed Amazon AWS SDK from the Eclipse Marketplace.
I'm trying to start a new AWS Java Web Project
and I get the following errors:
Unable to create new AWS Java web project.
One or more constraints have not been satisfied.
Dynamic Web Module 2.5 require Java 1.5 or newer.
but I have Java SE 1.6! Why?
Any ideas?
I installed Eclipse for Java EE instead of Eclipse generic and it solved the issue.
I had a similar problem with Windows 8.1 Pro. I tried a bunch of things, but I wasn't able to successfully deploy anything to AWS ElasticBeanstalk until I removed all existing versions of Java and then installed Java EE 7u45 win32 (previously was JEE 8, both 32 & 64 bit).
But here is what I did entirely:
Deleted existing workspace and created a new one.
Make sure that your AWS Toolkit Preferences are setup correctly: Window -> Preferences -> AWS Toolkit
Removed all existing versions of java.
Downloaded and installed Java EE 7u45 win32.
Made sure that my System Path and JAVA_HOME variables were set properly: Control Panel -> System and Security -> System -> Advanced System Settings -> Advanced -> Environmental Variables
Hope this helps :)
I installed Eclipse 4.3.2, then added AWS on top and I get the same error. Same with running Eclipse on Java 1.7.0_51 or Java 8 (b132).
I also get an error dialog saying "X does not exist" where X is my new project name. X was created but there is only a .project file and one file in .settings.
My error log contains:
Java Model Exception: Java Model Status [X does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:498)
at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:2309)
at org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo(JavaProject.java:1908)
at org.eclipse.jdt.internal.core.JavaProject.getRawClasspath(JavaProject.java:1930)
at com.amazonaws.eclipse.elasticbeanstalk.webproject.CreateNewAwsJavaWebProjectRunnable.findSdkClasspathEntry(CreateNewAwsJavaWebProjectRunnable.java:219)
at com.amazonaws.eclipse.elasticbeanstalk.webproject.CreateNewAwsJavaWebProjectRunnable.run(CreateNewAwsJavaWebProjectRunnable.java:191)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
org.eclipse.core.commands.ExecutionException: One or more constraints have not been satisfied.
at org.eclipse.wst.common.componentcore.internal.operation.FacetProjectCreationOperation.execute(FacetProjectCreationOperation.java:110)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:385)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:410)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:360)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:247)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:219)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:207)
at com.amazonaws.eclipse.elasticbeanstalk.webproject.CreateNewAwsJavaWebProjectRunnable.run(CreateNewAwsJavaWebProjectRunnable.java:150)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: One or more constraints have not been satisfied.
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:363)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:324)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:339)
at org.eclipse.wst.common.componentcore.internal.operation.FacetProjectCreationOperation.execute(FacetProjectCreationOperation.java:83)
... 10 more
Dynamic Web Module 2.5 requires Java 1.5 or newer.
Arg,

run a web project developed in Java run on both windows and Linux platform

I have a web project developed in java. I am using the Windows platform and accessing the project from the Windows machine itself. How can I make the project run on a Linux machine? I am using jboss server and deploying the project.
Regards
Java is Cross-Platform, MySQL also. You can have your application server running on one server and the database on another. You can even have your Appserver on Linux and your database on Windows and your client on MacOS.
If you run into any specific problem, please let us know, but everything should be transparent unless you wrote some very bad Java code ...
Java is a Cross-Platform language. Just deploy your JAR/WAR/EAR in a JBOSS running on a Linux Box.
Java can run on many platforms only if any platform specific coding is not done for example file separator are different in windows, linux and Mac.
You need Jboss for linux and deploy your web application it should just work fine.
Java can run on many plarforms including linux and windows. You can develop project anywhere and run on any server.
I suggest you, install a linux on virtualbox and deploy it on linux directly. Also you can try cruise control for deploy automatically.

Categories

Resources