Compiling on a Server?

I'm not exactly what to even call this question.

Right now, I have an application for uploading files to a special server on a network. So people can access this program on any PC on the network, I'll be putting the files on the server and then putting shortcuts to the executables. However, I'm not totally sure what this might require.

Do I need to compile the files on the server? If not, should I? Also, since a JFileChooser is being used, how can I ensure that the starting directory is on the user's PC and not allow them access to the server? And finally, how would I specify that the files are being transferred to the server (just use the path to the server or is there another way)?

Thanks folks.

[735 byte] By [ThomasOwensa] at [2007-10-2 6:38:37]
# 1

> I'm not exactly what to even call this question.

You're going to have to do a better job of explaining, what you posted doesn't make much sense.

> Right now, I have an application for uploading files

> to a special server on a network.

OK

So people can

> access this program on any PC on the network, I'll be

> putting the files on the server and then putting

> shortcuts to the executables. However, I'm not

> totally sure what this might require.

What program? Are you FTP'ing to a server, or have a client/server? Clients can't use shortcutes on a server to run executables. If you have a client/server, the server will have to run the executable. If FTP, you can't run progams on the remote computer.

> Do I need to compile the files on the server? If not,

> should I?

Huh?

Also, since a JFileChooser is being used,

> how can I ensure that the starting directory is on

> the user's PC and not allow them access to the

> server?

Again, huh?

And finally, how would I specify that the

> files are being transferred to the server (just use

> the path to the server or is there another way)?

However you want, given whatever method (ftp or client/server) you plan on using. You have to be more specific.

>

> Thanks folks.

ChuckBinga at 2007-7-16 13:46:43 > top of Java-index,Developer Tools,Java Compiler...
# 2

OK. Let me try again, this time when I'm thinking more clearly.

I have the source code for an application that will be run off of a server, however it will be used by people on PCs networked with this server (I hope that makes sense). However, the program is designed to transfer (copy) files from the user's PC to the server. I need to do two things: (1) make sure that the JFileChooser opens with the default directory of the user's PC and does not allow access to the server and (2) make sure that when the files are transferred to the server, they actually go to the server and not create the specified path on the user's PC. I'm not sure exactly how to do this (where to compile the code, how to allow users to access the app on the server, how to control the file chooser this much).

ThomasOwensa at 2007-7-16 13:46:43 > top of Java-index,Developer Tools,Java Compiler...
# 3

It appears that all of these issues are controlled by the application's code. I suggest that you use it, see what it does, and then if there are problems, post a specific question regarding a single issue. Provide formatted code for a small test case that illustrates the condition, and an explanation of what your expectations were and the actual results.

ChuckBinga at 2007-7-16 13:46:43 > top of Java-index,Developer Tools,Java Compiler...