Java based opensource VNC application or library [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there any active Java remote desktop application including sourcecode or a library for integrating into Java applictions?
The problem is that ultravnc, realvnc and tightvnc are not available (opensource) for Java, just sometimes a viewer.
It should be in plain Java code so it runs on all platforms.
edit: It might not be possible to make it just with Java, but in times of better GPUs and CPUs it might be better to use some libraries which add support for multithreading, like CUDA, OpenCL and Rootbeer (https://github.com/pcpratts/rootbeer1)

Nobody ever tried to implement a VNC server in Java because Java has no (fast) API to examine the desktop for changes. If you can live with 1 fps or less, you can use the Robot API :-)
So all you can get is a VNC client/viewer. I experimented a bit with TightVNC because it's free and the sources are available.

I remember on a Java-Applet connectable to RealVNC, but it wasnt opensource, the compiled sources are obfuscated so i cant uncompile.
You may be able to ask for the Source.
Take a look at http://www.realvnc.com/products/vnc/documentation/4.0/win/java
Java is an high level programming language, VNC is programmed in Low-Level Programming language. You may be able to find a Solution with jni-combination of Java and any other low-level Programm!
But not in plain java.

Related

Making MATLAB Code Platform Independent [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a MATLAB code (including Simulink models) which I would like to make platform-independent, i.e., allowing them to run on web browsers and smartphone apps. Would coding it in Java be the best solution? And are there programs which can convert MATLAB code and Simulink models into another programming language easily so that I won't have to re-code everything out again? Thanks for your suggestions!
Short answer: You'll have to recode
Would coding it in Java be the best solution?
Probably not. I've found that java is hardly ever the best solution. It may be the easiest, but I doubt it's the best. But for web-browsers, AFAIK, you must render some part down to javascript (even if it's just a shim to fetch data running on a server), flash, silverlight*, or java*. For iphone, you need to do it in C, Objective-C, or C++. I think Android uses some kind of java-like/based language, but I don't know. I doubt Win Mobile 8 even has a JVM, but don't really know there.
* Few people like to leave these plugins open. Too easy to exploit and few sites use them.
And are there programs which can convert MATLAB code and Simulink models into another programming language easily so that I won't have to re-code everything out again?
Mathworks makes an m-code compiler, but you still need a lot of their libraries. It compiles for x86 under Windows and Linux. I think it supports a few other OS's, but all x86 unless they changed it around again. I guess you could try to get MCR working on a phone, but not in a web browser. Realtime Workshop renders simulink models to C, but not if they contain matlab function blocks (or some other blocks, I forget the full list). I hope you have a crap ton of cash, 'cause both those are expensive toolsets.

Swing-Library for Android? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know that Android uses Java but not a fully compatible runtime library. Creating UIs in Android is done completely different than for normal Desktop Java. Nevertheless that's a really stupid thing in my opinion, very much Java applications out there have to be rewritten for Android (instead of modified only slightly).
So my question: is there some kind of (3rd party) Swing-library available for Android? Means a Java-package that contains Swing-compatible classes so that an existing Swing-Application has to be modified only slightly? It of course can't be 100% compatible but modifying some things that do not exist on Android is much less work than rewriting the whole GUI-part...
There is no way you can use swing in android, because android is not based on JavaSE, while swing is. android uses a special java that is designed to run on DVM .
Even if their is no compatibility issue. Swing is used for desktop apps which differ in their UI completely from mobile apps.
So given the above points unfortunately you will have to rewrite the UI again for your software. but on the bright side, android's UI is very simple and fun to work with.
give it sometime and good luck!
Edit:
Comparison between Java SE and Android's Java
CodeNameOne?
Supposed to be very similar to Swing.
Also, in my experience, GWT is somewhat similar to Swing.
Either of these will require a rewrite from Swing though.
There is no Swing on Android. You can always develop a JME application and run it via emulation, but that's as close as it gets. Unfortunately, in technology, things change all the time, so for programmers, it's a case of "adapt or die."
Unfortunately, as far as I know, Java Swing Desktop Apps can't run on Android (Dalvik VM), but the good news is: JavaFX as a successor to Swing GUI technology has already been ported to mobile and embedded platform (e.g. Android). If you're interested in this, go http://gluonhq.com/products/mobile/javafxports/ for details.

Starting new Android application [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am about to start new Android app considering that Java development is not my strongest side I'd like some advice on where to start. The question is not that much about Android API it's more about the right tools and code organisation.
Should I use template app like Android Bootstrap and are there any other better than that.
How should I organize my code so it makes sense while the app grow.
Any other libraries that might help?
The app would be for downloading music and it'd be free one. There would be a server API that will deliver the content.
In my opinion you should start with a blank project and try to learn Java and understand how the classes in Android work. Using a template is not the best way to learn programming because you can easily get confused and not understand what the code does.
You implement the classic 3-Tier architecture with packages for the Domain, Repository, Controller and User Interface. This way you can stay organized and easily improve on your app.
Read Android forums, documentation and see what libraries do you need to use.
Firstly get stronger on Java development, go through the Java SE tutorial. Then you can take a look at the Android Development Getting Started page.
I'd also recommend you to invest on some good programming book

Java - Mobile OS with a Java GUI and linux kernel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm working on a OS for smart-phones and its built in Java and I know you can't (without alot of work) run a Java application without a kernel at the back-end, so would it be possible to run the GUI with a very small Linux kernel?
You can get Android source and install the JAVA emulator, then remove all the google/android/unwanted services and poof! Your GUI is on the Android Kernel/OS !
A linux kernel would be a good choice but you're going to need more than just that. You're going to need some sort of X server to display the gui (and drivers for the graphics device on the phone). You're essentially going to have to port the linux kernel and all of the drivers to support the phone hardware, X server / framebuffer, AND chose a Java VM implementation to run.
What you're described is what has taken Android and a team of talented people several YEARS to achieve. If you want to do some low-level device type hacking / Java development maybe you should consider getting in Android kernel/OS development. Get a phone, unlock the bootloader, get root, and start hacking

Which is the prefered CGI technology? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to develop a CGI application that has to run under Windows and Linux (IIS and Apache)
What is the best technology to do that?
I would prefer Java, but I am not sure if there is a problem with Java in an IIS.
Any experiences?
Completely depends on your application what
What load are you expecting
How complex will it be.
Where will you store the data
How secure does it need to be
How skilled are you or your developers.
What languages are you familiar with.
For a simple web app its hard to beat Vanilla php, using the LAMP stack with sqlite. As php will let you do almost anthing almost anywhere you need to be disciplined about how you structure your code -- but otherwise its a good solid working environment.
At the other end of the scale are the J2EE behemoths Weblogic and Websphere. These are monsters in terms of complexity and learning curve but if you are planning on 100s of transactions per second, in a secure environment with bullet proof reliability -- and you have deep pockets -- nothing will beat it.
The only sure answer form you post is IIS, ActiveScript .NET is out of the picture if you want to deploy under *nix or anything other than windows.
For plain CGI, Java's startup time is going to be a killer when the process forks. It'll be frustrating even for the low loads you're expecting.
I would, honestly, recommend you use Python for this instead as it will have the right balance of startup / execution speed and "batteries included" features for CGI development.
Here's a link if you're intersted: http://docs.python.org/library/cgi.html
java and CGI is not a good match! If I really had to do a CGI then I would go wit Perl CGI module. Perl should work with IIS too, but I cannot confirm this.

Categories