I am trying to run a servlet on the Linux server which connects to the windows server and gets the files present on it.
Is there any library to get files from windows as we have just in Linux and Unix.
As I know that using javascript only FTP is not possible.
Please let me know if you have some info to share.
Thanks in advance
Share your file on windows.
use jcifs library to access that. http://jcifs.samba.org/
refer to access to file using Java with Samba JCIFS
for example.
Related
My requirement is to automate an esxi remote machine using java.
So, I am able to automate vmware workstation and fusion by creating a bat file where I have added all the vmrun commands and executing the bat file using java.
Can anyone help me in achieving the same for esxi remote machine where I am using commands (like vmrun) for opening a browser in remote machine and passing the url.
I think vmrun utility is no longer supports for esxi.
powercli module of powershell solved my problem
So I have a VPS and would like to know how I can upload a file (images in particular) to the VPS using Java. What do I need to install on the VPS and how would I go about doing this?
My VPS is going to be CentOS.
You might want to use the Apache Commons Net library to connect to your VPS using FTP. You will need to install FTP on your VPS. How you will go about installing FTP depends on what OS your VPS is running.
If an applet is running in the browser, can it create folders or files on the client machine?
Yes, but the applet must be signed.
A lot of manufactures download manager works like this.
I have previously installed xampp on my remote linux server. So I already have php pre-compiled. Java also. I installed a jetty server. Do I need other configuration to it to run both PHP and JSP?
I want to use JSP and jetty server instead of PHP and apache for scaling issues regarding a notification system that I will soon apply. Any feedback on this descision will be apprecitied
See their documentation for PHP support.
I would like to download somefiles which is in remote shared folder from the local system using java code. Can you please guide us, how i can proceed this. Whether i need use http or ftp. But i want to execute the code only in the local machine. It should not like client server program. Please post some tips over here.
Thanks in advance.
You cannot solve this without knowing the platform of your machine (where the app runs) and remote machine. But once you know you have many possibilities.
Agent full solution
Install agent on remote machine. The agent should expose API that allows access to the files. For example you can use FTP server as an agent. Then access this server and download your files. Alternatively you can implement your own application or servlet running in one of available servlet containers and provide access to files over HTTP.
Agent-less solution
Use the built-in functionality of target machine. For example use SSH to connect to Unix machine and SMB for windows. Both support Telnet
You can use VFS package from jakarta. There are several implementations of SSH. I recommend JSH.