Solved

so Applets can't access the users hard drive...

Posted on 2004-09-29
10
160 Views
Last Modified: 2010-03-31
can they access and manipulate files on the web server?

Thanks
0
Comment
Question by:dds110
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 12183344
They can read them, but not write them unless there is a server-based mechanism to allow it (e.g. FTP)
0
 
LVL 8

Author Comment

by:dds110
ID: 12183391
hey cehj

well !@#$

is there no easy way of running a java application on the web server?  Without having to download, install, and configure a bunch of other !@#$?

0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12183408
concepts like RMI will help you to access and modify the webserver files from applets
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 86

Expert Comment

by:CEHJ
ID: 12183437
>>is there no easy way of running a java application on the web server?

Not really - webservers are designed to server web pages ;-) Application servers are to run binaries (Tomcat, JBoss etc)
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12183456
if you implement Applet as RMI client and RMI Server installed at webserver, then whenever rmi client request for modification of file or something else, rmi server should take care of that and do the related changes

regards
sudhakar
0
 
LVL 4

Expert Comment

by:gdrnec
ID: 12183495
Actually, there is a happy medium that requires only the installation of a JRE (a simple enough task). That medium is JNLP (Java Network Launch Protocol or WebStart). This allows you to distribute full blown applications that can have access to the user's hard drive and resources. Nice thing about JNLP is its versioning that allows the distributor to continually update the code without having any client side issues. It also allows the specification of a JRE version for compatibilty.

Maybe an alternative? I use it alot because of its flexibility.

Geoff
0
 
LVL 8

Author Comment

by:dds110
ID: 12183550
whoa...

slow down guys, i'm still a bit wet behind the ears when it comes to java to begin with.  All day I've been writing a "server utility" to "listen" to a file.

When the file changes, the "utility" kicks off my application (hopefully).

Everything mentioned here sounds good but...

Friday is my last working day in the civillian world.  My National Guard unit is being activated and I have to get this project done by Friday.  In other words, I don't have much time to "get into" a bunch of new stuff right now.
0
 
LVL 4

Expert Comment

by:gdrnec
ID: 12183631
Is it a client's (web client) responsibility to change the file that is being monitored? If so, you can always use an applet or a simple web page to talk to a servlet on a web server. That servlet can change files on the web server (but not the client).

Is this what you are looking for?
0
 
LVL 8

Author Comment

by:dds110
ID: 12183898
I'm not sure gdrnec, but your last post sounds promising.

Yes, the client will be changing the file.  However, my web server is IIS 5.0 on a WinXP box.  I don't think I can run a servlet without installing and configuring some third party program.

Unless you know something I don't.
0
 
LVL 4

Accepted Solution

by:
gdrnec earned 50 total points
ID: 12189280
Check out this link. It is a bit of work but nothing huge.

http://www.javaworld.com/javaworld/jw-06-2000/jw-0616-iis.html

At least it gets you across the hurdle.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question