Solved

ASP & Java object

Posted on 2003-12-05
6
893 Views
Last Modified: 2010-05-18
I have built a fairly simple asp page as per:
http://www.4guysfromrolla.com/webtech/030800-1.shtml

Just to simply zip some files on the fly.

The thing worked fine on my dev box, however I have come to move it to a live server and the Windows\java directory did not exist.

The server is fully managed and has been built by somebody else (they are dumb and of no use). I have the Sun Virtual Machine installed, I created the directory structure (which in truth I already knew was going to be an issue) and then I am getting is "Invalid Syntax" returned at the line

set javaObject = GetObject("java:ZipFunctions")

This I know is a setup issue, problem is I just can't see how to fix it

I have also posted in the JAVA TA : http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20816613.html
0
Comment
Question by:fz2hqs
  • 3
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
MPDeveloper earned 250 total points
Comment Utility
Hey fz2hqs -

I can't say I've played around with Sun's Virtual Machine a whole lot. But here are some ideas that I have.

With javascript, the "GetObject()" command is used for applications that are already open and running. If you try to run that object without the specified application running, you're going to get the error that you did.

If your off site server has it installed, but not running, I would try this:

//---BEGIN ASP/JAVASCRIPT---

var javaObject = new ActiveXObject("java.ZipFunctions");

//--- END ASP/JAVASCRIPT ---

- or -

'--- BEGIN ASP/VBSCRIPT ---

dim javaObject
set javaObject = server.createObject("java.zipfunctions")

'--- END ASP/VBSCRIPT ---

The only other idea that I can think of is the obvious one: is it installed on the live server? When you said you had Virtual Machine installed - did you mean on your dev computer or the live server?

Hope this helps,

benny b.

0
 
LVL 9

Author Comment

by:fz2hqs
Comment Utility
Thanks for the reply.

I have followed the article from the 4guysfromrolla.com site that I specified. THere isn't a lot if installing to do. Simply copy the zipfunctions.class file to the specified location and you are done. THe fact is, that on my live server that location didn't exist. I am really not at all sure if the virtaul machine isn't a red herring. I tried your other snippets of code, but it really didn't like it, there is a "Java" object on the server so I get the server can't create object error?
0
 
LVL 9

Author Comment

by:fz2hqs
Comment Utility
I finally solved it. After much hunting around it turns out that courts and teh MS / Java issue is to blame.

MS are no longer shipping their virtual machine in *anything*, and as from 2 Jan 2004 will not be supporting the old stuff, the virtaul machine is. The ISP used some new build disks that were without the VM hence my nightmare! A hunt around the web for the MS Java VM (msjavx86.exe) paid devidends! Downloading and running this has set up the environment correctly - I am subsequantly all sorts of patches out of date but I know have my C:\winnt\java and trustlib subdirectory

Given you were the only one brave enough to post anything you can have the points MPDeveloper
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 2

Expert Comment

by:MPDeveloper
Comment Utility
wow...

That actually helps me out a lot too. Thanks for researching that and finding that stuff out. Silly Microsoft and not telling us what stuff is going to be included and excluded in subsiquent versions of software.

Thanks again,

benny b.  
0
 
LVL 9

Author Comment

by:fz2hqs
Comment Utility
I got my copy from here:
http://www.mvps.org/inetexplorer/msjavx86.exe

Cheers
0
 
LVL 11

Expert Comment

by:SweatCoder
Comment Utility
you guys saved my life. i had this same problem, and installing the msjavx86.exe fixed it! i think this page is the only place on the Internet with the correct resolution for this--believe me, i've looked.

it's very odd because i've never seen a win2k server machine NOT have this already there. especially since the java\trustlib WAS there, so you'd think it was installed, but evidently it wasn't, or it had been disabled or something.

and fz2hqs, thanks for posting the link to the exe!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Update Master page control from update panel on content page 3 54
Classic ASP + JS 4 67
ASP Classic - Load test 2 33
Select distinct 25 60
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now