Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it even possible to start OpenVPN trough Java application? If it is possible what is the best way to do it so it's cross-platform and works on all platforms that have OpenVPN installed.
You can run openvpn with Java like this:
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("openvpn your_config.ovpn");
This will run openvpn via the command line. It is cross platform, too, as it will work on Mac, Linux and Windows.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it possible to have plugin of the project in eclipse which is build in visual studio as windows application?
No.
Eclipse is written in Java and runs on the JVM.
Visual studio is for .Net develpment on the CLR (and similar).
If you want to write an Eclipse plugin, Start here: http://www.vogella.com/tutorials/EclipsePlugin/article.html
Java isn't too hard to learn if you know C#.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to write a program to work with my usb port(windows).I don't know how to say this but this is how it should work.The program should run(that's should be the first thing [before virus guard ask whether this flash drive should scan]) when a flash drive or a external hard drive plugin to a usb port. I'm not talking about auto run.How can I do that.
You need to use Library called WinUSB on windows
https://msdn.microsoft.com/en-us/library/windows/hardware/dn303342(v=vs.85).aspx
for MAC OSX(MAC OS)
https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/USBBook/USBIntro/USBIntro.html
for Linux Note also cross platform
http://libusb.info/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm working on a java program that needs to be able to connect to a remote server and execute system commands. How would I create a command shell that looked exactly the same as windows command prompt for the client, but executes the commands on the remote server? Thx in advance
It's possible to do, but it's not easy - java has never been great for command-line operation. If you want to do it, look for java-based SSH implementations.
On the other hand, if the user will be running the java program from the command-line, it may be possible to execute an ssh command on the same terminal.
Here is a page that describes executing an external program from java: http://alvinalexander.com/java/java-exec-processbuilder-process-1.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
As tomcat server is completely developed in Java, yet its installation file(.exe) are available for windows. As tomcat is open source, does the process of converting this java server application into windows installation file also documented anywhere. Which tool they use and how its works. How have they created UI wizard to take user inputs and do the registry entry and install tomcat as service.
Regards
They use Nullsoft Installer called from the ant build.
The nsi script can be found on svn, as well as all of tomcat code.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am working on a Java project. Since Java main feature is portability, I want my application to look like a native windows app when run on windows or a native Mac app when run on mac.So how to I achieve that with Swing?
Swing supports Look&Feels to alter how components behave and are displayed.
For each platform, there is a System Look&Feel which mimics the underlying platform:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
have you tried to do it as in in http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#programmatic ?