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'm a noob at this but iv been practicing a lot of Java and doing stuff with data structures and what not but I have no idea how to start making actual windows applications... Can someone point me to where I can learn this?
What do you mean by windows applications?
If you mean an application with windows, in the sense that you want an application with a GUI, then you should check out the resources from Oracle on using Java Swing to start with. Other options include JavaFX or AWT.
It is worth noting that there are command line applications. There is no definition of an "application" as specifically something that has a GUI. If you don't know how to make even a small command-line-runnable program in Java, you definitely need to start at the very beginning of the Java tutorials. Here is the Oracle tutorial on basic compiling and running, which applies to Windows as well. The DOS shell commands can be run in Command Prompt.
If you mean specifically how to package Java applications for Microsoft Windows, you should look at how to make JAR files and batch files. Optionally, you can also take a look at this question on SO. Brian Kelly's answer is really complete and teaches you exactly how to make an easy-to-use executable and installer.
Related
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 3 years ago.
Improve this question
I want to create an RPM package for a java application. I have never done rpm packages and i still do not quite understand how to do it manually. Is there a software that can do this (or at least most of it) automatically ?. Currently if user wants to use application he/she has to download a tar.gz file, un-tar it and then run .sh file that takes care of the installation.
My dev workmachine is Windows ( don't bully me for that ! ) if that helps at all.
I have found THIS Software but i am not sure if its applicable to what i want to do. Please note that current project set up - is NON Maven
Any help appreciated
I use insall4j for this job. There is a ant task for creating installer (and launcher)
Some days ago, I found several softwares doing that on Sourceforge.net but one of them was just a graphical interface above RPM build tools, I needed to understand what to put into a spec file and in .rpmmacros... The other one seems too simple to do what I want. Currently, I'm trying to use Redline RPM pure Java library, you can use it with or without Ant if you want. I'm still trying to make it work as you can see here.
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 3 years ago.
Improve this question
I am looking for a library / framework that lets me develop Java UIs (e.g., for Windows) using the Android views, layouts and animations. Things like a message loop and AsyncTask would be a great bonus. I don't want to run an emulator but simply get a jar-file.
Unfortunately, my google-foo is insufficient for this task.
Kind regards,
Volker
The project IcedRobot has the goal to develop such a framework. But unfortunately it seems to be stuck - announced in 2011 and no updates for 2 years now.
I don't think there is and will have such thing. Be able running android view system requires not only the java file but lot other native library such as SurfaceFlinger.
This is not possible as Android java is not standard java and doesn't run on JavaVM but rather on DalvikVM.
Take a look at this question:
DalvikVM Vs JavaVM in Android?
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 6 years ago.
Improve this question
i was just wondering if anyone knew of a portable java IDE/Compiler? Something like an iPod but not so advanced, that let's you work with and compile java?
Just thought it would be a cool idea :P
This serves the purpose. We can compile the programs without requiring Java compiler on our machine.
There is an IDE for Android which supports this, see AIDE
Search for drJava. Is a pretty complex editor and includes a(n Eclipse) compiler.
Unfortunatelly, the project seems to be dead.
If you have an iOS device (iPhone, iPod touch or iPad) at hand, you can jailbreak it and install Java from Cydia. This gives you the compiler and the VM. However, it's old and limited to command line functionality.
You can use http://ideone.com/. This is a website for compiling and running java applications Here you can create an account and save all your example programs, which you can later refer from different location or even share it with others.
You can also practice other computer languages in it. It supports more than 40 programming languages.
Have you given any thought about using codenameone platform? http://www.codenameone.com/
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
How can i make a Java program which can update itself. I make this program for use within small team. I do not need any advanced features. I just need a simple and minimal solution.
Java Web Start is meant specifically for this. You ship one jnlp file, and java takes care of fetching the newest version from a server.
Apart from that, you can download updated classes and replace them at runtime.
What do you mean by self-updating ?
If you mean that it changes its behavior at runtime (which is rare), you could create code that writes java code, compiles it, and loads it from within a running program. I've seen that done.
The more common scenario is to have a core program with plug-ins, where the plug-ins themselves can be updated at runtime. The simplest way to do this is simply to use interfaces for these services and then load instantiations of these types at runtime. However, writing a fully robust plug-in framework is usually reinventing the wheel. There are many existing architectures such as OSGi.
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'm wondering if I can access to a Posix Message Queue in Java as I have an application that can't be modified and uses a message queue to talk to other processes.
Is there any api or package that do that?
I know that I can use JNI but I need to do this ASAP so no time to develop that.
Regards.
A bit of Googling found Posix for Java.
Take a look at JNA at GitHub (latest JavaDoc). Quoting the project's description:
JNA provides Java programs easy access
to native shared libraries (DLLs on
Windows) without writing anything but
Java code—no JNI or native code is
required. This functionality is
comparable to Windows' Platform/Invoke
and Python's ctypes. Access is dynamic
at runtime without code generation.
Several projects are using it, including IntelliJ IDEA, Cassandra, and Netbeans.