Please Scroll Down to See Forums Below
napsgear
genezapharmateuticals
domestic-supply
puritysourcelabs
UGL OZ
UGFREAK
napsgeargenezapharmateuticals domestic-supplypuritysourcelabsUGL OZUGFREAK

Java help..

bunnymt

New member
OK. I need to upload a .java file (before complilation, as a compiled java program would have the .class extension, as I am already aware) from my computer to a remote user host, namely a telnet source. I have been trying an ftp transfer, without success, using wsftp.

The point is, is that I am composing and compiling Java programs on my computer. Is an ftp-transfer necessary, or have I taken the wrong approach?

I hope I have been clear. Thanks for the help.
 
FTP transfer is usually what I used, when coding locally and compiling/running on a remote machine.

Could you be more specific about the problem with the ftp transfer? Can you initiate an FTP session with the remote host (assuming it has an ftpd running listening on the expected port).

Or is the file transferred, but there are other problems?
 
jackangel said:
FTP transfer is usually what I used, when coding locally and compiling/running on a remote machine.

Could you be more specific about the problem with the ftp transfer? Can you initiate an FTP session with the remote host (assuming it has an ftpd running listening on the expected port).

Or is the file transferred, but there are other problems?

Sure. I am having some difficulty initiating the ftp session with the remote host, via wsftp. How did you go about this procedure?

Another method that I am currently exploring is opening up a command prompt window on my machine, connecting to the remote host via ftp, and then initiating a 'put' command. Then I am prompted to enter the local file, MYFILE.java, and then prompted to enter the remote file....what should I enter for this prompt? Any help would be appreciated.
 
Are you sure that the remote host has an ftp server running? If it's a university machine running Unix, for example, then it likely does, but I don't know for sure. The the standard port that FTP listens on (for incoming connections) is 21, but that can be changed to any other port depending on who has set it up (that's also unlikely, but depends on what kind of host it is). All you need to specify is the host name/IP and the port (21 is default in any ftp client like WS FTP).

When I used to do it back in school, I sometimes used windows ftp also. But any client should work, provided the server is up and running how you expect it to. As for naming the remote file, that's up to you, whatever you call it at that point will be the name it's given on that remote computer.

If you can't even get a logon prompt, then I have to wonder if the server is up and on the port you expect it to be on. If the destination is reachable at all, that is.
 
No no...I am getting a login prompt, and I can continue from there without a problem; I am able to connect to the remote site successfully. I have the ftp prompt and all. However, I am not able to transfer my file to this site. Thanks again for your help..

and it is a University machine running Unix..

btw: check your pm..
 
Hey...I have accomplished my task, thanks to jackangel. I used a website called cuteftp to make the ftp transfer from my machine to a Unix-based host.

SUCCESS!!

CipherLock, I will also give your suggestion a shot, since I am now very curious.
 
bunnymt said:
Hey...I have accomplished my task, thanks to jackangel. I used a website called cuteftp to make the ftp transfer from my machine to a Unix-based host.

SUCCESS!!

CipherLock, I will also give your suggestion a shot, since I am now very curious.

There should also be some documentation in the wsftp help about the destination being a unix box, I can't quite remeber what but I don't think it affects the transportation of compilied programs, just text.

I could be wrong, it's been a while.
 
Ok...I am going to work with it a bit...I have the ws ftp program downloaded on my pc. I will play around with it...thanks for your help.
 
if you are doing command line ftp, make sure the mode is set to binary/ascii.

Most gui ftp software will set that for you.
 
Top Bottom