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
Related
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 5 years ago.
Improve this question
I want to develop an external PC application using Java and MsSQL/MySQL.
I want to share it with all people. But I have no idea about how to install MS SQL or MySQL automatically with my Application setup, without a normal manual database installation.
Or is there any other way to develop such an app using "Java + any database server"?
Or is there any best way to success this process with Java?
If you are programming in netbeans you need include the database within netbeans? Here is a guide on how to do this.
https://netbeans.org/kb/docs/ide/mysql.html
Also here is a second guide on Packaging and Distributing Java Desktop Applications
https://netbeans.org/kb/docs/java/javase-deploy.html
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 6 years ago.
Improve this question
What OS do they use for example and how to they boot up so quickly (compared to a raspberry pi)?
Currently, they are two option existing:
they are running a custom piece of software that support a jvm
they are running a minimum version of a linux , just what's enough to run the jvm, everything else is disabled / removed.
It's booting that fast because it has only the piece of code needed to run a minimal jvm, and everything else is disabled in opposition of the raspberry pi who has a complete kernel, with a lot of modules, a desktop environment, etc, ... to load.
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 8 years ago.
Improve this question
I have a PC (where a Java program is running), Bluetooth dongle and Android device (2.3. 6) and want to use PC microphone/headset/speakers to answer a call by Bluetooth. I give another question here, but seems we not understand each other. I not want to speak with PC by connected Android device, I want to answer to incoming calls by PC (use PC as Bluetooth headset or HFP headset or something like that). I find app in play.google.com that implemented such things here.
The simplest way would be to make the computer act as a Bluetooth Handsfree Kit, in fact it's already implemented in most OS with or without additional software.
In that case you don't actually need an android application since you can use the built-in HFP client.
If you want to implement the server yourself using Java then you could look at this :
http://today.java.net/pub/a/today/2004/07/27/bluetooth.html
You would also need to take a look at the Bluetooth Hands-Free Profile (HFP) protocol :
http://www.mcpc-jp.org/news/pdf/CCAP_Guideline_Ver10a.pdf
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.
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 4 years ago.
Improve this question
I'm trying to write a java application that accesses the usb ports to read from and write to a device connected through usb. The problem I face is that I don't know what exactly to use in java to do such a thing. I searched online and found something called JUSB but all the posts seem fairly old.
Currently I'm using the RXTX libraries but I sometimes run into some sync error. When I use C# to do the equivalent it requires far less code and I don't face any of the same sync error.
My question is, is there anything built into the latest version of the JRE I can use to access the usb ports (that is just as easy as the equivalent C# code)?
Been using usb4java for a year on cross platfom (Linux and Windows) and it works great.
See:
http://usb4java.org/
They are very active and have a very good javax USB front.
There is nothing equivalent to C#'s USB support in Java. Both jUSB and Java-USB are severely out-of-date and likely unusable for any serious application development.
If you want to implement a cross-platform USB application, really your best bet is to write an abstract JNI interface that talks to Linux, Mac and Windows native libraries that you'll have to write yourself. I'd look at LibUSB to handle Mac and Linux. Windows, as you've seen, is pretty straightforward. I just came off a year-long project that did just this, and unfortunately this is the only serious cross-platform solution. If you don't have to implement on Windows and your needs are limited, you may get by with one of the older Java libs (jUSB or Java-USB). Anything that needs to deploy on Win32/Win64 will need a native component.
You might want to have a look at usb4java - http://usb4java.org/index.html it appears to support Windows, Linux and Mac OS's and appears to be reasonably current at the time of posting. Is unfortunately under the LGPL so may not be suitable for commercial development.
See the jUSB or usb4java libraries.
The Java Communications API. This should provide similar functionality to the C# System.IO.Ports namespace.
If you're on a mac, USB's can be accessed with the /Volumes/ directory.
Example:
You want to write to a file in "Drive", so the filepath would be:
/Volumes/Drive/file.whatever
Not sure how it's accomplished on other platforms, but this is the simplest way I've found on a mac